Create and show bitpay invoices.
<bitpay-invoice-create
auto
testnet
amount="12.34"
token="B75pQ5ZyM2CUCJbnH6zajY5pndzpgVxG1YpVd6a3Ljqh"
invoice="{{ invoice }}"
></bitpay-invoice-create>
<bitpay-invoice-frame
invoice="{{ invoice }}"
></bitpay-invoice-frame>
Create invoices in your SPA, requires a non-signing POS bitpay token. Set the testnet attribute to use bitpays testing infrastructure. You can redirect the user to the returned invoice.url
or use the following element to display.
Show the invoice you created with the previous element inside an iframe and listen for status updates.
# Get dependencies
$ npm install
# Demo site
$ npm start