Checkout/getCnpClientConfig
Get Client Config
Load browser-safe CNP capabilities for kepa.js.
GET
/api/v1/cnp/client-configBrowser-safeCall from the customer’s browser with a publishable key — never your secret key.
Returns the merchant's browser checkout configuration after publishable-key and Origin validation. kepa.js uses this to discover available payment methods, card brands, feature flags, branding, SDK URL, and card iframe URL.
Response
application/json
merchantIdstringMerchant identifier bound to the publishable key.
environmentstringRuntime environment.
Example "production"
sdkUrlstringkepa.js URL.
cardElementUrlstringHosted card iframe URL.
paymentMethodsarrayEnabled browser payment methods.
Example "card, apple_pay, google_pay"
cardBrandsarrayEnabled card brands.
featuresobjectFeature flags such as hpp, elements, saved payment methods, 3DS, and wallets.
brandingobjectMerchant browser checkout branding.
Good to know
- Send X-Kepa-Publishable-Key from merchant-embedded pages.
- The browser Origin must match the merchant's configured allowed origins.
- Kepa-hosted HPP can use same-origin calls without exposing a merchant API key.
getCnpClientConfig