Generate a static QR code for any agent to receive payments via UPI into their E-value wallet.
What is the QR transaction flow?
Eko’s QR Payment API provides an end-to-end solution from QR code generation to payment collection. The transaction flow is as follows:
- Activate your service for QR using Activate Service for Agent API and passing
service_code = 59
- The user provides their mobile number that is the sender_id against which their QR code is generated.
NOTE - For each sender_id, only one QR string can be generated. - If any payment is made against the QR code, the amount is reflected in the partner's wallet.
- After the transaction, the callback request with the transaction details is sent to the partner. The transaction status of a particular transaction can be checked using the transaction enquiry API.
For setting up the callback/webhook, kindly share the URL with the Eko Code on [email protected]
Callback response:
{
"tx_status": 0,
"amount": 400.0,
"tds": 0.0,
"txstatus_desc": "Success",
"fee": 0.0,
"gst": 0.0,
"tid": 2886142533,
"client_ref_id": "cust_MAQHG5z2g0k9FK",
"old_tx_status": 2,
"partners_commision": 0.0,
"service_code": "27",
"old_tx_status_desc": "Initiated",
"bank_ref_num": "313196224563",
"timestamp": "2023-07-06 13:11:45"
}
To cross-check the QR code that was used for a transaction, check if the client_ref_id in the callback matches the utility_acc_no in the generated QR. If they are the same, you've identified the QR code used for the transaction.
Please note that we set a common callback for QR, CMS, Payout and DMT
Response Values
Values | Status |
---|---|
0 | INACTIVE |
1 | ACTIVE |
2 | QR_ACTIVE |
3 | QR_INACTIVE |
Response Codes
ERROR CODES | MEANING | SOLUTION |
---|---|---|
403 | Forbidden | Regenerate your secret key and timestamp or check if your service is activated or not |
500 | Internal Server Error | Check if your request url is correct or the parameters you're passing is correct according to the parameters mentioned above |
415 | Unsupported Media Type | Re-check the content/type of the request body. |
Error String
# | Message |
---|---|
1 | Failed to create a customer ID |
2 | Customer ID is null |
3 | Failed to generate QR |
For generation of secret-key and secret-key-timestamp, refer to - Authentication
NOTE
Kindly make a payment amounting more than 3 rupees.