Flash USDT Payment Widget Integration

Quick Start

Integrate the Flash USDT Payment Widget into your website with just a few lines of code. The widget allows your users to make cryptocurrency payments easily.

1. Add the Widget Script

Add the following script to your HTML before the closing </body> tag:

<script src="https://checkout.flashusdtsender.xyz/widget.js"></script>

2. Add a Payment Button

Add a payment button anywhere on your website:

<button 
  class="flash-usdt-payment-button" 
  data-plan="premium" 
  data-currency="ETH" 
  data-amount="500" 
  data-order-id="ORDER123" 
  data-order-currency="USD"
  data-theme="dark"
>
  Pay with Crypto
</button>

3. Or Open Programmatically

You can also open the payment widget programmatically:

<script>
  document.getElementById('custom-payment-button').addEventListener('click', function() {
    window.FlashUSDT.openPayment({
      plan: 'premium',
      currency: 'ETH',
      amount: 500,
      orderId: 'ORDER123',
      orderCurrency: 'USD',
      theme: 'dark'
    });
  });
</script>

Donation Widget

To add a donation widget to your website, use the following code:

<button 
  class="flash-usdt-payment-button" 
  data-type="donation" 
  data-order-id="DONATION123" 
  data-order-currency="USD"
  data-theme="dark"
>
  Donate with Crypto
</button>

API Integration

For more advanced integrations, you can use our API directly:

// Example API request
fetch('https://checkout.flashusdtsender.xyz/api/payment', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    email: 'customer@example.com',
    plan: 'premium',
    amount: 500,
    currency: 'ETH',
    orderId: 'ORDER123'
  })
})
.then(response => response.json())
.then(data => {
  console.log('Payment initiated:', data);
  // Handle the payment address and other details
})
.catch(error => {
  console.error('Error:', error);
});

Configuration Options

OptionDescriptionDefault
data-planPlan type (basic, premium, enterprise)premium
data-currencyCryptocurrency (ETH, BTC, LTC, SOL, DOGE, TRX)ETH
data-amountCustom amount in USD (optional)Plan default
data-order-idYour order ID for tracking (optional)-
data-order-currencyCurrency for display purposesUSD
data-themeWidget theme (light or dark)dark
data-typeWidget type (payment or donation)payment