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 toinit(selector, config, eventsCB).
Payer Address
UseupdatePayorAddress() 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, calltriggerSubmit() from your own button after init() completes.
Events
Pass an event callback as the third argument toinit(). The SDK calls this function as checkout state changes.
event name, a human-readable message, and optional data for the payment or verification step.
Styling
Thestyle 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.
