Widget
How to communicate with widget?
window.transactionlinkHow to implement widget communication
window.transactionlink_ready = () => { transactionlink.setOptions({ token }) transactionlink.open() }// Create a script element const script = document.createElement('script'); // Set the source attribute to the URL of the script script.src = 'https://widget.transactionlink.io/transactionlink-widget.umd.js'; // Append the script element to the document's head document.head.appendChild(script);
Simple code example:
Advanced code example:
Content Security Policy
WebView Support
Last updated