With the D-pay API, you may connect the D-Pay gateway to all applications and platforms
POST method
URL:
https://api.d-pay.io/order/add
{
"amount":30,
"callback":"Link back to your site",
"email":"email",
"mobail":"0123456789",
"id_order": "121",
"merchant_code":"NjMwM2E0YmY1NmRiZ..."
}
Successful
{
“status” : “20”
“backlink” : “The link to transfer the user to the payment portal”
}
Failed
{
“status”: “13”,
“message”: ” The reason for the transaction not being successful “
}
After the user returns from the payment gateway A GET request is sent to your callback URL
callback“&status=20&Authority=”Transaction code
{
”status“=” *13 OR *20 OR *21 ”
“Authority” = ” Transaction code “
}
Then you send a request to check Status of the transaction the using POST method with this parameter
{
“Authority”:” Transaction code”
}
POST method
URL:
https://api.d-pay.io/order/verify
Successful
{
“status” : “20”
“message” : “Order Success“
}
Failed
{
“status”: “13”,
“message”: ” The reason for the transaction not being successful “
}