Documentation
Search…
Paychant Inline
Paychant inline makes it easy for online merchants to accept cryptocurrency payments while offering simple, secure, and convenient crypto payment flows for their customers.

How Paychant Inline Works

Here is a simple line of code that quickly enables you to start accepting crypto payments
Inline
Inline callback response
<script src="https://inline.paychant.com/v1"></script>
<button type="button" onclick="makePaymentWithPaychant()">Buy Ticket</button>
<script>
function makePaymentWithPaychant() {
var window = PaychantWindow.setup({
env: 'live', // [live, sandbox]
title: 'Nupe Day Celebration',
amount: 15000,
currency: 'NGN', // [NGN, USD, GBP, EUR, AUD, CAD, JPY, CNY]
icon_url: 'https://yourdomain.com/img/business-logo.ico' // supports [.png, .jpg, .gif, .tif, .svg, .ico, .jpeg, .tiff]
api_token: 'ref24adb157244298bc8c2ec717899188',
payer_info: '[email protected]',
description: 'Buy your ticket to this event',
exclude_payment_currencies: ['USDT', 'ETH'],
callback: function(res) {
console.log(res);
},
onClose: function () {
console.log('window closed!');
}
});
window.open();
}
</script>
{
ref: "8b27776d-d839-4ce5-a0bd-30bacd9730ec"
status: "paid",
address: "0xe00abbf21176b92e4edd9955a8b53287107d9b3f",
order_id: "NqpAvDnV",
currency: "BTC"
}
Copy link