Rabobank Docs

Execute an Apple Pay payment

POST
/pay/{order_id}/select-payment-method/apple-pay/{transaction_id}/

Processes the Apple Pay transaction with the vaultToken, onlinePaymentCryptogram and eciIndicator from storing the payment token. Only for a server-to-server integration with your own checkout: with the hosted payment page you don't call this endpoint. Send the Accept: application/json header to get a JSON response, without it the response is a redirect to the result page. No API key is needed.

Redirect your customer to the redirect_url in the response, then retrieve the order to confirm the payment.

Path Parameters

order_id*string

The id of the order.

Formatuuid
transaction_id*string

The id of the transaction, from the transactions of the order.

Formatuuid

Request Body

application/json
  1. body
vault_token*string

The vaultToken from storing the payment token.

Formatuuid
online_payment_cryptogram*string

The onlinePaymentCryptogram from storing the payment token.

eci_indicator?string

The eciIndicator from storing the payment token, when it was present.

Response Body

The payment has been processed.

application/json
  1. response
is_successful*boolean

Whether the payment succeeded. Confirm it by retrieving the order before you deliver.

redirect_url*string

The result page of the transaction, to redirect your customer to.

Formaturi
curl -X POST 'https://api.prod.smartpay.gingerpayments.com/pay/8078d78f-8700-4cfe-94b1-4a777d3400f2/select-payment-method/apple-pay/a5dac3de-d304-4570-922b-373d478b8b3a/' \  --user "$API_KEY:" \  -H 'Content-Type: application/json' \  -d '{  "vault_token": "d972dc43-6a3d-4dcf-b54e-6e9a0fe325e3",  "online_payment_cryptogram": "AgAAAAAABk4DWZ4C28yUQAAAAAA=",  "eci_indicator": "7"}'
{  "is_successful": true,  "redirect_url": "https://api.prod.smartpay.gingerpayments.com/pay/6bf8a727-bef2-4420-8d41-af82f6f19f3d/59f5866a-c216-472e-b803-8a4e83c4578a/completed/"}