Widget Pop-up
Crypto on-ramp on your website
Last updated
Crypto on-ramp on your website
Last updated
The widget product allows you to on-ramp your users without them leaving your website/app by just initiating a pop-up.
Get your from your dashboard
Avoid exposing your secret key on the client side (or front end) of your application. Requests to LocalRamp's API should be initiated from your server.
Please find below the request body for the endpoint.
reference
String
Required - Your unique transaction reference. Must be unique for every transaction. e.g "Abc123"
String
Required e.g "customer@example.com"
sender_currency
String
Required - The currency your user would be paying in. e.g "NGN"
country_code
String
Required - The country_code of the user paying in e.g "NG", "KE", "GH", "ZM"
usdt_amount
String
Required - usdt amount you want to receive e.g "200.00".
onClose
String
Optional - Gets called whenever the user closes the modal. This could be as a result of the transaction being completed or abandoned.
Once the modal is closed, the onClose function is called with the transaction reference
Before passing inusdt_amount
, you'll need to know the maximum and minimum values allowed for a sender_currency
. See
To get the list of supported currencies and country codes see the
This is the same reference used in initializing the widget which can now be used to verify the transaction. See
In some cases, the payout might take a few minutes to arrive. If you do not want to keep querying the transaction status, you can always get informed through webhooks when the transaction is complete. See .