Web
...
Web Integrations
Web SDK

Google Pay™ for Web

Google Pay™ for Web

The Judopay Web SDK implements our own easy to use Google Wallet handling service which wraps Google's API requirements, making it very easy for our merchants to implement Google Pay™ for Web. For more information on the Google Pay™ payment flow, see their Developer Guide.

It is assumed you already have a Judopay account. If you do not, sign up for a sandbox account here.

Prerequisites

Make sure you are using Web SDK Version 0.0.18 (or higher).

From the Web SDK integration guide:

The payment form iFrame must be loaded onto the page in order for payments to work. However displaying the form to the consumer is not required for this transaction type.

Direct from Judopay:

  • Judopay Account (sandbox and eventually live)
  • Judopay JudoID

Merchant Requirement (Google Requirement): Prior to going live with Google Pay™ Web Payments, you must have a valid Google verified Live Merchant ID. To receive your Live Merchant ID:

  1. Follow Google Pay™'s Integration Checklist, to ensure you have completed all the required steps in your integration.
  2. Begin the process to obtain production access from Google, here.


Integrating Google Pay™

Google Pay™ Button Style

To help you implement Google Pay™ within your apps, see their Brand Guidelines*.

* The Google Pay™ button guidelines have been updated as follows:

  • Buttons have rounded edges.
  • The color of the button can no longer be set. (If you do set this, it will not break anything, but will no longer have any effect).
  • The long and short button types have been deprecated and replaced with types buy and plain.

You can set the following parameters in the buttonStyle object (defined in the Google Pay Configuration Parameter Descriptions):

Parameter

Description

type String

  • buy
  • donate
  • plain
  • book
  • checkout
  • order
  • pay
  • subscribe

See below for button type details.

sizeMode String

  • Static
  • Fill

height String

Sets the button height in pixels.

width String

Sets the button width in pixels.

locale String

Sets the localised language versions of the Buy with text.

Button Type Details:

buy

  • If set to buy:
    • If the consumer is not logged into their Google Pay™ account Buy with G Pay will be displayed.
buy with g pay button




buy

  • If set to buy:
    • If the consumer is logged into their Google Pay™ account, the details of their selected card will be displayed.
g pay selected card button




donate

  • If set to donate, Donate with G Pay will be displayed.
donate with g pay button




plain

  • If set to plain, the G Pay logo will be displayed.
g pay button plain




book

  • If set to book, Book with G Pay will be displayed.
book with g pay button




checkout

  • If set to checkout, Checkout with G Pay will be displayed.
checkout with g pay button




order

  • If set to order, Order with G Pay will be displayed.
order with g pay button




pay

  • If set to pay, Pay with G Pay will be displayed.
pay with g pay button




subscribe

  • if set to subscribe, Subscribe with G Pay will be displayed.
subscribe with g pay button






Step One: Displaying the Google Pay™ Button

Displaying the Google Pay Button


Configuration Object Parameter Descriptions

See below for more details on the parameters that create the googlePayConfiguration object:

Google Pay™ Configuration Object Parameter Descriptions:




Step Two: Handle the Response




Testing your Wallet Payment Integration

Wallet Payment Scenarios (via Web SDK Integration):

For more information see, Testing your Wallet Payment Integration.