Use GooglePay™

GooglePayTM has over 150 million users across 42 global markets using the app each month. The wallet is used on nearly 800.000 websites as a secure payment gateway. Roughly 20% of all mobile purchases are made using this digital payment gateway.

Supported currencies

GooglePayTM supports EUR, USD, GBP, CHF, DKK, NOK and SEK transactions.

Workflow

  1. Follow the Google Pay Web documentation (https://developers.google.com/pay/api/web/overview) to add a Google Pay button to your web page.

  2. Use 2Checkout's Google merchant ID when building the merchantInfo object.

    {
              "merchantInfo": {
                "merchantId": "BCR2DN6T2OAK7HIW"
              }
            }
  3. Set gateway to verifone and gatewayMerchantId to your 2Checkout's gateway ID found below when building the tokenizationSpecification object.

    {
              "tokenizationSpecification": {
                "type": "PAYMENT_GATEWAY",
                "parameters": {
                  "gateway": "verifone",
                  "gatewayMerchantId": "1ab01f9d-10a6-43fe-9c9e-941798a0813b"
                }
              }
            }
  4. After the shopper authorizes the payment, pass the token from the Google response to Verifone to process the payment. To do this, encode the token to base64 and add it to the placeOrder call payload in the PaymentToken property.

Request parameters

Parameter
Type / Description

sessionID

Required (string)

Session identifier — the output of the Login method. Include sessionID into all your requests. sessionID expires in 10 minutes.

Required (object)

Object designed to collect all data necessary for an order, including billing, product/subscription plan and payment details. See code sample for more details.

Request sample

Response parameters

Parameter
Type / Description

Object

Object containing order information.

Response sample

Last updated

Was this helpful?