Skip to content

LoadOptions

Options for loadPesepay(): the config, plus where and how long to load the runtime.

export interface LoadOptions extends Partial<PesepayConfig>
NameTypeDescription
scriptOrigin?stringOverride the origin the runtime is loaded from. Intended for local development and self-hosting; changing it means you no longer receive patches from the Pesepay CDN.
timeout?numberMilliseconds to wait for the runtime script before rejecting.