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, usewindow.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).
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 onwindow. Use browser events for interface feedback, not as proof of payment.