Skip to content

Latest commit

 

History

History
80 lines (64 loc) · 1.89 KB

README.md

File metadata and controls

80 lines (64 loc) · 1.89 KB

Smarty Pay Client React

React library for show a payment button

Demo

Online demo

Installation

npm i smartypay-client-react

Donation button

Button img

import { SmartyPayDonation } from 'smartypay-client-react';

<SmartyPayDonation
  donationId="some"
  theme="dark"
  lang="en"
/>

Payment Button

Button img

import { SmartyPayButton } from 'smartypay-client-react';

<SmartyPayButton
  amount="1.99" 
  token="bUSDT"
  lang="en"
  theme="dark"
  apiKey="YOUR_API_KEY"
/>

Recharge Payment button

Button img

import { SmartyPayRechargePayment } from 'smartypay-client-react';

<SmartyPayRechargePayment
  address="CLIENT_RECHARGE_PAYMENT_ADDRESS"
  theme="dark"
  lang="en"
/>
  • address - recharge payment address for client (see docs)
  • lang - en by default (also has es, ru)
  • theme - light (default) or dark

Example React Project

See files

Build steps

Clone repository into your dir

cd your_dir
git clone https://github.com/smarty-pay/smartypay-client-react

Build

npm install
npm run build