Skip to main content
The Paywint Inline Checkout SDK renders a managed checkout component inside your page. Your backend creates a short-lived checkout token, then your frontend passes that token to the SDK with the payment configuration.

Load the SDK

Load the Paywint Checkout SDK and initialize the checkout mount point.
Replace https://YOUR_PAYWINT_SDK_HOST/checkout.js with the checkout SDK URL provided for your environment.

Configuration

Pass the configuration object as the second argument to init(selector, config, eventsCB).

Payer Address

Use updatePayorAddress() after init() resolves. You can call it again whenever the payer edits their billing address in your host page.

Custom Submit Button

If your integration hides the SDK submit button, call triggerSubmit() from your own button after init() completes.

Events

Pass an event callback as the third argument to init(). The SDK calls this function as checkout state changes.
Common event payloads include an event name, a human-readable message, and optional data for the payment or verification step.

Styling

The style configuration accepts an object of CSS variable overrides. Keys may be provided with or without the leading --.
When pw-checkout-font is provided, the SDK does not load its default Inter font stylesheet. Load your custom font on the host page if the font is not already available.

SDK Methods