Payment Methods
Get Payment Config
How online payment works for the active account: whether it is on (`enabled`, with `disabled_reason` when off), the card processor (`authorize_net` or `stripe`), the public configuration its hosted card form needs (`accept_js` or `stripe`), whether bank (eCheck) payments and saving cards are available, the card surcharge, and the pay-at-checkout rules (`allow_card_at_checkout`, `card_required_at_checkout` for an account without payment terms).
List Payment Methods
The cards saved on the active account for the portal's card processor. `chargeable` says whether a card can pay now (`unavailable_reason` explains why not); `removable` whether the buyer may remove it. Card numbers are never returned — only brand, last four and expiry.
Create Payment Method
Save a card on the active account. `opaque_data` (required) is the single-use `{data_descriptor, data_value}` token from Authorize.net's hosted card form; `consent` (required, must be true) records the buyer's authorization (with their IP); `is_default` (optional) makes it the default card; `cardholder_name` optional. Only available when Get Payment Config returns `can_save_cards: true`. Throttled to 10 per minute.
Delete Payment Method
Remove a card saved on the active account (it is also deleted from the processor's vault). A card that isn't the account's returns 404 (`reason: payment_method_not_found`). Only cards with `removable: true` can be removed here; any other card returns 422 (`reason: cannot_remove_card`) and must be removed by the merchant.