Widget Pop-up
Crypto on-ramp on your website
1. Get your public key
2. Add the inline script
<form>
<script src="https://cdn.localramp.co/onramp-inline.js"></script>
<button type="button" onclick="payWithLocalRamp()"> Pay </button>
</form><script>
function payWithLocalRamp() {
window.LocalRampSell.initialize({
public_key: "pk_live_*********************",
reference: "your-unique-reference",
from_amount: "10",
from_currency: "USDT",
crypto_chain: "TRX",
country_code: "NG",
to_currency: "NGN",
email: "[email protected]",
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