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

# PaymentMethodToken

extends Object
implements SafeParcelable

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

## Class Overview

Parcelable representing payment method token.

## Summary

[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<PaymentMethodToken> | CREATOR |

Public Methods
int | getPaymentMethodTokenizationType() Payment method tokenization type used to create this token.
String | getToken() Payment method token for the credit card selected by the user.
int | getVersionCode()
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<PaymentMethodToken> CREATOR

## Public Methods

#### public int getPaymentMethodTokenizationType ()

Payment method tokenization type used to create this token. See `PaymentMethodTokenizationType` for a list of supported tokenization types.

##### Returns

- payment method tokenization type

#### public String getToken ()

Payment method token for the credit card selected by the user.

When gateway tokenization is used to tokenize the credit card, this token will contain gateway specific value. Integrator will need to send this token to their server to make an actual charge.

##### Returns

- payment method token

#### public int getVersionCode ()

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