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

# PaymentMethodTokenizationParameters

extends Object
implements SafeParcelable

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

## Class Overview

Tokenization parameters passed by the integrator used to tokenize the credit card selected by the user.

In order to configure gateway tokenization the tokenization type should be set to `PAYMENT_GATEWAY` and gateway specific parameters should be passed as key/value pairs by calling `addParameter(String, String)`. When using gateway tokenization the parameters must include a parameter with name "gateway" and value set to one of the supported gateways e.g. "stripe" or "braintree".

Note: parameters will be validated and error code `ERROR_CODE_INVALID_PARAMETERS` will be returned if they happen to be invalid e.g. missing required parameter for a gateway or unexpected parameter is used.

Example: A sample tokenization configuration used for Stripe:

     PaymentMethodTokenizationParameters parameters = PaymentMethodTokenizationParameters.newBuilder()
         .setPaymentMethodTokenizationType(PaymentMethodTokenizationType.PAYMENT_GATEWAY)
         .addParameter("gateway", "stripe")
         .addParameter("stripe:publishableKey", "dwqfwqef123456")
         .addParameter("stripe:version", "1.5")
         .build();

## Summary

Nested Classes
class | PaymentMethodTokenizationParameters.Builder | Builder to create a `PaymentMethodTokenizationParameters`.

[Expand] Inherited Constants
From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
String | NULL |
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Fields
public static final Creator<PaymentMethodTokenizationParameters> | CREATOR |

Public Methods
Bundle | getParameters() Payment method tokenization parameters
int | getPaymentMethodTokenizationType() Payment method tokenization type.
int | getVersionCode()
static PaymentMethodTokenizationParameters.Builder | newBuilder()
void | writeToParcel(Parcel out, int flags)

[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()
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)

## Fields

#### public static final Creator<PaymentMethodTokenizationParameters> CREATOR

## Public Methods

#### public Bundle getParameters ()

Payment method tokenization parameters

##### Returns

- payment method tokenization parameters

#### public int getPaymentMethodTokenizationType ()

Payment method tokenization type. See `PaymentMethodTokenizationType` for a list of supported tokenization types.

##### Returns

- payment method tokenization type

#### public int getVersionCode ()

#### public static PaymentMethodTokenizationParameters.Builder newBuilder ()

#### public void writeToParcel (Parcel out, int flags)