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

# Wallet

extends Object

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

## Class Overview

The main entry point for Google Wallet integration. You need to build a `GoogleApiClient` using the `API` and the appropriate `Wallet.WalletOptions`. Once you have called `connect()` and your listener has received the `onConnected(android.os.Bundle)` callback, then you can call the various Wallet APIs.

When your app is done using Wallet, call `disconnect()`, even if the async result from `connect()` has not yet been delivered.

You should instantiate an instance of `GoogleApiClient` in your Activity's `onCreate(Bundle)` method and then call `connect()` in `onStart()` and `disconnect()` in `onStop()`, regardless of the state.

For comments and requirements specific to different Wallet APIs, please see each API interface's header comments.

## Summary

Nested Classes
class | Wallet.WalletOptions | Options for using the Wallet API.

Fields
public static final Api<Wallet.WalletOptions> | API | Add this to your `GoogleApiClient` via `addApi(Api)` to enable Wallet features.
public static final Payments | Payments | Methods for interacting with Wallet payments APIs.

Public Methods
static void | changeMaskedWallet(GoogleApiClient googleApiClient, String googleTransactionId, String merchantTransactionId, int requestCode) Use `changeMaskedWallet(GoogleApiClient, String, String, int)` from `Payments`.
static void | checkForPreAuthorization(GoogleApiClient googleApiClient, int requestCode) Use `checkForPreAuthorization(GoogleApiClient, int)` from `Payments`.
static void | loadFullWallet(GoogleApiClient googleApiClient, FullWalletRequest request, int requestCode) Use `loadFullWallet(GoogleApiClient, FullWalletRequest, int)` from `Payments`.
static void | loadMaskedWallet(GoogleApiClient googleApiClient, MaskedWalletRequest request, int requestCode) Use `loadMaskedWallet(GoogleApiClient, MaskedWalletRequest, int)` from `Payments`.
static void | notifyTransactionStatus(GoogleApiClient googleApiClient, NotifyTransactionStatusRequest request) Use `notifyTransactionStatus(GoogleApiClient, NotifyTransactionStatusRequest)` from `Payments`.

[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()

## Fields

#### public static final Api<Wallet.WalletOptions> API

Add this to your `GoogleApiClient` via `addApi(Api)` to enable Wallet features.

To configure additional Wallet options, provide a `Wallet.WalletOptions` object to `addApi(Api)`.

#### public static final Payments Payments

Methods for interacting with Wallet payments APIs.

## Public Methods

#### public static void changeMaskedWallet (GoogleApiClient googleApiClient, String googleTransactionId, String merchantTransactionId, int requestCode)

Use `changeMaskedWallet(GoogleApiClient, String, String, int)` from `Payments`.

#### public static void checkForPreAuthorization (GoogleApiClient googleApiClient, int requestCode)

Use `checkForPreAuthorization(GoogleApiClient, int)` from `Payments`.

#### public static void loadFullWallet (GoogleApiClient googleApiClient, FullWalletRequest request, int requestCode)

Use `loadFullWallet(GoogleApiClient, FullWalletRequest, int)` from `Payments`.

#### public static void loadMaskedWallet (GoogleApiClient googleApiClient, MaskedWalletRequest request, int requestCode)

Use `loadMaskedWallet(GoogleApiClient, MaskedWalletRequest, int)` from `Payments`.

#### public static void notifyTransactionStatus (GoogleApiClient googleApiClient, NotifyTransactionStatusRequest request)

Use `notifyTransactionStatus(GoogleApiClient, NotifyTransactionStatusRequest)` from `Payments`.