smartypay-client-react

React library for show a custom payment button

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
smartypay-client-react
401.0.192 months ago5 months agoMinified + gzip package size for smartypay-client-react in KB

Readme

SMARTy Pay Client React
React library for show a payment button

Demo

Online demo

Installation

```shell npm i smartypay-client-react ```

Donation button

Button img ```jsx import {SmartyPayDonation} from 'smartypay-client-react'; ```
  • donationId - you can get it here: https://dashboard.smartypay.io/
  • lang - en by default (also has es, ru)
  • theme - light (default) or dark

Payment Button

Button img ```jsx import {SmartyPayButton} from 'smartypay-client-react'; ```
  • amount - amount for invoice (example 0.99)
  • token - see valid tokens here: https://docs.smartypay.io/general/supported-tokens
  • lang - en by default (also has es, ru)
  • theme - light (default) or dark
  • apiKey - you can get it here: https://dashboard.smartypay.io/

Push Payment button

Button img ```jsx import {SmartyPayPushPayment} from 'smartypay-client-react'; ```
  • address - push-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

```shell cd yourdir git clone https://github.com/smarty-pay/smartypay-client-react ```

Build

```shell npm install npm run build ```