The examples below use the sandbox host. Switch to
https://app.rampnow.io and your production key when you go live.
iFrame mode
Embed the widget directly on your page.1
Create a container
Add a container element in your HTML:
2
Construct the widget URL
- Onramp (buy)
- Offramp (sell)
3
Add the iframe
Put an iframe pointing at that URL inside your container:
Redirect mode
Send the user to Rampnow’s hosted page.1
Construct the widget URL
Build the URL exactly as for the iframe:
2
Redirect the user
bc1qYourWalletAddress.
Track the order
Track orders with webhooks, and passexternalOrderId to match each order to your own records. If you also want browser events in your page, such as ORDER_COMPLETED, use the SDK instead.
Next steps
Webhooks
Set up server-side order notifications
Sandbox Testing
Run every order outcome before going live