

Implement a new integration, the version is ECv2. The structure of the decrypted payload varies between two protocol versions, ECv1 and ECv2. expirationYear: This is set five years from the current year.messageId: This is randomly generated for each payload.messageExpiration: A timestamp set one week from the current time.The following three fields may differ in your decrypted payload compared to the samples on this The payload for non-tokenized cards is always the same, regardless of card network. In addition, the payload for tokenized cards is different, which depends upon theĬard network. The payload structureĭepends on whether the card that was selected is tokenized, which means it's been added to Google Once the sample token is decrypted, you receive the cleartext payload. Decrypted payload Important: The payload samples provided here are illustrative only. When you build a PaymentMethodTokenRecipient object. fetchSenderVerifyingKeysWith(GooglePaymentsPublicKeysManager.INSTANCE_TEST) is set The tokens produced in the environment TEST are encrypted with your test public key Install and add at least one supported payment method to the In addition, to generate sample tokens for tokenized cards, you need to


Is set to TEST, but you must add at least one chargeable card to your Google accountīefore you proceed. Important: Your real card details are never used when the environment Instead, the token that results always has a constant However, it never actually returns real informationįrom the card that was selected. That the user selects one of their real cards. TEST, the calls to loadPaymentData work as usual, and they request When the PaymentsClient instance is constructed with the environment set to Sample tokens if you set the environment to TEST when you construct a In order to test token decryption on your server for direct integrations, you can generate This page describes how to use sample tokens to test your integration.
