1.3.1 • Published 7 months ago

smartypay-client-sdk v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Smarty Pay Client SDK

Simple library for show a custom payment button in any website

Stable version link

<script src="https://checkout.smartypay.io/sdk/smartypay-client-sdk-v1.js"></script>

Demo

Online demo

Donation button

Button img

<div id="smartypay"></div>
<script src="https://checkout.smartypay.io/sdk/smartypay-client-sdk-v1.js"></script>
<script>
new SmartyPayDonation({
  target: 'smartypay',
  donationId: 'YOUR_DONATION_ID',
  lang: 'en',
  theme: 'dark',
})
</script>

Payment Button

Button img

<div id="smartypay"></div>
<script src="https://checkout.smartypay.io/sdk/smartypay-client-sdk-v1.js"></script>
<script>
new SmartyPayButton({
  target: 'smartypay',
  apiKey: 'YOUR_API_KEY',
  amount: '1.99',
  token: 'bUSDT',
  lang: 'en',
  theme: 'dark',
})
</script>

Recharge Payment button

Button img

<div id="smartypay"></div>
<script src="https://checkout.smartypay.io/sdk/smartypay-client-sdk-v1.js"></script>
<script>
new SmartyPayRechargePayment({
  target: 'smartypay',
  address: 'CLIENT_RECHARGE_PAYMENT_ADDRESS',
  lang: 'en',
  theme: 'dark',
})
</script>
  • target - element id
  • address - recharge payment address for client (see docs)
  • lang - en by default (also has es, ru)
  • theme - light (default) or dark

Usage in React App

See React Client

Build steps

Clone repository into your dir

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

Build

npm install
npm run build

Full docs

Checkout our TypeDocs

1.3.1

7 months ago

1.3.0

10 months ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.0

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.16

3 years ago

1.0.9

3 years ago

1.0.11

3 years ago

1.0.10

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.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