Payment Methods API
Provides suspend and callback overloads for all payment method API operations.
Every function returns a Pair whose first element is the parsed response on success and whose second element is a NetworkingError on failure; exactly one of the two is non-null at a time.
Functions
Attaches a payment method to a customer or merchant account.
Attaches a payment method to a customer or merchant account and delivers the result to a callback.
Blocks a payment method, preventing it from being used for new transactions.
Blocks a payment method and delivers the result to a callback.
Creates a new ACH payment method by connecting a bank account via Plaid.
Creates a new ACH payment method by connecting a bank account via Plaid and delivers the result to a callback.
Creates a new ACH bank-account payment method.
Creates a new ACH payment method and delivers the result to a callback.
Creates a new card payment method, optionally encrypting sensitive fields via Evervault.
Creates a new card payment method on the provided coroutine scope and delivers the result to a callback on the main thread.
Creates a new payment method from a Google Pay wallet token.
Creates a new payment method from a Google Pay wallet token and delivers the result to a callback.
Detaches a payment method from its associated customer or account.
Detaches a payment method from its associated customer or account and delivers the result to a callback.
Fetches a paginated list of payment methods.
Fetches a paginated list of payment methods and delivers the result to a callback.
Fetches all payment methods associated with a specific merchant account.
Fetches all payment methods for a merchant account and delivers the result to a callback.
Fetches all payment methods associated with a specific customer.
Fetches all payment methods for a customer and delivers the result to a callback.
Fetches a single payment method by its unique identifier.
Fetches a single payment method by its unique identifier and delivers the result to a callback.
Unblocks a previously blocked payment method, restoring its ability to be used for transactions.
Unblocks a previously blocked payment method and delivers the result to a callback.
Updates mutable fields on an existing payment method.
Updates mutable fields on an existing payment method and delivers the result to a callback.