Experience both integration modes in sandbox. No sign-up required.
Redirect customers to our hosted checkout page
// Create a checkout session (server-side)
const res = await fetch('https://api.ironixpay.com/v1/checkout/sessions', {
method: 'POST',
headers: {
'Authorization': 'Bearer sk_live_...',
'Content-Type': 'application/json'
},
body: JSON.stringify({
pricing_amount: '5',
pricing_currency: 'USDT',
currency: 'USDT',
network: 'TRON',
success_url: 'https://yoursite.com/success',
cancel_url: 'https://yoursite.com/cancel'
})
})
const session = await res.json()
// Redirect to checkout
window.location = session.urlEmbed the payment UI directly in your page
import { IronixPay } from '@ironix-pay/sdk'
const ip = new IronixPay({ environment: 'sandbox' })
const el = ip.createPaymentElement({
sessionId: 'cs_...',
theme: 'light',
locale: 'en'
})
el.mount('#checkout')
el.on('payment_success', (result) => {
console.log('Paid!', result.transactionHash)
})Integrate in 5 minutes and start accepting payments