<!-- Include in the head --><link crossorigin rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@clickpesa/payout-widget@latest/lib/scripts/style.css">
<!-- Include in the body --><divid="clickpesa-payout-widget"></div><scriptdeferasync>window.clickpesaVariables = { clientId:"${clientId}", theme: { primaryColor:"${color}", fontFamily:"${fontFamily}", mode:"${mode}" },// optiona; orderDetails: { orderReference:"1234"; orderCurrency: "TZS"// or USD },// optionalclose: (checkoutLink:string) => {console.log(checkoutLink) } // optional }</script><scriptcrossoriginsrc="https://cdn.jsdelivr.net/npm/@clickpesa/payout-widget@latest/lib/scripts/script.js"></script>
Dynamic Configuration: Developers can dynamically change the clientId and other properties using the clickpesaVariablesChange event.
Checkout Link Widget handles authentication, where by merchant will have to login within the widget to create checkout link. and signs them out when they close the widget which will send the checkout link in the close callback if it was created.