CreateMonCashPayment
Create mon cash payment
POST
https://sandbox.pgecom.com/api/moncash/token
Request Body
gdes*
Number
Amount in gdes that convert in USD to your account
userID*
String
Your userID on PG Rewards so you can receive the funds
referenceId
String
Your internal reference ID for your own tracking
successUrl
String
Where you want us to redirect the user once we have completed the transaction
errorUrl
String
Where you want us to redirect the user once in case any error happens
metadata
String
Pass additional data you need to be retrieve when fetching order
customerFirstName
String
Customer first name
customerLastName
String
Customer last name
customerEmail
String
Customer email
phone
String
MonCash phone number
currency
String
Currency that you want to receive the funds to your account - default usd
webhookUrl
String
We send a post a request with the following data to this endpoint once the deposit has finalized
orderId
status
transactionId
currency
token
If transaction successful or failed, we'll include the following to the errorUrl or successUrl:
${successUrl}?transactionId=${order.id}
${errorUrl}?transactionId=${order.id}&errorMessage=${errorMessage}
Last updated