Rabobank Docs

Execute a Google Pay payment

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

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.

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
vaultToken*string

The vaultToken from storing the payment token.

Formatuuid
cryptogram?string

The cryptogram from storing the payment token, when present.

eciIndicator?string

The eciIndicator from storing the payment token, when present.

browser_info_screen_width*integer

Screen width of your customer's device, in pixels.

browser_info_screen_height*integer

Screen height of your customer's device, in pixels.

browser_info_color_depth*integer

Color depth of the screen, in bits.

browser_info_user_agent*string

User agent of your customer's browser.

browser_info_time_zone_offset*integer

Time zone offset of your customer's browser in minutes, as new Date().getTimezoneOffset() returns it.

browser_info_language*string

Language of your customer's browser, such as en-US.

browser_info_java_enabled*string

Whether Java is enabled in your customer's browser, as the string true or false.

Value in"true""false"

Response Body

The payment has been started.

application/json
  1. response
is_successful*boolean

Whether the payment was started successfully. Confirm the result by retrieving the order before you deliver.

redirect_url*string

Where to redirect your customer, the result page or 3-D Secure authentication.

Formaturi
reason?|

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/"}