post https://api.getansa.com/v1/customers//payment-methods
Creates a Payment method object from a payment token.
Authorization Scope
Both the merchant secret key and client secret key are authorized to call this endpoint.
Plaid Processor Integration
If the tokenSource
is plaid
, the token
should be a Plaid processor token created via the create plaid processor token endpoint.
Stripe Elements Integration
If the tokenSource
is stripe
, the token
should be a Stripe Payment Method ID, starting with pm_
. At this time, only card
type payment methods are supported. Bank Account, wallet, or BNPL payment methods collected via Stripe Elements are not supported. For Sandbox payment methods, see the Stripe Test card numbers page.