---
updatedAt: 2026-02-25T11:47:38.000Z
agentTools:
  projectIndex: https://partner.getpliant.com/llms.txt
---

# Hints

Simple explanation of how to use the SDK methods.

### Initialize SDK

Initialize the SDK using [this method](./google-android-implementation#initialize).

### Check for Cards in the Wallet

First, try using [`MeaPushProvisioning.GooglePay.checkWalletForCardToken(...)`](./google-android-implementation#show-or-hide-add-to-google-pay-button) to get the `tokenId` and `tokenState`.

If that method doesn't find anything, try [`MeaPushProvisioning.GooglePay.getRegisteredTokens(...)`](./google-android-implementation#getting-registered-tokens-from-google-pay-wallet).

Possible outcomes:

1. You get a `tokenId`:
   * If `tokenState` is `GooglePayTokenState.TOKEN_STATE_NEEDS_IDENTITY_VERIFICATION`, show the `Add to Google Pay` button ([`yellow path`](./google-android-implementation#continuing-yellow-path-through-push-provisioning)).
   * If `tokenState` is NOT `GooglePayTokenState.TOKEN_STATE_NEEDS_IDENTITY_VERIFICATION`, the card is already in the wallet. Do NOT show the `Add to Google Pay` button.
2. You don't receive any `tokenId`: show the `Add to Google Pay` button.

### Add Card to Wallet

You have 2 methods to add a card to the wallet:

1. **No`tokenId`** → basic flow. Use [`MeaPushProvisioning.GooglePay.pushCard(...)`](./google-android-implementation#push-card)
2. **Have`tokenId`** , but `tokenState` is `GooglePayTokenState.TOKEN_STATE_NEEDS_IDENTITY_VERIFICATION` → yellow flow. Use [`MeaPushProvisioning.GooglePay.tokenize(...)`](./google-android-implementation#using-tokenize)

## Subscribe to Wallet Data Change Events

Use these two methods to manage wallet change events:

* `MeaPushProvisioning.GooglePay.registerDataChangedListener`
* `MeaPushProvisioning.GooglePay.removeDataChangedListener`

[Read more about them here](./google-android-implementation#handle-google-pay-data-changed-events)