For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connector Settings and Overrides

Prism provides three configurable settings per connector: Proxy, Timeout, and Retry.

It offers the flexibility to enable the setting could be enabled at a connector level or overridden per request.

Setting
Description
Default

Proxy

HTTP proxy URL for routing requests to a target endpoint. You may leverage this when you choose to outsource PCI compliance to a compliant third party endpoint

None

Timeout

Request timeout from API call in milliseconds. You may tweak this for processor which are slower to respond.

30000ms

Retry

Number of API retry attempts on failure, incase of network failures

0

Configuration at Connector Level

The below example is a connector level configuration of the API keys. Timeout and proxy settings are configured per-request using RequestConfig.

const { PaymentClient } = require('hyperswitch-prism');

const config = {
    connectorConfig: {
        stripe: {
            apiKey: { value: process.env.STRIPE_API_KEY }
        },
        adyen: {
            apiKey: { value: process.env.ADYEN_API_KEY },
            merchantAccount: process.env.ADYEN_MERCHANT_ACCOUNT
        }
    }
};
const paymentClient = new PaymentClient(config);

Override at a Request Level

This is an example of overriding the settings for a single request for timeout and proxy using RequestConfig.

Proxy for PCI Vault

If you wish your payment request to be routed through a PCI compliant endpoint, you may configure it at request level like below.

Last updated

Was this helpful?