CreatePGPayPayment
Create a pg pay a checkout session
Last updated
Create a pg pay a checkout session
Last updated
userID*
String
The receiver that's going to receive the funds
amount*
Number
Amount to charge the customer. Learn more about our fees via this link
currency
String
We currently only accept htg or usd as currency
orderId
String
Your orderId for internal reference, if not provided, one is creating for you
phone
String
Customer's phone number to autocomplete in the form
description
String
Description of the transaction
successUrl
String
Success url to redirect to when payment is complete
errorUrl
String
Error url to redirect to if payment fails
customerEmail
String
Customer email
customerFirstName
String
Customer first name
customerLastName
String
Customer last name
metadata
Object
Additional data to retrieve when fetching order
isChatEnabled
Boolean
Will disable the pgecom live chat support on the pgpay checkout flow
paymentMethods
Array[String]
You can pass a list of payment methods that you want to enable (ex. pgpay, moncash, crypto)
webhookUrl
string
This can be sent inside the metadata data as metadata.webhookUrl
or directly in the payload. This will receive post a request with the following values when the transaction is complete
- orderId
- status
- transactionId
- currency
- token