PaySDK Widget Sandbox Playground

The shown widget is for demonstration purposes only

Widget Initialization Code:

(function (w, d, s, o, f, js, fjs) {
    w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) };
    js = d.createElement(s), fjs = d.getElementsByTagName(s)[0];
    js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs);
}(window, document, 'script', '_treezpay', 'https://development.d28pm8dafanify.amplifyapp.com/widget.js'));

/*
    Script initialization
*/
_treezpay('init', {
    element: document.querySelector(`#paysdk-widget`),
    debug: true,
    authTokenFactory: () => Promise.resolve(getCookie('authToken')),
    getEntityId: () => Promise.resolve(document.getElementById('entityId').value), // Entity ID from input
    theme: {
        positionFixed: true,
    },
    dispensaryShortName: 'test-ach1'
});
        

Below you can initialize a payment by providing the necessary details.



Payment Command:

Payment Response: