Skip to content

smarty-pay/smartypay-client-react

Repository files navigation

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

About

React library for show a payment button

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published