Fundamental principles behind the Paysight Widget SDK architecture and usage.
Section | Description |
---|---|
Architecture | Widget isolation and communication model |
Widget Instance | Creating, updating, destroying the widget |
Configuration | Key settings, fields, appearance parameters |
Security | PCI, 3D Secure, real-time validation |
State Management | Widget lifecycle, event handling |
Best Practices | Error management, resource cleanup |
postMessage
API for all widget–parent communicationtargetId
WidgetConfig
.
name
, email
, phone
, address
, city
, state
, zip
, country
, divider
.onMessage
and onError
to ensure you catch all outcomes and errors during integration.threeDSRequired: true
, handled automatically by the widget.
sessionId
for each transaction—improves security and reporting.onError
and handle errors defensively.destroy()
when you remove the widget, especially in single-page apps.sandbox
environment before production launch.