Creating Payments
To create a payment, you will need to make a POST /api/v1/pay/summary
call:
Let's go through the body parameters in our cURL:
Parameter
Type
Description
merchantId
string
Your Merchant ID. You can find it on the Merchant Details page in your account
reference
string
Your payment reference ID. Feel free to submit any ID to tie the payment to your customer
amount
number
Payment amount
currency
string
Payment currency
returnUrl
string
URL that the customer will be redirected to if they click a "Back to Merchant" button on the payment web page
type
string
To accept payments, please always specify IN
to accept payments
expiryMinutes
number
Indicates the payment window - e.g. for how long a payment will be valid. Once it expires e.g. no transaction has been at the payment address during the payment window, the payment will update its status to EXPIRED
payInDetails.currency
string
This optional parameter allows you specify a cryptocurrny code to skip the step at which your customer needs to select the cryptocurrency oftheir choince on the redirect web page. If you do not submit this parameter, keep in mind that you will have to redirect your customer to the redurectUrl
that our API returns in the response.
You will then receive the following response from the Coindirect API:
Specifically, you might want to look at the redirectUrl
parameter value which is basically a URL to the payment web page that you can redirect your customer to.
To see what the payment web page UI looks like, click the link below:
Payment Hosted PageTo have a look a the payment-related API endpoints, please visit the Payments page in the API section:
PaymentsLast updated