Same as the basic demo except the pay2myapp-hub component is not wired up throught the DOM, but through JavaScript. This approach is useful when wireing up the widgets in a framework — where everything happens through JavaScript.

Shows off all widgets. Using features causes back-end endpoint invocations with authorization checks.

In the top-right we see the pay2myapp-status widget — allows (re)login, transaction check, logout, and payments refresh.

Just below we see an explicit "login" button (pay2myapp-appsell widget). This button always allows (re)login and never starts a feature flow.

At the bottom we see three feature buttons (pay2myapp-appsell widgets). These cause initial login and feature flows — through the backe-end — at different payment tiers.

⚠ No bitcoin support in this demo as it uses lucchetto.js connecting to an overhide.io back-end as a service — which only supports the Ethereum address space (for dollars and cryptos).

back to demosview the source