💵
Payment button
This button is used for create a payment invoice on your website.
<form action="https://api.smartypay.io/checkout" method="POST" target="_blank">
<input type="hidden" name="api-key" value="YOUR_API_KEY">
<input type="hidden" name="token" value="bUSDT">
<input type="hidden" name="amount" value="1.5">
<input type="hidden" name="lang" value="en">
<input type="image" src="https://checkout.smartypay.io/checkout-button-light.svg" border="0" name="submit" alt="SmartyPay">
</form>
Available parameters:
- token (string) - payment token code from supported tokens
- amount (decimal string) - decimal amount to pay
- lang (string) - language (supported values are
"en"
,"es"
,"ru"
)
<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>
Available parameters:
- target - element id
- amount - amount for invoice (example 0.99)
- lang -
en
by default (also hases
,ru
) - theme -
light
(default) ordark
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)
- lang -
en
by default (also hases
,ru
) - theme -
light
(default) ordark
Last modified 1yr ago