Simulation Data
This section explains how to simulate various scenarios as part of the payouts module of Decentro.
Initiate Payout API and Get Transaction Status API
Decentro provides certain static values for platforms to simulate the various scenarios.
Please utilize the input parameters, shared in the table below, for initiating the Initiate Payout API. The initiate payout API will share a decentroTxnId in the response payload. The decentroTxnId must be passed
in the Get Transaction Status API to receive the expected output.
Note - Simulation Data
To test Simulation Staging data for Initiate Transfer and Status Handling, please use the following API Endpoint - https://in.staging.decentro.tech/core_banking/money_transfer/initiate
https://in.staging.decentro.tech/core_banking/money_transfer/get_status/
To Account | IFSC Code | Test Cases | Transaction Status |
---|---|---|---|
123456789011 | SBIN0001077 | Initiate Payout API status as 'Pending' Get Transaction Status API status as 'Success' | Success |
123456789012 | UTIB0001506 | Initiate Payout API status as 'Pending' Get Transaction Status API status as 'Pending' | Pending |
123456789013 | HDFC0001234 | Initiate Payout API status as 'Pending' Get Transaction Status API status as 'Failure' | Failure |
Validate Bank Account (Penny Drop)
Decentro provides certain static values for platforms to simulate the various scenarios of validating a bank account.
Please utilize the input parameters, shared in the table below, for initiating the Validate Bank Account.
Note - Simulation Data
To test Simulation Staging data for Validate Bank Account (Penny Drop), please use the following API Endpoint - https://in.staging.decentro.tech/core_banking/money_transfer/validate_account
To Account | IFSC Code | Test Cases | Transaction Status |
---|---|---|---|
123456789011 | SBIN0001077 | Validate Bank Account API Status as 'Success' | Success |
123456789013 | HDFC0001234 | Validate Bank Account API Status as 'Failure' | Failure |
Validate VPA - Simulation Data
Below is the test data that can be used by platforms to test out standard scenarios for Validate UPI Handle (VPA).
The platform is expected to pass the parameters as-is to get the intended scenario.
Note - Simulation Data
To test Simulation Staging data for Validate VPA, please use the following API Endpoint - https://in.staging.decentro.tech/v2/payments/vpa/validate
Steps to use this data:
- Take the UPI ID from the values shared below depending on the scenario to be tested.
- Trigger the validate VPA API with that UPI ID with the required type.
- API response will state the validation of the VPA (valid or invalid)
- The information about the UPI ID depends on the the type param passed in the request payload.
UPI ID | Validation status | Test case |
---|---|---|
charles.babbage@okhdfc | VALID | When VPA is valid |
alan.turing@oksbi | INVALID | When VPA is invalid |
Generate payment link & Get transaction status API - Simulation Data
Below is the test data that can be used by platforms to test out standard scenarios for Generate payment link.
The platform is expected to pass the parameters as-is 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
Steps to use this data:
- Generate a payment link with amount parameter as either 10, 20, 30 depending on the test case being observed.
- Obtain the generated link in the response.
- Use decentro_txn_id from the response and pass in Get transaction status API to fetch the terminal status of the transaction.
- Depending on the Amount passed in step 1, you'll receive the terminal status.
- Please refer to the table below for Amount v/s transaction status test cases in staging simulation.
- In the live flow, step 4 will take some time till the end user enters the UPI pin and makes the payment. Till then the status of the transaction by GTS will be PENDING.
Amount | Transaction status | Test case |
---|---|---|
10 | Success | Payment link is created & Transaction status is Success |
20 | Failure | Payment link is created & Transaction status is Failed |
30 | Pending | Payment link is created & Transaction status is Pending |
Collection request - Simulation Data
Coming soon
Refund - Simulation Data
coming soon
Updated 9 months ago