Dusupay
Search…
Crypto Payments
To collect funds using crypto currencies, there are a couple of things you need to note.

1. Set Payment Method

CRYPTO is the value to be set for the parameter, method in the request collection body. For crypto payments, we expect you to provide a, redirect_url where we will redirect the customer when they complete or cancel the transaction once you have redirected them to the payment_url we will return.
Sample Request Body
1
{
2
...
3
"method": "CRYPTO",
4
"redirect_url": "https://my-domain.com/redirect_url"
5
...
6
}
Copied!
payment_url will be returned which you will redirect the customer to complete the payment
Sample Response Body
1
{
2
...
3
"payment_url": "https://sandbox.dusupay.com/v1/completepayment",
4
...
5
}
Copied!

3. Redirect customer

Whenever a payment_url is returned in any response body, you are expected to redirect the customer to it for them to be able to complete the transaction initiated via the Post Collection Request
Last modified 3mo ago