Setting Default Payment Methods
Learn when and how to configure payment methods as defaults for various transaction types
When creating or updating payment methods on an account, you can configure which transaction
types should automatically use that payment method by setting the account_defaults property.
This allows you to specify whether a payment method should be used for payments, payouts,
deposits, withdrawals, or combinations of these operations.
Setting a payment method as the default for specific transaction types streamlines payment flows and enables automated billing operations like Autopay. Only one payment method can be the default for each transaction type on an account.
Prerequisites
Before working with default payment methods, it's helpful to learn about the following topics.
Learn about payment methods
Understand how to create and manage payment methods for accounts, including cards, bank accounts, and other payment types.
Learn about automatic payments
Learn how default payment methods enable Autopay and other automated billing operations.
When to use account_defaults
Use the account_defaults configuration when you need to designate which payment method should
be automatically selected for specific transaction types. This is particularly important for:
Common use cases
- Enabling Autopay for recurring billing and invoice payments on customer accounts
- Setting up a default payout method for recipients (vendors, partners) to receive outbound payments
- Configuring separate payment methods for different transaction directions (e.g., one card for payments, one bank account for payouts)
- Configuring different funding methods for deposits versus withdrawals on processing accounts (useful for escrow situations where debits are not allowed on deposit accounts)
- Streamlining checkout flows by pre-selecting the appropriate payment method based on transaction type
Understanding account_defaults
The account_defaults object contains two properties that control which transaction types use
the payment method as the default:
Paying Operations
The paying property specifies which types of paying transactions should use this payment
method by default. Paying transactions are the initiating transactions that can use either cards
or bank accounts, and work with any account type (customer, processing, or generic).
-
payments- Use this payment method for collecting payments from the account holder (money flowing to you) -
payouts- Use this payment method for sending credits to the account holder (money flowing to them) -
all- Use this payment method for both payments and payouts
When a payment method is set as the default for payments, it will be automatically used for
any automatic invoice payments and Autopay operations.
Transaction Flow: When a paying transaction is initiated, it triggers a corresponding funding transaction on the opposing account to fund or receive the transaction. For example, a payment collected from a customer account creates a deposit funding transaction on the processing account receiving the funds.
Funding Operations (Processing Accounts Only)
The funding property specifies which types of funding transactions should use this payment
method by default. Funding transactions are restricted to processing accounts only and represent
the result of paying transactions from opposing accounts.
-
deposits- Use this payment method for receiving funds into the processing account (when payments are collected) -
withdraws- Use this payment method for pulling funds from the processing account (when payouts are sent) -
all- Use this payment method for both deposits and withdrawals
Processing Accounts Only: Funding defaults can only be configured on processing accounts. Customer and generic accounts use paying defaults exclusively.
Configuring Default Payment Methods
Below are examples of setting payment methods as defaults for different transaction types.
Set a payment method as the default for Autopay
Configure a payment method to be used automatically for invoice payments and Autopay operations.
This example creates a card payment method with:
-
type='card'specifies this is a credit or debit card -
account_idlinks the payment method to the account -
account_defaults.paying='payments'sets this card as the default for collecting payments
This is the most common configuration for customer accounts that will use Autopay for recurring billing. When invoices are generated for this account, they will automatically attempt to charge this card.
Autopay Requirement: For Autopay to function, an account must have a payment method with
account_defaults.paying set to either 'payments' or 'all'. Without this configuration,
automatic invoice payments will not be attempted.
Set a payment method as the default for payouts
Configure a bank account to receive payouts, or credits automatically.
This example creates a bank account with:
-
type='bank_account'specifies this is a bank account -
account_idlinks the payment method to the processing account -
account_defaults.paying='payouts'sets this bank account as the default for sending money to the account holder
This configuration is common for processing accounts (merchants or partners) who need to receive payouts. When transfers or payouts are created for this account without specifying a payment method, this bank account will be used automatically.
Set a payment method for both payments and payouts
Configure a payment method to handle both incoming and outgoing payment operations.
This example creates a bank account with:
-
type='bank_account'specifies this is a bank account -
account_idlinks the payment method to the account -
account_defaults.paying='all'enables this bank account for both collecting payments and sending payouts
This configuration is useful for accounts that need a single payment method to handle both directions of payment flow, such as marketplace participants who both pay for services and receive earnings.
Payment Method Constraints: Not all payment method types support bidirectional flow. Credit cards typically only support payments (collecting from the cardholder), while bank accounts can support both payments (bank debits) and payouts (bank credits).
Set a payment method for funding operations (Processing Accounts)
Configure a bank account on a processing account to handle funding transactions that result from paying transactions on opposing accounts.
This example creates a bank account with:
-
type='bank_account'specifies this is a bank account -
account_idlinks the payment method to the processing account -
account_defaults.funding='all'enables this bank account for both deposits and withdrawals
This configuration is only available for processing accounts. Funding transactions are triggered automatically when paying transactions occur on opposing accounts. For example, when a customer makes a payment, the corresponding deposit funding transaction on the processing account will use this default payment method.
Updating Default Payment Methods
You can change which payment method is the default for specific transaction types by updating
the account_defaults property on payment methods.
Replacing a default payment method
When you set a payment method as the default for a transaction type, any other payment method that was previously the default will be automatically updated to no longer be the default for that type.
For example:
- Payment Method A is set with
account_defaults.paying='payments' - You create or update Payment Method B with
account_defaults.paying='payments' - Payment Method A's
account_defaults.payingis automatically set tonull - Payment Method B is now the default for payments
This ensures that only one payment method is the default for each transaction type at any time.
Removing default status
To remove default status from a payment method without setting a new default, set the relevant
account_defaults properties to null:
Impact on Autopay: Removing the default payment method for payments will disable Autopay functionality until a new default is configured. Ensure you have another payment method ready before removing the current default if continuous Autopay is required.
account_defaults Schema
The schema below defines the structure of the account_defaults object on payment methods.
account_defaultsfundingall, deposits, withdrawspayingall, payments, payoutsNext Steps
Enable automated billing, set up payment routing, and build comprehensive payment flows
Configure Autopay and Recurring Billing
Learn how default payment methods enable automatic invoice payments with Autopay Overview, guide customers through setting up autopay using Autopay Enrollment, create Billing Schedules for recurring charges, and generate Invoices that use default payment methods.
Manage Payment Methods
Add new payment methods to accounts with Creating Payment Methods, modify existing configurations using Updating Payment Methods, and explore all supported options with Payment Method Types.
Build Payment and Payout Flows
Process one-time or recurring payments with Creating Payment Intents, send outbound payouts to recipients using Creating Transfers with their configured default payout methods, and understand the complete Payment Processing lifecycle and status handling.
Configure Automated Funding
Set up Automated Funding to automatically transfer funds when paying transactions occur on processing accounts, use Dynamic Funding to split payment funds across multiple processing accounts, and configure funding strategies for marketplace commission splitting.
Related articles
- Payment Methods API Reference
- Accounts API Reference
- Accounts Overview
- Autopay Webhooks - Monitor Autopay events