Google Pay™ with Mastercard

Connecting Google Pay™ with MasterCard

Google Pay™ is a digital wallet platform and online payment system developed by Google to power in-app, online, and in-person contactless purchases on mobile devices, enabling users to make payments.

In order to integrate your Google Pay™ account using the MasterCard gateway, you will need to have both Google Pay™ and MasterCard accounts set up. 

Google Pay™ is available in our SDK from version 1.10.73 onwards (npm: @paydock/client-sdk) and you can set it up in our dashboard. Is a requirement from Google that merchants adhere to the Google Pay APIs Acceptable Use Policy and accept the terms defined in the Google Pay API Terms of Service.

Step 1: Look up and configure your credentials from your Google Pay™ account

  1. Create a developer account using this link.
  2. With the developer's account, create a payment profile.
  3. From the MPGS account: 
    1. Your merchant profile on the gateway must be enabled for "Device Payments" by your payment service provider. Also, the option "Enable Decryption of Google Pay™ Device Payments" should be enabled.
    2. Token decryption is not allowed for payment aggregators/service providers unless Google gives permission. The merchant needs to request Google to activate ECv2. This is the API that will allow us to decrypt the token in case we decide to do it. 

Note: Once the merchant has integrated, it is needed to activate the Google Developer Account for products, using the steps described in this link. For Web integration, please check the Google Pay / Web documentation, along with the Web integration checklist and Web brand guidelines.

Step 2: Connect Google Pay™ with MasterСard gateway

The Google Pay integration can be completed by adding a new MasterCard gateway to your Paydock account:

  1. Add a new MasterCard service as described in the MasterCard article.
  2. Click Enable Wallet Payment > Enable Google after filling out the MasterCard fields.
  3. The Google Pay™ field description will appear once the Wallet Payment is enabled. Complete the required fields to connect to Google Pay™:
    1. Merchant ID - This is your Google Pay™ merchant ID.
  4. Click Connect. You have successfully connected MasterCard with Google Pay™ to Paydock!

You can also enable Google Pay™ on an existing MasterCard gateway by going to  Services > Find the service you would like to add the wallet > Actions > Edit > Fill in all required fields.

Add the Google Pay™ Checkout button

The Google Pay™ Checkout button can be added to your checkout page via the Client SDK package. You can find the instructions on how to integrate the button into your website here in the Wallet Buttons section.

Here is the step-by-step flow of the Google Pay™ checkout button:

  1. Create a wallet token to utilize it in the Client SDK using the {{url}}/v1/charges/wallet endpoint.
  2. Use our Client SDK to create a payment form with the checkout button that displays the Google Pay™ Payment Sheet to clients.
  3. After clicking the Google Pay™ button, the Google Payment Sheet is displayed.
  4. Customers will be able to update their Credit Card and Billing information (Shipping is not in the first version scope) and confirm.
  5. The Google Pay™ sheet is closed.

Note: Please keep in mind that users need to be using a browser or phone where Google Pay™ is available. Also, users need to have the Google Pay Wallet pre-configured.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us