Skip to main content

Checkout Page (Google Pay)

In the Checkout Page integration, our platform acts as the PSP and takes full responsibility for the Google Pay configuration, including the gateway identifier, gatewayMerchantId, tokenization parameters, and the Google Pay button rendering on the hosted checkout.

Merchants do not integrate the Google Pay API directly. All Google Pay request objects and tokenization parameters are generated and handled by our platform.

info

Checkout Page Google Pay must be enabled for your merchant account. Contact your onboarding manager to activate this service.

PCI-DSS scope handled by us

With the Checkout Page integration, your systems never handle cardholder data. PCI-DSS scope is handled by us.

Benefits​

  • No Google Pay API integration — Our platform handles all Google Pay configuration and tokenization settings.
  • No frontend integration — The Google Pay button is rendered automatically on the Checkout Page.
  • No token handling — Merchants do not handle, decrypt, or validate Google Pay payment tokens.
  • Simplified checkout — Create a checkout session and redirect — that's it.
  • 3DS handled automatically — When using the PAN_ONLY authorization method, 3DS is fully managed by our platform.

How It Works​

  1. Customer initiates a transaction on the merchant's website or app.
  2. Merchant creates a checkout session via the Checkout API.
  3. OneAPI returns the checkout session details including a redirect URL.
  4. Merchant redirects the customer to the Checkout Page.
  5. Customer clicks the Google Pay button and authenticates via their Google account.
  6. Google returns encrypted payment data to OneAPI.
  7. OneAPI processes the payment.
  8. Customer is redirected to success_url or error_url.
  9. OneAPI sends a webhook notification to the merchant's postback_url.
  10. Merchant updates order status and displays final confirmation to the customer.

Payment Flow​

Merchant Onboarding​

With the Checkout Page integration, our platform handles the Google Pay configuration and API setup. The merchant onboarding process is simplified compared to the Server-to-Server integration.

Steps​

  1. Contact your onboarding manager — Request activation of Checkout Page Google Pay for your merchant account.
  2. Provide your business details — Your onboarding manager will confirm which information is required (e.g. business name, website URL).
  3. Receive confirmation — Once activated, Google Pay will be available as a payment option on your Checkout Page.

What our platform handles​

  • Google Pay & Wallet Console registration and configuration
  • Gateway identifier (gateway) and merchant identifier (gatewayMerchantId) setup
  • Google Pay API integration and domain registration
  • Buyflow screenshot submission and approval process
  • Tokenization parameters and frontend button rendering

What the merchant handles​

  • Providing business information to the onboarding manager
  • Integrating the Checkout API to create checkout sessions
  • Redirecting customers to the Checkout Page
info

If you prefer to manage Google Pay registration and configuration yourself, see the Google Pay — Server-to-Server documentation and the Merchant Onboarding Guide.

Enabling Google Pay (Checkout Page)​

Google Pay must be enabled for your merchant account by our platform. Once enabled:

  1. Create a checkout session using the Checkout API.
  2. Redirect customers to the payment page generated by our platform.

No additional frontend integration or SDK implementation is required.

Below is an example of the Checkout Page as seen by the customer, with Google Pay available as a payment option.

Checkout Page with Google Pay

Authorization Methods​

Google Pay supports two authorization methods, both enabled by default:

  • CRYPTOGRAM_3DS — The payment includes a wallet cryptogram. No additional 3DS authentication is required.
  • PAN_ONLY — 3DS authentication may be required. In the Checkout Page integration, 3DS handling is fully managed by our platform.

Tokenization Configuration​

The following values are configured and managed by our platform:

  • gateway — Identifier assigned to our platform during Google Pay onboarding.
  • gatewayMerchantId — Merchant-specific identifier assigned by our platform.

When using the Checkout Page integration, merchants do not need to configure these values manually.

Checkout API Request​

merchant_nameStringrequired
Name of the merchant displayed on the checkout page
order_idStringrequired
Any alphanumeric string to identify the Merchant's order
referenceString
Reference for the checkout session
descriptionString
Description of the product or service
currencyStringrequired
3 letter currency code
amountFloatrequired
Amount of the transaction
total_amountFloatrequired
Total amount including taxes and shipping
success_urlStringrequired
Where to redirect the user after a successful transaction
error_urlStringrequired
Where to redirect the user after a failed transaction
postback_urlStringrequired
The URL for updates about transaction status are posted
See the Checkout API reference for the full list of supported parameters.
Example RequestHTTP
POST /rest/checkouts
Authorization: Basic <base64(api_key:api_password)>
Content-Type: application/json
{
"merchant_name": "Your Shop Name",
"order_id": "GPAY-12345",
"reference": "Google Pay Order",
"description": "Payment for order GPAY-12345",
"currency": "EUR",
"amount": 25.90,
"total_amount": 25.90,
"success_url": "https://your-success.url.com",
"error_url": "https://your-error.url.com",
"postback_url": "https://your-postback.url.com"
}

Checkout API Response​

checkout_idString
ID of the created checkout session
error_codeInteger
Error code for the response
statusString
Status of the checkout session
client_actionString
Indicates the required client-side action. Value: redirect
action_dataObject
Contains: url — the checkout page URL to redirect the customer to
Example ResponseJSON
{
"checkout_id": "7a87a507-91e8-4882-9b2d-19f35434d946",
"error_code": 0,
"status": "open",
"client_action": "redirect",
"action_data": {
"url": "https://testapi.betterpayment.de/rest/checkouts/7a87a507-91e8-4882-9b2d-19f35434d946"
}
}

Server-to-Server​

If you prefer to manage Google Pay configuration and frontend integration yourself, see the Google Pay — Server-to-Server payment method documentation.