- Updating price conversion API endpoint to be consistent with other bitcoin.com prices
- Adds support for wallet api package for multi wallet support (https://developer.bitcoin.com/wallet-api/)
- Success function calls when invoice paid from non-badger wallet
- Added invoice timer for BIP 70 invoices
- Added status animations for BIP 70 invoices (paid, expired), checked via websocket (support for pay.bitcoin.com BIP70 invoices only)
- If
paymentRequestUrl
is passed toBadgerButton
orBadgerBadge
, countdown timer will display automatically
- Added support for BIP 70 invoices
- new prop
paymentRequestUrl
- The URL of a generated BIP70 invoice, e.g.https://pay.bitcoin.com/i/85WzjgbFrDL5F6LX5DHqkf
- New prop passed to wrapped components
BadgerButton
andBadgerBadge
can acceptpaymentRequestUrl
- If
paymentRequestUrl
is set,showQR
will render QR code for the invoice, andshowAmount
will show that the button references an invoice - There is not an obvious default fail mode for malformed or expired
paymentRequestUrl
entries; this should be handled with thefailFn
prop depending on the developer's use case
- Updating lots of development packages
- Upgrading storybook to latest version
- Math fix when calculating numbers
- Updating to use new green colors
- Fixing rendering issue in Safari
SLP support added 🎉
- Added SLP support to BadgerBase and all components which use this HOC
- Amounts of coins/tokens show as many decimals as needed rather than the most possible
- new props
tokenId
- ID of SLP token whencoinType
is set toSLP
stepControlled
- Step of payment passed into component. Useful for when the payment is tracked and validated from a backend.
- changed props
ticker
=>coinType
- Renamed as many coins/tokens can share a ticker.
coinType
denotes the coin or token protocol.BCH
,SLP
supported currently, with others potentially in the future.
- Renamed as many coins/tokens can share a ticker.
showQR
- Will only show a QR code if the transaction and options can be encoded in BIP44 URI's
- New props passed to wrapped components
coinDecimals
- Number of decimals the coin or token support. 8 for BCH, variable for SLPcoinSymbol
- Symbol assigned to the coin or tokencoinName
- Name assigned to the coin or token
New component PriceDisplay contains
all the logic to display amounts in fiat, BCH, and SLP tokens.
Used in both BadgerButton and BadgerBadge to display the price information. Useful for custom Badger integrations, letting the developers focus on building the app, not formatting prices.
- Fixing URI/QR Code Satoshi calculation
Major changes to internal workings of the library. Can now control amounts independently from Satoshis, should be the base work required to easily add SLP tokens in the near future.
- Enabling crypto pricing. Can enter an absolute amount of BCH, not just fiat conversions
- use props
ticker
andamount
to price in BCH.- example:
<BadgerButton ticker='BCH' amount={0.00000550} to=...
- example:
- use props
- New props
watchAddress
- Confirm if payment comes from any source or anyoneisRepeatable
- Rest the button tofresh
state after a brief periodrepeatTimeout
- Number of milliseconds to reset button tofresh
after a repeatable paymentticker
- Crypto to price in, currently only supports BCHamount
- Amount of given ticker for payment
- Rename prop
border
=>showBorder
- Enable BCH only payments
- Adding QR Code and Payment URI
- prop
showQR
defaulttrue
- Uses
ButtonQR
instead ofButton
- prop
- watch payments to address as well as QR
- Handles BCH only payments
- New props
showBorder
showQR
- Allow people to pay who don't have Badger installed. Now Badger handles all the payment methods with ease.
- New component to show a QR code as a URI link, along with button
- OP_RETURN support added
- Enforce minimum width on Button so there's always enough room for the various State text.
- library targets
commonjs
again, static rendering should be working. - Removing one external dependency
- peerDepencies
react
andreact-dom
set to ^16.3.0
- Changing library target to UMD
- Including basic babel runtime in library build
- BadgerBase Higher Order Component (HOC) to deal with the core Badger interactions
- Use this HOC to build and style your own Badger intergrations
- Automatically convert a price + currency into satoshi amount, updating every minute
- Multi-currency support
- All currencies from here https://index.bitcoin.com/
- AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BRL BSD BTN BWP BYN BZD CAD CDF CHF CLF CLP CNH CNY COP CRC CUC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GGP GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS IMP INR IQD IRR ISK JEP JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRO MUR MVR MWK MXN MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD SSP STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD UYU UZS VEF VND VUV WST XAF XAG XAU XCD XDR XOF XPD XPF XPT YER ZAR ZMW ZWL
- Base handles all logic to build a badger button
- Simple button to drop into your React application
- Change text above button
- Toggle showing the satoshi amount
- Toggle Border around button
- Payment component with room for additional text and more verbose currency /payment messaging.
- The recommended Badger component to use currently
- Change all text
- Optionally show Satoshi amount
- Optional show link back to badger.bitcoin.com
- Core button component used in our badger buttons
- Prompts users to download or login to badger if required.
- Indicates the process of the badger payment as it goes along, fresh, pending, complete
- Initial beta releases and early development work. Features changing quickly, not recommended for use