1.3.1 • Published 7 months ago
smartypay-client-react v1.3.1
Smarty Pay Client React
React library for show a payment button
Demo
Installation
npm i smartypay-client-react
Donation button
import { SmartyPayDonation } from 'smartypay-client-react';
<SmartyPayDonation
donationId="some"
theme="dark"
lang="en"
/>
- donationId - you can get it here: https://dashboard.smartypay.io/
- lang -
en
by default (also hases
,ru
) - theme -
light
(default) ordark
Payment Button
import { SmartyPayButton } from 'smartypay-client-react';
<SmartyPayButton
amount="1.99"
token="bUSDT"
lang="en"
theme="dark"
apiKey="YOUR_API_KEY"
/>
- amount - amount for invoice (example 0.99)
- token - see valid tokens here: https://docs.smartypay.io/general/supported-tokens
- lang -
en
by default (also hases
,ru
) - theme -
light
(default) ordark
- apiKey - you can get it here: https://dashboard.smartypay.io/
Recharge Payment button
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 hases
,ru
) - theme -
light
(default) ordark
Example React Project
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
1.3.1
7 months ago
1.3.0
10 months ago
1.0.21
2 years ago
1.0.20
2 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.10
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago