Build and test your integration in a safe sandbox environment with test API keys and simulated payments.
https://sandbox.karatdollar.com/rapi/v2/Secret Key (Server-side)
sk_test_sandbox_abc123def456Public Key (Client-side)
pk_test_sandbox_xyz789ghi012| Card Number | Brand | Result |
|---|---|---|
| 4111 1111 1111 1111 | Visa | Success |
| 5500 0000 0000 0004 | Mastercard | Success |
| 4000 0000 0000 0002 | Visa | Declined |
| 4000 0000 0000 3220 | Visa | 3D Secure |
Use any future expiry date and any 3-digit CVV. Test wallets are pre-funded with 10,000 KAD.
1curl -X POST https://sandbox.karatdollar.com/rapi/v2/payments/initiate \2 -H "Authorization: Bearer sk_test_sandbox_abc123" \3 -H "Content-Type: application/json" \4 --data-raw '{5 "amount": 100.00,6 "currency": "KAD",7 "recipient": "wallet_test_buyer1",8 "reference": "TEST-001"9 }'1011# Response12# {13# "success": true,14# "data": {15# "payment_id": "pay_test_7xKj9mNpQ2",16# "status": "completed",17# "amount": 100.0018# }19# }sk_test_ with your sk_live_ key from the dashboard.https://api.karatdollar.com/rapi/v2/.