GooglePay™ decrypted

GooglePay™ API

For the merchant:

  1. Configure GooglePay™ to the website, according to the instructions posted on the links:

Documentation: https://developers.google.com/pay/api/web arrow-up-rightBranding requirements: https://developers.google.com/pay/api/web/guides/brand-guidelinesarrow-up-right

2.When the client pays for the service, decrypt the object CARDarrow-up-right by means of PublicKeyarrow-up-right and PrivateKeyarrow-up-right

Example of a card:

{
  "paymentMethod": "CARD",
  "paymentMethodDetails": {
    "authMethod": "PAN_ONLY",
    "pan": "1111222233334444",
    "expirationMonth": 10,
    "expirationYear": 2025
  },
  "gatewayMerchantId": "some-merchant-id",
  "messageId": "some-message-id",
  "messageExpiration": "1759309000000"
}
Example of an encrypted PAN:
{
  "paymentMethod": "CARD",
  "paymentMethodDetails": {
    "authMethod": "CRYPTOGRAM_3DS",
    "pan": "1111222233334444",
    "expirationMonth": 10,
    "expirationYear": 2025,
    "cryptogram": "AAAAAA...",
    "eciIndicator": "5"
   
  },
 
  "messageId": "some-message-id",
  "messageExpiration": "1759309000000"
}

3.The paymentData object described in point 2 must be encrypted with the payment key

Last updated