Dusupay
Search…
Collecting Funds
To collect funds, the procedure below can be trivial
  1. 1.
    Compose your request data as a JSON string
  2. 2.
    Set a request header; content-type: application/json The secret-key header is not needed for collections
  3. 3.
    POST the JSON string to the collections API.
  4. 4.
    Decode the JSON response returned by the API and store any transaction details you need to use later.
  5. 5.
    Always redirect the customer to a payment URL if returned in the API response. We will not return it if it's not required to complete the transaction.
  6. 6.
    We will send webhook data when the transaction status changes to the webhook URL
  7. 7.
    Using the transaction status included in the webhook data posted, you should be able to give value to the customer accordingly.
Last modified 1yr ago
Copy link