Server-to-Server
With Checkout Page, we handle everything for you — Google Pay configuration, gateway identifiers, tokenization settings, and frontend button rendering — all through the hosted checkout. No Google Pay API integration required on your side. See Checkout Page (Google Pay) in Optional Services.
With the Server-to-Server integration, your systems decrypt the Google Pay payment token and handle cardholder data before sending it to OneAPI. You must be fully PCI DSS compliant.
The merchant handles all Google Pay configuration independently and sends the decrypted card data to OneAPI for payment processing.
Merchant Responsibilities
The following are managed entirely by the merchant and are out of scope of OneAPI:
- Google Pay Business account registration and configuration
- Google Pay API frontend integration (rendering the Google Pay button, handling the payment sheet)
- Receiving and decrypting the Google Pay payment token
- Completing the Google Pay integration checklist for production
For details on these steps, refer to the official Google Pay developer documentation.
What OneAPI Handles
Once the merchant has decrypted the Google Pay token and extracted the card data, OneAPI is responsible for:
- Processing the payment request with the decrypted card data
- Handling 3DS authentication when required (PAN_ONLY authorization method)
- Returning the transaction result
- Sending postback notifications with the final payment status
Prerequisites
Before integrating Google Pay using the Server-to-Server integration, the merchant must complete the following steps:
- Sign up with Google — Create a Google Pay account and agree to Google Pay's Terms of Service.
- Configure the Google Pay Business Console — In the Google Pay Business Console, provide the required configuration for your payment gateway and register the domains from which you intend to call the Google Pay API. This is where you obtain your Google Pay
merchantId. - Complete onboarding with our platform — Contact us to complete the onboarding process. You will receive your
gatewayMerchantId, which is the merchant-specific identifier issued by our platform for Google Pay processing. - Fulfill the Google Pay integration checklist — Before going to production, complete the relevant integration checklist:
- For web: Google Pay Web integration checklist
- For Android: Google Pay Android integration checklist
For detailed step-by-step instructions on completing the prerequisites above, see the Merchant Onboarding Guide.
The gateway value in the tokenizationSpecification is a fixed identifier assigned to our platform by Google Pay — it is not something the merchant needs to obtain or configure. It will be provided to you during onboarding.
These values are used in the tokenizationSpecification when configuring Google Pay on your frontend:
{
"type": "PAYMENT_GATEWAY",
"parameters": {
"gateway": "provided_by_platform",
"gatewayMerchantId": "your_gateway_merchant_id"
}
}
For the full sequence diagram, see Payment workflow on the Google Pay overview.
This flow requires full PCI DSS compliance on your side, because decrypted card data passes through your systems before reaching OneAPI.
The merchant sends the decrypted card data to OneAPI via the Payment API. There are three possible flows depending on whether a wallet cryptogram or merchant-side 3DS results are available.
Payment flows
Choose the payment flow that matches your decrypted Google Pay token:
Create a payment with wallet cryptogram (no 3DS required)
Create a payment without wallet cryptogram — with MPI (direct)
Create a payment without wallet cryptogram — without MPI (3DS required)
Compliance and Branding
Merchants using Google Pay must comply with: