Skip to main content
In Catalog → Products, open the product actions menu and select Embed checkout. Copy the button code. Load the script once per page. The embed does not need an API key.

Button attributes

The script also works with buttons you add after the page loads. Disabled buttons do not open checkout. On small screens, checkout opens from the bottom of the page.

Appearance

Open Settings → Checkout embed to set the background, product summary, text, and pay button colors. You can also set the Button texture. Changes apply the next time a buyer opens checkout.

JavaScript API

After the script loads, use window.Paysum.open(productId, options) or window.Paysum.close(). Pass store if no matching button is present. Optional settings include lang, storeUrl, and checkoutPath (default /checkout).
Use preload(productId, options) to load checkout early, retry(productId) to reload a failed checkout, and clearCache() to remove inactive frames. Use configure(options) to set defaults and destroy() to remove the integration. window.Swiftly is a legacy alias.

Events

Listen on window. Use browser events for interface feedback, not as proof of payment.

Before you go live

Use an active product with stock and a compatible payment method. Test the button on mobile and desktop. If you use a Content Security Policy, allow the Paysum script, the store’s checkout frame, and the injected styles. See Embed troubleshooting for checks.