Skip to Content
Docs

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:

  1. 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.
  2. Request payment_method_options. Pay.com merges the payment_method_options from 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 as accepted_card_brands, replaces the entire array.
  3. 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 request payment_method_options instead, 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:

Your defaults

{
  "card": {
    "request_threed_secure": "automatic",
    "accepted_card_brands": ["visa", "mastercard", "amex"]
  }
}

A charge that sends this:

payment_method_options on the charge

{
  "card": {
    "accepted_card_brands": ["visa"],
    "partial_approval": { "accept": true }
  }
}

Uses these resolved options (assuming no Configuration Overrides rule matches):

Options used

{
  "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-…'

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 replaces all of your defaults instead of merging them. Any option you omit is removed. Omitting types resets it to ["card"], plus applepay and googlepay when they're turned on for your account, which turns off every other payment method type. Read your defaults with GET first, change only the fields you need, strip Pay.com-managed read-only fields (such as providers and retry_providers, which return 400), and send the full updated object back.

PATCH /v1/merchants/current/payment_method_options accepts these fields. Any other field returns 400.

FieldTypeDescription
cardobjectCard 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_accountobjectUS bank account options: ach_type (required when you send the object), network, ach_entry, and ach_fallback.
typesarray of stringsPayment method types you accept. Pay.com validates each value against the payment methods enabled on your account.
disabled_payment_methods_typesarray of stringsPayment method types to turn off.
applepay, googlepayobjectWallet collection settings, plus require_cryptogram_threed_secure for Google Pay.
paypal, cashappobjectName and phone verification settings.
bank_accountobjectBank account options, including allowed_countries.
recurringobjectDefault 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
      }
    }
  }'

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_conversion and card.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, and card.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.providers and card.retry_providers, the processors configured for your card payments and retries. Only Pay.com changes them.

Next steps

Was this page helpful?