Google Pay with Payment Request

Google Pay can help to convert a mobile shopper into a mobile buyer by decreasing friction in an ecommerce transaction. If you previously implemented Android Pay, you can easily migrate to Google Pay.

GooglePay with Payment Request meets the W3C Payment Request API standard and is separate from the GooglePay API. We recommend that you learn more about the Google Pay Payment Request API.

B2C Commerce enables merchants to incorporate Google Pay with Payment Request into their storefronts. Merchants can determine whether to show the Google Pay button on their Product Detail Pages, Cart, and mini-Cart.

When Google Pay is enabled on a merchant's storefront, the customer can click the Google Pay button and use their phone to complete payment just as they would in the store. The Google Pay feature is disabled by default.

Integrating Google Pay on a site involves:

Enabling Google Pay depends on supporting Google Pay via a cartridge. If a merchant wants to customize the behavior of Google Pay, Salesforce provides hooks to implement custom code. The merchant deploys this code on their site in a cartridge developed by the merchant or someone on their behalf, such as a systems integrator.

Google Pay Roles

There are several entities involved in enabling and using Google Pay on Digital merchant sites:

Google Pay Experience

Google Pay is available only when browsing using Chrome on a Google device. The payment is protected by whatever lock screen functionality the user already uses: fingerprint, pattern swipe, or PIN. Google Pay requires at least one of those lock screen functionality to be turned on. If the shopper has set up Google Pay on their phone, they see the Google Pay button on the pages where the merchant has added it. The shopper can then begin the checkout and payment process by tapping the Google Pay button, review and confirm the order details (payment, shipping option, totals) in the Google Pay payment screen.

Note: When a shopper clicks the Google Pay button on a Product Detail Page, the quantity is automatically set to 1. To purchase more than one of an item using Google Pay, the shopper adds the items to the cart. The shopper then follows the standard checkout process for any payment type.

Testing Google Pay

To test Google Pay, you must have a Google device and a site which is accessible through the public internet. The Google Pay feature is not visible on a desktop or a mobile simulator.

Google protects against attacks that seek to determine customer payment information by not providing information about why a transaction failed. Often, no errors are logged or displayed. This requires a rigorous testing regime to uncover and troubleshoot bugs. This is true of both the Google Pay production and testing environment.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.