💵Payment button

This button is used for create a payment invoice on your website.

Simple button

Online demo

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

  • api-key (string) - your merchant api key from dashboard.smartypay.io

  • token (string) - payment token code from supported tokens

  • amount (decimal string) - decimal amount to pay

  • lang (string) - language (supported values are "en", "es", "ru")

Animated button

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

Sources

React component

Online demo

Usage example

import {SmartyPayButton} from 'smartypay-client-react';

<SmartyPayButton
  amount="1.99" 
  token="bUSDT"
  lang="en"
  theme="dark"
  apiKey="YOUR_API_KEY"
/>

Sources

Last updated