Collections - Simulation Data

This page gives an overview of using testbed data to simulate multiple scenarios from a collections stack perspective.

Overview

Decentro provides platform simulation data (dummy data) from an integration support perspective so that the platform can simulate all possible scenarios without undertaking real money transactions.

This requires the platform to use standard request payloads to handle scenarios for each API and scenario, as mentioned below.

Generate payment link v3 API & Check Payment status API

Below is the test data that platforms can use to test out standard scenarios for Generate payment link. The platform is expected to pass as-is parameters to get the intended scenario.

๐Ÿ“˜

Note - Simulation Data

To test Simulation Staging data for Generate payment link API & Get transaction status API, please use the following API Endpoint - https://in.staging.decentro.tech/v2/payments/upi/link https://in.staging.decentro.tech/v2/payments/transaction/status

Flow

  1. Generate a payment link with the 'amount' parameter as either 10, 20, or 30, depending on the test case being observed.
  2. Obtain the generated link in the response.
  3. Use the decentro_txn_id from the response and pass in Check Payment Statusto fetch the transaction's terminal status.
  4. You'll receive the terminal status depending on the Amount passed in Step 1.
  5. To test the scenario where the payment link expires, include the necessary time value in the expiry_time field when generating the link. Once the expiry time window has passed, repeat step 3 to receive the terminal status as EXPIRED.
  6. Please refer to the table below for Amount v/s transaction status test cases in staging simulation.
  7. Step 4 will take some time in the production environment until the end user enters the UPI pin and makes the payment. Until then, the transaction's status will be PENDING.
AmountTransaction StatusTest case
10SuccessPayment link is created & Transaction status is Success
20FailurePayment link is created & Transaction status is Failed
30PendingPayment link is created & Transaction status is Pendin

E-NACH v3

Overview

The ENACH(Electronic National Automated Clearing House) product allows for electronic mandate registration and processing of recurring payments. This document outlines the simulation data used for testing various scenarios in the ENACH system.

๐Ÿ‘

Please use staging credentials to test our ENACH simulation.

Refer to this ENACH API Reference Page.

Live Simulation APIs

Sl. No.API NameDescription
1Check Supported Banks & Authentication ModesProvides a list of supported banks and the authentication modes they support.
2Mandate Registration APIHandles the registration of new mandates in the system.
3Mandate Registration StatusUser can check the registration status using the Mandate Registration Status API.
4Mandate Execution APIExecutes the registered mandates for processing payments.
5Mandate Execution StatusUser can check the execution status using the Mandate Execution Status API.
6Mandate Registration CallbackA callback service that provides updates on the status of mandate registrations. (Your custom endpoint)
7Mandate Execution CallbackA callback service that provides updates on the status of mandate executions. (Your custom endpoint)

Simulation Data - Testing Scenarios

Mandate Registration API

This API lets you test the mandate registration API. You can use the amount given below to test the different scenarios.

๐Ÿ“˜

OTP Validation

  1. Enter any 6-digit random number to validate the OTP.
  2. "111-111" use this 6-digit number to verify the wrong OTP scenario.

๐Ÿ“˜

Debit Card Validation

  1. Enter a random 12-digit debit card number.
  2. Enter a random 3-digit CVV.
  3. Enter a random debit card expiry date.

Authentication Mode - Debit Card

AmountScenarioMessageError Code
100Wrong account details.Account doesn't exist or invalid account details.AP05
200Registration Successful.Success/ Active-
500Registration Successful.Success/ Active-
300Wrong debit card details.Customer entered the wrong debit card details.AP35
400The Bank account belongs to a minor.Mandates were not registered. The Bank account is of minor.AP16
Random amountOther than the specified amount.Transaction rejected or cancelled by the customerAP23
Cancel buttonUser clicked on the cancel button.Transaction rejected or cancelled by the customer.AP23

Authentication Mode - Net Banking

ScenarioMessageError Code
User clicked on the cancel button.Customer cancelled or rejected the mandate registration.AP23
User acceptedActive/ Success-

Mandate Execution API

This API lets you test the mandate execution API. You can use the amount given below to test the different scenarios.

๐Ÿšง

Ensure to use UMRN generated from Mandate Registration API.

AmountScenarioDescription
200FailureThe mandate execution failed. This could be due to multiple reasons.
500SuccessThe mandate was executed successfully, and the amount was debited.

๐Ÿ‘

Execution callbacks will be sent within 20 mins of the execution API call.

Conclusion

This documentation provides the necessary guidelines for using simulation data to test ENACH transactions. Ensure to follow the specified conditions and amounts to accurately simulate and validate different transaction scenarios.