java.lang.Object | |
↳ | com.google.android.gms.wallet.PaymentMethodTokenizationType |
Payment method tokenization types.
Integrator can configure MaskedWalletRequest
to tokenize the credit card selected by
the buyer for a transaction using one of the tokenization types listed below. The token for the
selected credit card can be retrieved by calling getPaymentMethodToken()
.
Deprecated. Use WalletConstants.PaymentMethodTokenizationType
instead.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | NETWORK_TOKEN | When this type is used the credit card selected by the buyer will be tokenized using network token APIs. | |||||||||
int | PAYMENT_GATEWAY | When this type is used the credit card selected by the buyer will be tokenized using payment gateway API. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
When this type is used the credit card selected by the buyer will be tokenized using network token APIs.
PaymentMethodTokenizationParameters
will need to contain a "publicKey"
parameter containing an Elliptic Curve public key suitable for using with the NIST P-126 curve.
getPaymentMethodToken()
will contain in getToken()
the JSON representation of an encrypted payment credential
containing the network token, cryptogram, expiration and CVV.
Please refer to the documentation for more information regarding publicKey generation, decryption and parsing of the encrypted payment credential.
When this type is used the credit card selected by the buyer will be tokenized using payment
gateway API. In this case the corresponding FullWallet
will contain the token that the
integrator can then use directly with their gateway to process the charge. See PaymentMethodTokenizationParameters
for more details.