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
Follow the Google Pay Web documentation (https://developers.google.com/pay/api/web/overview) to add a Google Pay button to your web page.
Use 2Checkout's Google merchant ID when building the
merchantInfoobject.{ "merchantInfo": { "merchantId": "BCR2DN6T2OAK7HIW" } }Set gateway to verifone and
gatewayMerchantIdto your 2Checkout's gateway ID found below when building thetokenizationSpecificationobject.{ "tokenizationSpecification": { "type": "PAYMENT_GATEWAY", "parameters": { "gateway": "verifone", "gatewayMerchantId": "1ab01f9d-10a6-43fe-9c9e-941798a0813b" } } }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
placeOrdercall payload in thePaymentTokenproperty.
Request parameters
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
Object
Object containing order information.
Response sample
Last updated
Was this helpful?