Skip to main content
There are two ways to open the widget URL. Both run the same flow and take the same parameters. 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

3

Add the iframe

Put an iframe pointing at that URL inside your container:
Keep allow="payment" on the iframe. Browser payment methods inside the widget need it.

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

In this example, the user buys 250 EUR worth of BTC on the Bitcoin chain, with the crypto sent to bc1qYourWalletAddress.

Track the order

Track orders with webhooks, and pass externalOrderId 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