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.
Add the following script to your HTML before the closing </body> tag:
<script src="https://checkout.flashusdtsender.xyz/widget.js"></script>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>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>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>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);
});| Option | Description | Default |
|---|---|---|
| data-plan | Plan type (basic, premium, enterprise) | premium |
| data-currency | Cryptocurrency (ETH, BTC, LTC, SOL, DOGE, TRX) | ETH |
| data-amount | Custom amount in USD (optional) | Plan default |
| data-order-id | Your order ID for tracking (optional) | - |
| data-order-currency | Currency for display purposes | USD |
| data-theme | Widget theme (light or dark) | dark |
| data-type | Widget type (payment or donation) | payment |