PesepayConfig
Options for loadPesepay().
export interface PesepayConfigProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
apiBaseUrl? | string | The Pesepay API. Default: the live API. Test Embedded checkout with small live payments: the sandbox runs neither 3-D Secure nor the card providers’ forms. |
applicationId? | string | Leave unset. The card processor’s application id: the SDK already uses Pesepay’s, which every merchant shares. Set it only if Pesepay has issued you one of your own. |
checkoutOrigin? | string | Where the Hosted checkout page that loaderror’s fallbackUrl points to is served. Leave unset: it defaults to Pesepay’s. |
elementsOrigin? | string | Where the card fields’ frames load from. Leave unset: it defaults to Pesepay’s. |
locale? | string | BCP 47 tag, or "auto" to follow the browser. Reserved: en is the only language today. |
logLevel? | LogLevel | How much the SDK writes to the console. See LogLevel. |
publishableKey? | string | Leave unset: Pesepay does not issue publishable keys yet, and every call the SDK makes is authorised by the transaction’s reference number. When set, it is sent as X-Pesepay-Publishable-Key on every request. Never put your integration or encryption key here. |
requestTimeout? | number | Milliseconds to wait for each API call the SDK makes. Default 30000, 30 seconds. |
theme? | PesepayTheme | Theme for every element. Groups and elements can override it. |