Merchant defaults
Set default payment method options for your account and understand how rules, requests, and overrides combine.
Your account's payment method options are the defaults for every payment that
doesn't set its own. Read them with
GET /v1/merchants/current/payment_method_options
and change them with
PATCH /v1/merchants/current/payment_method_options.
If your account has a default configuration set in the Pay.com dashboard, under
Settings → Payment Methods Configuration, that set supplies your
defaults instead. GET returns its options, and PATCH doesn't change them.
Edit the set in the dashboard.
How a payment's options are built
Pay.com resolves the options for each charge, hold, session, and payout in this order:
- Account defaults or a matching Configuration rule. Pay.com starts from your account's defaults. If a Configuration rule matches the payment, Pay.com uses the rule's options instead. The rule's options replace your defaults rather than merging with them.
- Request
payment_method_options. Pay.com merges thepayment_method_optionsfrom your API request field by field over those options. A field you send overrides the same field in your defaults or a Configuration rule. An array you send, such asaccepted_card_brands, replaces the entire array. - Matching Configuration Overrides rules. Any matching Configuration Overrides rule evaluates on every matching payment (both initial attempts and fallback attempts) and merges last as the highest precedence layer, overriding your defaults, Configuration rules, and request
payment_method_options. When multiple Configuration Overrides rules match, they combine, with higher-priority rules taking precedence on overlapping fields. A fallback attempt that applies its own configuration set uses that set and your requestpayment_method_optionsinstead, without the override.
When neither a rule nor your request sets options and your account has a
default configuration set, the payment's payment_method_options also returns
the set's ID in payment_method_config_id, with
payment_method_config_source: "default".
For example, with these defaults:
{
"card": {
"request_threed_secure": "automatic",
"accepted_card_brands": ["visa", "mastercard", "amex"]
}
}A charge that sends this:
{
"card": {
"accepted_card_brands": ["visa"],
"partial_approval": { "accept": true }
}
}Uses these resolved options (assuming no Configuration Overrides rule matches):
{
"card": {
"request_threed_secure": "automatic",
"accepted_card_brands": ["visa"],
"partial_approval": { "accept": true }
}
}Read your defaults
Send a GET request to
/v1/merchants/current/payment_method_options.
The response contains both the options you can change and the read-only
settings Pay.com manages for your account.
curl https://api.sandbox.pay.com/v1/merchants/current/payment_method_options \
-u ':sk-pay-com-sandbox-…'{
"types": ["card", "applepay", "googlepay"],
"card": {
"request_threed_secure": "automatic",
"accepted_card_brands": ["visa", "mastercard", "amex"],
"network_token": {
"provision": { "enabled": true }
},
"providers": [],
"retry_providers": []
}
}Change your defaults
Send a PATCH request to
/v1/merchants/current/payment_method_options.
If your account has a default configuration set, PATCH doesn't change it.
Change your defaults in that set in the Pay.com dashboard instead.
PATCH /v1/merchants/current/payment_method_options accepts these fields. Any
other field returns 400.
| Field | Type | Description |
|---|---|---|
card | object | Card options: accepted_card_brands, accepted_card_funding, accepted_card_jurisdictions, accepted_card_categories, accepted_card_countries, enforce_customer_name_as_cardholder_name, security_checks, request_threed_secure, duplicate_card_check, accepted_eci_values, network_token, advanced_fraud_screening, and account_billing_updater. |
us_bank_account | object | US bank account options: ach_type (required when you send the object), network, ach_entry, and ach_fallback. |
types | array of strings | Payment method types you accept. Pay.com validates each value against the payment methods enabled on your account. |
disabled_payment_methods_types | array of strings | Payment method types to turn off. |
applepay, googlepay | object | Wallet collection settings, plus require_cryptogram_threed_secure for Google Pay. |
paypal, cashapp | object | Name and phone verification settings. |
bank_account | object | Bank account options, including allowed_countries. |
recurring | object | Default mandate terms for recurring payment methods. |
curl -X PATCH https://api.sandbox.pay.com/v1/merchants/current/payment_method_options \
-u ':sk-pay-com-sandbox-…' \
-H 'Content-Type: application/json' \
-d '{
"types": ["card", "applepay", "googlepay"],
"card": {
"request_threed_secure": "automatic",
"accepted_card_brands": ["visa", "mastercard", "amex"],
"network_token": {
"provision": { "enabled": true }
},
"account_billing_updater": {
"enabled": true,
"retry_after_update": true
}
}
}'{
"types": ["card", "applepay", "googlepay"],
"card": {
"request_threed_secure": "automatic",
"accepted_card_brands": ["visa", "mastercard", "amex"],
"network_token": {
"provision": { "enabled": true }
},
"account_billing_updater": {
"enabled": true,
"retry_after_update": true
}
}
}Defaults Pay.com sets
Some options aren't accepted by PATCH, such as card.partial_approval and
card.request_sca_exemption. Pay.com can configure them as defaults for your
account. Contact your account manager to change them. Options you send on a
payment still take precedence over account defaults.
The GET response can also include settings that PATCH doesn't accept:
card.dynamic_currency_conversionandcard.instant_refund, when Pay.com configures them for your account. Only Pay.com changes them.card.request_ani,card.use_customer_name_ani,card.accepted_ani_results, andcard.accepted_ani_results_breakdown, the defaults for Account Name Inquiry. You set them in your default configuration set in the Pay.com dashboard, not through the API.card.providersandcard.retry_providers, the processors configured for your card payments and retries. Only Pay.com changes them.
Next steps
- Payment method options: Browse all options and their guides.
- Options set by rules: Set or override options dynamically with rules.