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_UPDATE. Listen for CONFIG_UPDATE_SUCCESS.
subscribe
CDN script
PaySightSDK.createWidget.
Use environment: 'sandbox' or environment: 'production' in config to target the matching widget endpoint.