The Google Payment API enables fast and easy online purchases by eliminating the need for users to manually enter their payment information on your site. Integrating with the Google Payment API will help you offer one-touch checkout experiences for hundreds of millions of Google users. The users can select to pay with any debit or credit card saved in their Google account, including Android Pay.
Before you get started
Consult the following before you begin your implementation:
PaymentRequestdocumentation. The Google Payment API uses the Payment Request open web standard. This guide shows how to add support for the Google Payment API, but assumes a working PaymentRequest implementation.
- You must use Chrome M61 or later on Android for devices running Google Play Services version 11.4.x or later.
- Install and add a payment method to Android Pay.
- Add a payment method to Google.
- In Chrome on Android, enable chrome://flags#pay-with-google-v1
- Adhere to our Google Payment API Acceptable Use Policy.
Registration and terms of service
Before you call the Google Payment API, you must register with Google and accept our terms of service.
You will need the following:
- A Google account
- Public encryption key if you intend to request encrypted forms of payment
- List of domains (including subdomains) from which you intend to call the Google Payment API
After successfully registering, you will receive a Google merchant ID that must be included with each incoming request.