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 user for a transaction using one of the tokenization types listed below. When tokenization is
used the token for the selected credit card can be retrieved by calling getPaymentMethodToken()
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | NETWORK_TOKEN | When this type is used the credit card selected by the user will be tokenized using network token APIs. | |||||||||
int | PAYMENT_GATEWAY | When this type is used the credit card selected by the user will be tokenized using payment gateway API. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
When this type is used the credit card selected by the user 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 user will be tokenized using payment
gateway API. In this case corresponding FullWallet
will contain the token that
integrator can then use directly with their gateway to process the charge. See PaymentMethodTokenizationParameters
for more details.