Test the complete payment lifecycle — create payments, query status, process refunds. See exact request/response payloads for every API endpoint.
/api/v2/payments1{
2 "merchantId": "AJME84",
3 "merchantTxnId": "ORDER_20260604_961",
4 "amount": 50000,
5 "currency": "INR",
6 "returnUrl": "https://yoursite.com/payment/return",
7 "customerName": "Bhargav",
8 "customerEmail": "[email protected]",
9 "customerPhone": "9876543210",
10 "description": "Order #12345",
11 "timestamp": 1780575555,
12 "checksum": "hmac_sha256_generated_on_server"
13}1curl -X POST 'https://staging-sb-merchant-api.sabpaisa.in/api/v2/payments' \
2 -H 'X-Api-Key: your_api_key_here' \
3 -H 'Content-Type: application/json' \
4 -d '{
5 "merchantId": "AJME84",
6 "merchantTxnId": "ORDER_20260604_961",
7 "amount": 50000,
8 "currency": "INR",
9 "returnUrl": "https://yoursite.com/payment/return",
10 "customerName": "Bhargav",
11 "customerEmail": "[email protected]",
12 "customerPhone": "9876543210",
13 "description": "Order #12345",
14 "timestamp": 1780575555,
15 "checksum": "hmac_sha256_generated_on_server"
16}'Use these test credentials in the staging environment. No real money is charged.
4111 1111 1111 1111Visa5500 0000 0000 0004Mastercard4000 0000 0000 0002Visa5105 1051 0510 5100Mastercard123 | Expiry: Any future datesuccess@upiSuccessfailure@upiFailedtimeout@upiTimeout123456 (for test transactions)testuser | Password: testpass