Widget Pop-up
Crypto on-ramp on your website
1. Get your public key
2. Add the pay-ins/collections script
<form>
<script src="https://cdn.localramp.co/onramp-inline.js"></script>
<button type="button" onclick="payWithLocalRamp()"> Pay </button>
</form><script>
function payWithLocalRamp() {
window.LocalRampBuy.initialize({
public_key: "pk_live_*********************",
reference: "your-unique-reference",
sender_amount: "22000.00",
sender_currency: "NGN",
country_code: "NG",
receiver_currency: "USDT_TRX",
email: "[email protected]",
destination_address:"THS6HKWEFrwH9Gpzxkvm43L9D8TaLSXZ8z"
widget_color: "#DA70D6",
onClose: function (ref) {
// Handle when the modal is closed
},
});
}
</script>Field
Data Type
Description
3. Verifying the transaction status
4. Receive confirmation via webhook
Last updated