OptionaldefaultOptionalfetchCustom fetch implementation for provider API calls (for example to add a proxy or for tests). Default: globalThis.fetch.
Optionalinit: RequestInitOptionalhandlerOptions for payment.handler
OptionalloggerOptionalmode'sandbox' selects test URLs and turns on provider test modes (PayTR test_mode, Akbank test gateways). Defaults to 'production'.
OptionalpluginsPlugins, applied in order
Providers by id: { iyzico: iyzico({...}), paytr: paytr({...}) }. A custom
provider can be passed as an instance of a PaymentProvider subclass.
OptionalretryOptionalvalidateValidate requests before calling providers. Default: true.
Can be overridden per provider with validate in its config.
Provider used by the operations on the payment object (
payment.createPayment()). Default: the only provider, when there is exactly one.