Represents a card provisioned into a mobile digital wallet (Apple Pay /
Google Pay) — called a "Token" in the Treasury Prime API reference, and
reachable at the digital_wallet_token path.
Tokens aren't created directly; they're the result of walking a customer
through Apple's/Google's in-wallet provisioning flow, which involves your
client app, Apple's/Google's servers, and Treasury Prime. See
provision_with_apple_pay/3 and provision_with_google_pay/3 for the
Treasury Prime side of that handshake — you forward their response to the
respective wallet's SDK as-is.
See also the Digital Wallet Notifications guide for proactively alerting cardholders when a card is added to a wallet (a common fraud signal).
Summary
Functions
Fetches a single digital wallet token by id.
Lists digital wallet tokens.
Performs the Treasury Prime side of Apple Pay in-app provisioning for
card_id. params should include the encrypted certificates/nonce data
Apple's PKAddPaymentPassRequest flow gave your client app. Forward the
response verbatim to that flow.
Performs the Treasury Prime side of Google Pay in-app provisioning for
card_id. params should include the data Google's push-provisioning
API gave your client app. Forward the response verbatim to that flow.
Updates a digital wallet token (e.g. to "suspended" or "deactivated").
Types
Functions
@spec get(TreasuryPrime.Client.t(), String.t()) :: {:ok, t()} | {:error, TreasuryPrime.Error.t()}
Fetches a single digital wallet token by id.
@spec get!(TreasuryPrime.Client.t(), String.t()) :: t()
@spec list(TreasuryPrime.Client.t(), map()) :: {:ok, TreasuryPrime.Page.t()} | {:error, TreasuryPrime.Error.t()}
Lists digital wallet tokens.
Filterable params
card_id, status.
@spec list!(TreasuryPrime.Client.t(), map()) :: TreasuryPrime.Page.t()
@spec provision_with_apple_pay(TreasuryPrime.Client.t(), String.t(), map()) :: {:ok, map()} | {:error, TreasuryPrime.Error.t()}
Performs the Treasury Prime side of Apple Pay in-app provisioning for
card_id. params should include the encrypted certificates/nonce data
Apple's PKAddPaymentPassRequest flow gave your client app. Forward the
response verbatim to that flow.
@spec provision_with_google_pay(TreasuryPrime.Client.t(), String.t(), map()) :: {:ok, map()} | {:error, TreasuryPrime.Error.t()}
Performs the Treasury Prime side of Google Pay in-app provisioning for
card_id. params should include the data Google's push-provisioning
API gave your client app. Forward the response verbatim to that flow.
@spec update(TreasuryPrime.Client.t(), String.t(), map()) :: {:ok, t()} | {:error, TreasuryPrime.Error.t()}
Updates a digital wallet token (e.g. to "suspended" or "deactivated").
@spec update!(TreasuryPrime.Client.t(), String.t(), map()) :: t()