An UI Button for interacting with Bitcoin SV wallets (written in pure JS - no dependencies)
Simply include the JS file in your page and write:
btn = bitbtn.create(
document.getElementById("location-for-the-bitcoin-button"),
{
label: "Pay!",
address: "1CiesvEUNg9sVm8ekhMrGyATvEnH5YU9wh",
amount: 0.1111111111111111111111,
currency: "USD",
onError: function (error) { console.log(error); },
});
