This documentation is intended for Google Pay in Android apps. For information about using Google Pay on the web see Google Pay with Collect.js Google Pay allows your customers to submit payment data via a payment method they trust. This also enables you to collect their payment information in a tokenized form so that the plain text credit card information never touches your environment. You can use the data to transact directly, store it in the Customer Vault for future transactions, or create subscriptions.Documentation Index
Fetch the complete documentation index at: https://bancofcalifornia-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Set Up
Google Pay documentation can be found here. Those documents are maintained by Google and will be kept up to date with any changes and enhancements to the Google Pay SDK. When setting up your merchant account in the Google Pay Business Console, Google will ask if you are doing a “Direct” or “Gateway” integration; you should select “Gateway.” The SDK will ask you to provide “gateway” and “gatewayMerchantId” values.| gateway | ”gatewayservices” |
| gatewayMerchantId | Your “Gateway ID” as listed in the Account Information settings page of the merchant portal. |
Overview
While Google’s documentation will have specific details for using the Google Pay SDK, this is an overview of what the integration process and user flow should look like.Render the Google Pay button
Your application will render the Google Pay button using libraries provided by Google Mobile
Services.
Let the customer choose payment details
If the customer taps on the Google Pay button, the Google Pay SDK will open an interface for
the customer to select their payment information.
Complete confirmation in Google Pay
The user confirms their payment information, which closes the interface and returns the user to
your app.
Receive the tokenized payment data
Your app will receive a tokenized version of the customer’s payment information from the Google
Pay SDK.
| Variable Name | Description |
|---|---|
| googlepay_payment_data | The encrypted token created by the Google Pay SDK. |
| Example Input | See sample payload below. |
Merchant-Decrypted Data
Merchants who use a “Direct” Google Pay integration and decrypt the data themselves can relay it through repurposed 3-D Secure fields:| Variable Name | Description |
|---|---|
| decrypted_googlepay_data | Set to “1” to indicate decrypted data is being sent. |
| ccnumber | The dPAN number from the Google Pay token. |
| ccexp | Expiration date associated with the dPAN. |
| cavv | The cryptogram extracted from the Google Pay token. |
| eci | The eCommerce Indicator value from the Google Pay token, when available. |