Summary: Constants | Inherited Methods | [Expand All]
public final class

# PaymentMethodTokenizationType

extends Object

java.lang.Object
↳ | com.google.android.gms.wallet.PaymentMethodTokenizationType

## Class Overview

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()`.

## Summary

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
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Constants

#### public static final int NETWORK_TOKEN

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.

Constant Value: 2 (0x00000002)

#### public static final int PAYMENT_GATEWAY

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.

Constant Value: 1 (0x00000001)