Execute a Google Pay payment
Processes the Google Pay transaction with the vaultToken, cryptogram and eciIndicator from storing the payment token, and the browser details of your customer for 3-D Secure. No API key is needed. Only for a server-to-server integration with your own checkout: with the hosted payment page you don't call this endpoint.
Redirect your customer to the redirect_url in the response. Without a cryptogram, the card was returned as PAN_ONLY and the redirect_url leads to 3-D Secure authentication. 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
vaultToken*stringThe vaultToken from storing the payment token.
uuidcryptogram?stringThe cryptogram from storing the payment token, when present.
eciIndicator?stringThe eciIndicator from storing the payment token, when present.
browser_info_screen_width*integerScreen width of your customer's device, in pixels.
browser_info_screen_height*integerScreen height of your customer's device, in pixels.
browser_info_color_depth*integerColor depth of the screen, in bits.
browser_info_user_agent*stringUser agent of your customer's browser.
browser_info_time_zone_offset*integerTime zone offset of your customer's browser in minutes, as new Date().getTimezoneOffset() returns it.
browser_info_language*stringLanguage of your customer's browser, such as en-US.
browser_info_java_enabled*stringWhether Java is enabled in your customer's browser, as the string true or false.
"true""false"The payment has been started.
application/json- response
is_successful*booleanWhether the payment was started successfully. Confirm the result by retrieving the order before you deliver.
redirect_url*stringWhere to redirect your customer, the result page or 3-D Secure authentication.
urireason?|Why the payment failed, worded for your customer. Only when it failed.
curl -X POST 'https://api.prod.smartpay.gingerpayments.com/pay/8078d78f-8700-4cfe-94b1-4a777d3400f2/select-payment-method/google-pay/a5dac3de-d304-4570-922b-373d478b8b3a/' \ --user "$API_KEY:" \ -H 'Content-Type: application/json' \ -d '{ "vaultToken": "d972dc43-6a3d-4dcf-b54e-6e9a0fe325e3", "cryptogram": "AgAAAAAABk4DWZ4C28yUQAAAAAA=", "eciIndicator": "05", "browser_info_screen_width": 1920, "browser_info_screen_height": 1080, "browser_info_color_depth": 24, "browser_info_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36", "browser_info_time_zone_offset": 0, "browser_info_language": "en-US", "browser_info_java_enabled": "false"}'{ "is_successful": true, "redirect_url": "https://api.prod.smartpay.gingerpayments.com/pay/6bf8a727-bef2-4420-8d41-af82f6f19f3d/59f5866a-c216-472e-b803-8a4e83c4578a/completed/"}