Saved payment method tokens.
Tokens are created by passing store_payment_method: true in a Teya.Transaction
request. The returned token_id can be used in subsequent transactions as a
"TOKEN" payment method.
Required OAuth scope: token/delete.
Summary
Functions
Deletes a saved payment method token.
Functions
@spec delete(String.t(), String.t(), keyword()) :: :ok | {:error, Teya.Error.t()}
Deletes a saved payment method token.
store_id is required — tokens are scoped to a store and only the owning store
may delete them. Returns :ok on success (HTTP 204).
Examples
:ok = Teya.Token.delete(token_id, store_id)