Google Pay Payment Authorization

B2C Commerce provides Google with information about the customer and basket: line items, shipping methods, and stored contact information.

Google provides B2C Commerce with information to update the basket: the selected billing address, shipping address, and shipping method.

When the shopper authorizes payment, Google Pay provides B2C Commerce with a token containing the encrypted payment information.

We create an order from the basket, and provides the encrypted payment information to the storefront payment service provider in an authorization request. We update the order with the transaction information in the authorization response.

We provide Google with the outcome of the authorization, and if successful, shows the storefront order confirmation page.

To authorize Google Pay payment:

  1. The shopper clicks or taps the Google Pay button.
  2. B2C Commerce creates the payment request.
  3. B2C Commerce creates a merchant session, requested from the B2C Commerce Web Server to Google.
  4. The session is returned to B2C Commerce and is forwarded with the payment request.
  5. The app shows the Google Pay sheet.
  6. The shopper uses their selected authorization method.
  7. Payment data is generated.

Merchant Validation

  1. A validmerchant DOM event is dispatched to the session.
  2. The event has a validationURL property.
  3. Validation is performed.
  4. Call completeMerchantValidation.
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.