React library for show a payment button
npm i smartypay-client-react
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/
cd your_dir
git clone https://github.com/smarty-pay/smartypay-client-react
npm install
npm run build