CreatePGPayPayment
Create a pg pay a checkout session
Create a pg pay payment request
POST
https://sandbox.pgecom.com/api/pgpay/token
Request Body
Name | Type | Description |
---|---|---|
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
|
Last updated