How does API D-pay

Complete guide to D-pay API

With the D-pay API, you may connect the D-Pay gateway to all applications and platforms

Step 1: Create new order

Parameters

  • amount
  • callback
  • email
  • mobail
  • id_order
  • merchant_code

Example

{  
"amount":30,
"callback":"Link back to your site",
"email":"email",
"mobail":"0123456789",
"id_order": "121",
"merchant_code":"NjMwM2E0YmY1NmRiZ..."
}

POSTMAN Example

image description

Callback Data

STEP 2: VERIFY

Example

{   

”status“=” *13 OR *20 OR *21 ”
“Authority” = ” Transaction code “

}

Status Codes:

  • *13 : Transaction Failed
  • *20 : Transaction Successfully Completed
  • *21: The Transaction Has Already Been Completed

Verify Transactions

Callback Data