/** * Defines the minimal contract that each payment provider adapter must * implement in order to integrate with the orchestrator SDK. Each * provider handles initialisation, mounting of secure card form * components, and tokenisation of the card details into a provider * specific token. */ export interface Provider { /** * Initialise the provider with configuration data from the backend. * This may involve loading remote scripts (e.g. Finix.js) and * instantiating provider clients. Providers should handle lazy * loading internally and ensure init() may be called multiple * times without side effects. */ init(config: Record): Promise; /** * Mount the provider's secure card input fields into the given * container selector. Providers should replace the contents of * the container with their own inputs and perform any required * styling. This must be called after init(). */ mountCardForm(selector: string): Promise; /** * Tokenise the card details entered by the customer into a * provider specific token. This method should resolve with an * object containing the token (e.g. payment instrument ID) and * any additional data the provider returns. */ tokenize(): Promise<{ token: string; [key: string]: unknown; }>; } //# sourceMappingURL=Provider.d.ts.map