bitpay-elements | Vaadin

Create and show bitpay invoices

[ This description is mirrored from README.md at github.com/morbidick/bitpay-elements on 2019-05-10 ]

Polymer 2 Bitpay Elements

Published on webcomponents.org Build Status

Create and show bitpay invoices.

Components

<bitpay-invoice-create
  auto
  testnet
  amount="12.34"
  token="B75pQ5ZyM2CUCJbnH6zajY5pndzpgVxG1YpVd6a3Ljqh"
  invoice="{{ invoice }}"
></bitpay-invoice-create>
<bitpay-invoice-frame
  invoice="{{ invoice }}"
></bitpay-invoice-frame>

<bitpay-invoice-create>

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.

<bitpay-invoice-frame>

Show the invoice you created with the previous element inside an iframe and listen for status updates.

Development

# Get dependencies
$ npm install

# Demo site
$ npm start

Install

Link to this version
ImportedReleased 05 February 2018MIT License
Framework Support
Polymer 2.0+
Browser Independent
Install with
bower install --save morbidick/bitpay-elements"#2.0.5"
Run the above Bower command in your project folder. If you have any issues installing, please contact the author.
Release notes - Version 2.0.5

Dependencies

  • polymer#Polymer/polymer#^2.0.0