Skip to main content

PaySightSDK.createWidget

Returns

submitPayment / submitUpsell

Use when hidePaymentButton: true or when you want a host-controlled CTA.
Calling submitPayment() during upsell mode (or submitUpsell() during checkout) emits ERROR with code INVALID_MODE.

update

Config updates are sent to the iframe as CONFIG_UPDATE. Listen for CONFIG_UPDATE_SUCCESS.

subscribe

CDN script

Global: PaySightSDK.createWidget. Use environment: 'sandbox' or environment: 'production' in config to target the matching widget endpoint.