Vendor Configuration β Scoping, Client Fields & Routing Reference
Looking up the exact vendors scoping rules, which vendorConfigs fields are client-safe, or how processor routing is determined. For the integration walkthrough, see Configure Vendors.
The vendors Filter β Supported Inputsβ
| Field | Type | Description |
|---|---|---|
vendor | string (required) | Processor identifier. Must exactly match a vendor configured on your merchant account. |
paymentMethods[].type | string | Payment method type. Must be a valid type (CARD, BANK_ACCOUNT). |
paymentMethods[].channels | array | Channels to include for this payment method type. |
Scoping Behaviorβ
| Scenario | Behavior |
|---|---|
vendors omitted | Session uses all payment methods and channels enabled for your merchant account. |
vendors: [] (empty array) | Returns all payment methods and channels configured for your merchant account β same behavior as omitting vendors entirely. |
| Vendor not configured on your account | Session is created successfully; that vendor is silently excluded from vendorConfigs. No error is returned. |
| Channel not supported by the vendor | Silently excluded from vendorConfigs. Delivery channels (TEXT, EMAIL) are always stripped. WEBFORM is always added when supported. No error is returned. |
| Vendor specified but no matching payment method or channel survives | Session is created; vendorConfigs will be empty or absent for that vendor. |
vendor field missing from an entry | Request is rejected β 400 Bad Request. |
Unrecognized enum value in vendor | Request is rejected β 400 Bad Request. |
Your integration should always handle the case where vendorConfigs is empty or absent β see Client Behavior When Configuration Is Absent.
WEBFORM Defaultβ
WEBFORM is always included in vendorConfigs for a payment method type when the processor supports it, even if not explicitly listed in the channels filter. This ensures a web-based payment path is always available (V1 parity).
Delivery channels (TEXT, EMAIL) are always stripped from vendorConfigs β they are delivery mechanisms, not vendor SDK capabilities. Requesting only TEXT, or TEXT alongside APPLE_PAY, results in WEBFORM being added as the fallback web entry point.
Vendor Configuration in the Responseβ
After a V2 session is created, the response contains a vendorConfigs array inside checkoutRequest.config. Each entry represents one payment processor configured for the session.
{
"checkoutRequest": {
"config": {
"vendorConfigs": [
{
"vendor": "STRIPE",
"vendorMerchantId": "acct_xxxxxxxxxxxx",
"clientConfig": {
"publicKey": "pk_live_xxxxxxxxxxxx"
},
"paymentMethods": [
{
"type": "CARD",
"channels": [
{ "type": "APPLE_PAY", "order": 0, "enabled": true },
{ "type": "WEBFORM", "order": 1, "enabled": true }
]
}
]
}
]
}
}
}
When vendorConfigs Is Presentβ
The array contains one entry per processor that matched the session's scope. Each entry includes client-safe configuration your frontend can use to initialize the payment SDK.
When vendorConfigs Is Absent or Emptyβ
| Condition | Meaning | Recommended Action |
|---|---|---|
vendorConfigs not present in response | Session was created on a V1-era merchant account. Legacy paymentMethodChannel applies. | Fall back to legacy channel handling. |
vendorConfigs: [] (empty array) | A vendor filter was applied but no configured processor matched the requested scope. | Display an appropriate message; do not attempt payment. |
Legacy Sessions (Pre-Migration)β
Merchant accounts that were created before multi-processor support was introduced may not have vendorConfigs in the session response. In these cases:
- The
paymentMethodChannelfield incheckoutRequest.configreflects the available payment channels. - The platform uses a single Stripe processor resolved from your legacy merchant configuration.
- No
vendorConfigsentry is returned.
If you are using the CCG widget, it handles this automatically. If you are reading vendorConfigs directly, check for its presence before use.
Client-Safe Configurationβ
The fields inside each vendorConfigs entry are safe to read and use from client-side code (browser / mobile app). They contain only public-facing values β no server-only credentials, private keys, or internal identifiers are included.
Enumerated Client-Safe Fieldsβ
| Field | Description | Example |
|---|---|---|
vendor | Processor name. Use to select the correct SDK or flow. | "STRIPE" |
vendorMerchantId | Your account ID with the payment processor, used to scope transactions to your merchant account. Pass to the payment SDK when initializing. | "acct_xxxxxxxxxxxx" |
clientConfig.publicKey | Publishable API key for the processor SDK. Use to initialize the SDK on the client. | "pk_live_xxxxxxxxxxxx" |
paymentMethods[].type | Payment method type available in this session. | "CARD" |
paymentMethods[].channels[].type | Channel available for this payment method. | "APPLE_PAY" |
paymentMethods[].channels[].enabled | Whether the channel is active for this session. | true |
paymentMethods[].channels[].order | Display order for the channel in the UI. | 0 |
How Values Are Sourcedβ
| Field | Source |
|---|---|
vendor | Determined by your merchant's processor configuration. |
vendorMerchantId | Your account ID with the payment processor, configured for your merchant account during onboarding. |
clientConfig.publicKey | Your processor's publishable API key, configured for your merchant account. |
paymentMethods | Intersection of your merchant's enabled payment methods and the session's vendors filter (if provided). |
channels | Intersection of your merchant's enabled channels for this payment method and the session's channel filter (if provided). |
When Configuration Is Missing or Excludedβ
| Scenario | Behavior |
|---|---|
clientConfig is null | Processor was matched but no client configuration is set up for your account. Contact your onboarding team. |
clientConfig.publicKey is null or absent | Do not attempt to initialize the payment SDK. Display an error to the user. |
paymentMethods is empty | No payment methods matched the session scope. Session was created but payment cannot proceed. |
A specific channel (APPLE_PAY, etc.) is absent | That channel is not available for this session. Do not offer it to the user. |
Client Behavior When Configuration Is Absentβ
If vendorConfigs is absent, empty, or missing clientConfig.publicKey:
- Do not attempt payment SDK initialization.
- Do not display payment method options that rely on processor-specific configuration.
- Handle gracefully β show a user-friendly message or fall back to a supported path.
- Do not re-create the session automatically. If
vendorConfigsis empty, the session scope produced no valid processor match. Review yourvendorsfilter and merchant configuration.
Deterministic Processor Routingβ
How Routing Worksβ
The payment processor for a session is determined at session creation time, based on your merchant configuration and the payment method selected.
- The platform evaluates the requested payment method type (
CARD,BANK_ACCOUNT) and channels against your configured processors. - The matching processor is resolved and its configuration is embedded in
vendorConfigs. - No routing decision is made at payment submission time. The processor in
vendorConfigsis the processor that will handle the transaction.
Key Guaranteesβ
| Guarantee | Description |
|---|---|
| Resolved at creation | The processor is determined when the session is created, not when the user submits payment. |
| Payment method determines processor | Each payment method type (CARD, BANK_ACCOUNT) routes to the processor configured for it on your account. |
| No automatic re-routing | If the processor in vendorConfigs is unavailable at payment time, the transaction fails. No automatic fallback to another processor occurs. |
| Deterministic | Given the same merchant configuration and session inputs, the same processor is always selected. |
Routing and Multiple Processorsβ
If your account supports multiple processors (for example, Stripe for cards and Optum Bank for bank accounts), each processor appears as a separate entry in vendorConfigs:
{
"vendorConfigs": [
{
"vendor": "STRIPE",
"paymentMethods": [{ "type": "CARD", "channels": [...] }]
},
{
"vendor": "OPTUM_BANK",
"paymentMethods": [{ "type": "BANK_ACCOUNT", "channels": [...] }]
}
]
}
The payment method the user selects during checkout determines which processor's configuration is used to complete the transaction.
On Routing Failureβ
If a transaction fails at the processor level after the session is created:
- The session transitions to
FAILED. - No re-routing to another processor occurs.
- Create a new session if you need to retry the transaction.
FAQβ
Q: What happens if I specify a vendor that is not configured on my account?
A: The session is created successfully, but that vendor is silently excluded from vendorConfigs. No error is returned. Always verify vendorConfigs in the response before initializing the payment SDK.
Q: Can I use vendorConfigs from the browser / mobile client?
A: Yes. All fields in vendorConfigs are client-safe. Do not pass server-only fields (such as private API keys) from your backend to the client β they are not included in vendorConfigs.
Q: Is vendorConfigs the same as paymentMethodChannel?
A: No. paymentMethodChannel is a legacy field retained for backward compatibility. vendorConfigs is the V2 replacement and provides richer, processor-specific configuration including the publicKey needed to initialize the payment SDK. Use vendorConfigs for all new integrations.
Q: If my account has Stripe for cards and Optum Bank for bank accounts, will both appear in vendorConfigs?
A: Yes, when both payment method types are available in the session scope, each processor appears as a separate entry in vendorConfigs.
Q: Can the processor change between session creation and payment submission?
A: No. The processor is resolved at session creation and does not change. The processor identified in vendorConfigs handles the transaction.