Execute an Apple Pay payment
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.
order_id*stringThe id of the order.
uuidtransaction_id*stringThe id of the transaction, from the transactions of the order.
uuidapplication/json- body
vault_token*stringThe vaultToken from storing the payment token.
uuidonline_payment_cryptogram*stringThe onlinePaymentCryptogram from storing the payment token.
eci_indicator?stringThe eciIndicator from storing the payment token, when it was present.
The payment has been processed.
application/json- response
is_successful*booleanWhether the payment succeeded. Confirm it by retrieving the order before you deliver.
redirect_url*stringThe result page of the transaction, to redirect your customer to.
uricurl -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/"}