Creating a transaction with Google Pay at API E-commerce Cielo

Authorization with the Apple Pay token works like a credit card authorization, but instead of providing the card details, you must provide the data received from Apple Pay in the fields Payment.Wallet.WalletKey and Payment.Wallet.AdditionalData.EphemeralPublicKey, as shown in the example:

⚠️

The following integration should be used when sending encrypted card data. If the merchant sends the authorization request with decrypted card data, please refer to Decrypted card .

Example of transaction with e-wallet fields

{
  "MerchantOrderId": "2014111708",
  "Customer": {
    (…)
  },
  "Payment": {
    "Type": "CreditCard",
    "Amount": 100,
    "Installments": 1,
    "Wallet": {
      "Type": "AndroidPay",
      "WalletKey": "{\"encryptedMessage\": \"ZW5jcnlwdGVkTWVzc2FnZQ==\",\"ephemeralPublicKey\": \"ZXBoZW1lcmFsUHVibGljS2V5\",\"tag\": \"c2lnbmF0dXJl\"}",
      "AdditionalData": {
        "Signature": "ZXBoZW1lcmFsUHVibGljS2V5"
      }
    }
  }
}
ParametersDescriptionType and size
Payment.Wallet.Typeallet provider name. For Google Pay, use "AndroidPay".String (15)
Payment.Wallet.WalletKeyProvide the signedMessage received from Google Pay.String
Payment.Wallet.AdditionalData.SignatureProvide the signature received from Google Pay.String

ℹ️

Please refer to the API Reference for the full request and response examples.