Skip to content

PesepayConfig

Options for loadPesepay().

export interface PesepayConfig
NameTypeDescription
apiBaseUrl?stringThe 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?stringLeave 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?stringWhere the Hosted checkout page that loaderror’s fallbackUrl points to is served. Leave unset: it defaults to Pesepay’s.
elementsOrigin?stringWhere the card fields’ frames load from. Leave unset: it defaults to Pesepay’s.
locale?stringBCP 47 tag, or "auto" to follow the browser. Reserved: en is the only language today.
logLevel?LogLevelHow much the SDK writes to the console. See LogLevel.
publishableKey?stringLeave 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?numberMilliseconds to wait for each API call the SDK makes. Default 30000, 30 seconds.
theme?PesepayThemeTheme for every element. Groups and elements can override it.