cURL
curl --request POST \ --url https://api.paytring.com/api/v2/order/capture \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "key": "test_123", "id": "<string>", "hash": "<string>" } '
"{\n \"status\": true,\n \"message\": \"Order captured successfully.\"\n}"
This API allows you to capture the authorized payment of a previously created order.
{ "key": "string", // Merchant API key "id": "string", // Payment ID "amount": 100, // Amount to capture "hash": "string" // Calculated hash for request validation }
{ "status": true, "message": "Payment captured successfully", "id": "string" }
{ "status": false, "error": { "message": "Invalid request", "code": 400 } }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Merchant Key
pass order id of partying in this param.
hash is calculated as provided in doc.
200
true
"Order captured successfully."