Google Pay

How do I support Google Pay as a merchant?

(1) Register as a Google Pay merchant.

(2) Generate Payment Method Tokens. Ask you TabaPay rep for the gatewayMerchantId you will use to generate GooglePay tokens.

(3) Use "tabapay" (case-sensitive) as your gatewayId.


What authMethod should I use for Google Pay?

The merchant can choose to support PAN_ONLY and/or CRYPTOGRAM_3DS. While the merchant can choose their authMethod, TabaPay strongly encourages the sole use of authMethod CRYPTOGRAM_3DS to mitigate fraud.

946

https://developers.google.com/pay/api/web/guides/tutorial#supported-card-networks


Can I decrypt my own Google Pay PaymentMethodToken?

📘

GooglePay Tokens and PCI-scope

If the merchant's PCI-compliance does not allow card-handling then the merchant will rely entirely on TabaPay to decrypt the PaymentMethodToken.

If a merchant's PCI-compliance allows them to handle real card numbers, the merchant may decrypt the PaymentMethodToken that is produced from a Google Pay transaction.

If the authMethod is CRYPTOGRAM_3DS, then the PaymentMethodToken will be mapped to TabaPay's card.mobilePay fields. See the mapping below:

Google Pay PaymentMethodToken TabaPay card.mobilePay
pan accountnumber
expirationMonth
expirationYear
expirationDate
YYYYMM
cryptogram cryptogram
eciIndicator (optional) eciIndicator (optional)

The network of the card used (Visa, MasterCard, etc.) is mapped to the network in the card.mobilePay. The type of card (debit, credit, prepaid, etc.) is mapped to the type in card.mobilePay.

If the authMethod is PAN_ONLY, then the Google Pay PaymentMethodToken will be mapped to TabaPay's card.accountNumber and card.expirationDate fields.
Google Pay PaymentMethodToken TabaPay card
pan accountnumber
expirationMonth
expirationYear
expirationDate
YYYYMM

How do I use a Google Pay PaymentMethodToken for Create Transaction?

(1) Use the card.device object
(2) In the card.device

card.device field Value Notes
id "GooglePay|gatewayMerchantID" GooglePay is a static value
gatewayMerchantID is the gatewayMerchantId you used to generate a GooglePay Token
blob unaltered, URL-safe base64 encoded, fully encrypted Google Pay PaymentMethodToken No padding or spaces in your blob, remove any trailing = before sending the request

(3) Fill in the remaining required information for Create Transaction.


How do I test Google Pay for Create Transaction?

You can test in our Sandbox today if you are enabled by our support and operations teams. Ensure any PaymentMethodTokens you send are produced in the ENVIRONMENT_TEST.

If you are enabled to test Google Pay in Sandbox, but are not a registered (and approved) Google Pay merchant, use GooglePayVisa or GooglePayMasterCard piped with (|) the gatewayMerchantId you will use to generate tokens as the id in the card.device object. See examples below:

GooglePayVisa|gatewayMerchantId
GooglePayMasterCard|gatwayMerchantId


What does a TabaPay response contain when using Google Pay in Create Transaction?

The responses from Google Pay will stay consistent with the current Create Transaction responses.


How do I create the card.device.blob?

(1) Take the UNALTERED, encrypted PaymentMethodToken:

{"signature":"MEUCIHDD0DQ9XYJrerxeI0LpCQyFmqFqpJgHeeLqJDhF0z8TAiEA20LF0JUwEmE1dz2BFUgii3NFHzXDDmgsvBTHcdLVZ30\u003d","intermediateSigningKey":{"signedKey":"{"keyValue":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEr6dAac0eKNSjPE4er6DsMA4oTaoUXMERhL+7OOISIKhvo8K5OVrIuWfvKHYE2DNAmZkHSwitRs49gMHs5Q7aeA\u003d\u003d","keyExpiration":"1606934885430"}","signatures":["MEYCIQC/uS8hLRz8eZ2aQ4gi50HFW4IxEZcZ8Jj1hJwjaMCCHQIhAI0ry1VEAzGBu0hHrtGfvT11ZqnqFSjEupYS59+lG7NB"]},"protocolVersion":"ECv2","signedMessage":"{"encryptedMessage":"aew8n0SadRGeorqyYSQCcufpnUU1d0+9D0TaCA+WIvSmY8IKtsVzXIJ0Wzsy2dIFHABzlaO5QpB+afyBZpqxET1v5t5bdjPhIREBDL3alkL2Hpteaz5xev+MD2e+JjCpwxhsKk0c8K/7uUDMUeu5Qt4sF+GvrPw4MheAWimNUb2JF+sqEGWmlmNxkOkz0D12xFH43avRkjlctcnNDWLGYhxiROBxePd1Hc5n6O5Nfc+nfx5HhjfNwm3R2Ey2WfVTwzd9pJ7xxXS/nd71C+cCSuIdMRDqgZxzjvSIMvkA8BBDSPTIAaurXo04uQRbqt+XW1JKOGSJkv7YccEUvnYnyDhP9YFCV6K8B7iCI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