0.3.1 • Published 3 years ago

react-bitcoin-payment-button v0.3.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

react-bitcoin-payment-button

Receive Bitcoin Payments on your React website through the Blockonomics Payment Button.

Installation

npm i react-bitcoin-payment-button

Demo

Demonstration

Usage

To use the Blockonomics Payment Button you first need to generate a UID. To generate an UID follow this guide.

Example:

import React from 'react';
import { BitcoinPaymentButton } from 'react-bitcoin-payment-button';

export default function App() {
  return (
    <div className="App">
        <BitcoinPaymentButton uid="Enter Your Own UID generated by Blockonomics Here"/>
    </div>
  );
}

Customization

Demonstration

The customized example above was accomplished by passing the following props to BitcoinPaymentButton:

import React from 'react';
import { BitcoinPaymentButton } from 'react-bitcoin-payment-button';

export default function App() {
  return (
    <div className="App">
        <BitcoinPaymentButton 
        uid="Enter Your Own UID generated by Blockonomics Here"
        imageURL="https://cdn.iconscout.com/icon/free/png-512/bitcoin-390-920575.png"
        font="Roboto, Helvetica, Arial, sans-serif"
        backgroundColor="#131a22"
        titleColor="#fff"
        descriptionColor="#fff"
        buttonColor="#428bca"
        hoverColor="#254563" 
        hideBlockonomics="true"
        inputHeights="44px"
        progressbarColor="#428bca" 
        BTCAmountColor="#428bca"        
        />
    </div>
  );
}

Properties

PropertiesOriginal value
uidTo generate an UID follow this guide
imageURL"https://www.blockonomics.co/img/pay_with_bitcoin_medium.png"
font"Helvetica Neue", Helvetica, Arial, sans-serif
backgroundColor"#f4f4f4"
titleColor"#333333"
descriptionColor"#333333"
buttonColor"#f0ad4e"
hoverColor"#ec971f"
hideBlockonomicsfalse
inputHeights"34px"
progressbarColor"#09CA83"
BTCAmountColor"#059e66"
0.3.1

3 years ago

0.3.0

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago