Apple Pay
You can capture the authorized amount in a single API request as depicted in the payment flow below.
Send an API Capture Request
The previously authorized transaction is identified by the "uniqueReference". Set at most the same amount as initially authorized under the "modifiedAmount" parameter in the API method 1.29 Capture.
Capture Request
Path:
POST {baseURL}/payment/{uniqueReference}/capture
POST https://{baseURL}/payment/isgFEkdJSDpb5QkjhjWET/capture
Header:
Content-Type: application/json
Accept-Language: en-US
X-Auth-Token: eyJhbGciOiJS***kVG9rZW4=
User-Agent: ***
{
"partnerReference": "7cf89efa-b957-4dc2-839c-061edc25011c",
"modifiedAmount": 0.02,
"modifiedAmountCurrCode": "EUR",
"localDate": "2025-01-29",
"localTime": "100501"
}
Receive an API Capture Response
The payment platform sends an API response with the status of the payment to your server.
Capture Response
Status Code:
200 (OK)
Header:
Content-Type: application/json
Accept-Language: en-US
{
"initiatorAccno": "7228894817",
"accno": "7228905548",
"uniqueReference": "isgFEkdJSDpb5QkjhjWET",
"modifiedAmount": 0.02,
"modifiedAmountCurrCode": "EUR",
"processedAmount": 0.02,
"processedCurrCode": "EUR",
"statusCode": "CAPTURED",
"statusReason": "Capture request has been approved/processed successfully by Acquirer/Payment provider and transaction has been sent for clearing/settlement.",
"paymentProviderResponse": {
"result": {
"providerRequestDetails": {
"processedData": {
"transactionData": {
"reference": "isgFEkdJSDpb5QkjhjWET",
"providerReference": "8ac7a4a094aeecd60194b14e7e3f60fa",
"amount": 0.02,
"currency": "EUR",
"country": "",
"status": "CAPTURED",
"statusReason": "Capture request has been approved/processed successfully by Acquirer/Payment provider and transaction has been sent for clearing/settlement."
}
},
"providerResponse": [
{
"method": "POST",
"url": "{baseurl}/v1/payments/8ac7a4a094aeecd60194b14e7e3f60fa",
"request": "entityId=8ac7a4ca8b1***d80045&amount=0.02¤cy=EUR&paymentType=CP",
"response": "{\"id\":\"8ac7a4a294aeecf80194b14e88465bce\",\"referencedId\":\"8ac7a4a094aeecd60194b14e7e3f60fa\",\"paymentType\":\"CP\",\"amount\":\"0.02\",\"currency\":\"EUR\",\"descriptor\":\"isgFEkdJSDpb5QkjhjWET\",\"merchantTransactionId\":\"isgFEkdJSDpb5QkjhjWET\",\"result\":{\"code\":\"000.100.110\",\"description\":\"Request successfully processed in 'Merchant in Integrator Test Mode'\"},\"risk\":{\"score\":\"0\"},\"buildNumber\":\"c90a4b5aa***d315@2025-01-27 00:42:27 +0000\",\"timestamp\":\"2025-01-29 09:05:01+0000\",\"ndc\":\"8ac7a4ca8b1***d80045_d35f92e***b95f43d6\",\"source\":\"OPP\",\"paymentMethod\":\"CC\",\"shortId\":\"1801.6707.9117\"}",
"statusCode": "200"
}
],
"responseCode": "0000",
"responseDescription": "Operation succeeded.",
"localTime": "2025-01-29T10:05:02+01:00"
}
},
"responseCode": "0000",
"responseDescription": "Operation succeeded.",
"localDateTime": "2025-01-29T10:05:02+01:00",
"additionalData": [
{
"name": "externalCalls",
"value": [
{
"url": "{baseurl}/api/v1/payment/capture",
"httpMethod": "POST",
"httpStatusCode": 200
}
]
}
]
},
"partnerReference": "7cf89efa-b957-4dc2-839c-061edc25011c",
"localDate": "2025-01-29",
"localTime": "100501",
"sysDate": "2025-01-29",
"sysTime": "090502",
"responseCode": "0000",
"responseDescription": "Successful execution.",
"additionalInformation": {
"requestId": "6e00c5a72303455382963608bf5abdf8"
}
}
In the case of a successfully completed Guest Payment the status code should return "CAPTURED" (see example above).
With that, the payment process is completed.