Methods
Overview
Transact Bridge Iframe is a JavaScript class that simplifies the integration of Transact Bridge’s payment iframe. It allows you to embed a secure payment gateway, handle session updates, track transactions, and manage iframe closure seamlessly.
Usage
1. Add Required HTML Elements
Include a Buy Now button, a modal dialog, and an iframe container:
Root element id must be tb_root
(This is where your iframe will initialize)
2. Initialize and Use TBIframe
Create an instance and handle the payment session: