Is Sandbox testing possible for UPI Deeplinks?

Modified on Fri, 17 Feb, 2023 at 1:46 PM

The sandbox environment does not connect to live bank systems or NPCI systems. Hence, we have developed an API addCreditwhere you can pass certain parameters to simulate a successful transaction. You can check out the API reference here: https://docs.setu.co/collect/api#operation/addCredit.

Steps:

  1. Generate a UPI deep link using the create payment link API.

  2. Note the parameter name upiID in the response.

  3. Use this UPI ID in the accountID under destinationAccount.

  4. Use any UPI ID in the accountID under sourceAccount, any amount as float value in rupees (caution: this is different from other Setu APIs where the amount is an integer value in paise), and type as "UPI".

  5. Send the add credit request, and you should receive a 200 OK response.

  6. If you have followed the above steps correctly, the payment status should change to CREDIT_RECEIVED, and you should receive a hit on the callback URL.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article