Skip to main content
Add stablecoin buying and selling to your website. Customers complete the payment in an Onstacks window on your page, and you see their transactions in your dashboard. Start by creating a widget in Sandbox and adding your website.
1

Create the widget

In the dashboard, switch the environment to Sandbox, then go to Settings → Ramps → Website widget and fill in:Live has its own widget, with its own ID and settings. You create it the same way once Live access is approved. See Test and go live.
2

Add the script and a button

Paste this into the page you registered, replacing your-widget-id:
HTML
What you should see. Clicking the button opens a window over your page with your display name at the top. The customer chooses the amount and currency, signs in with a code sent to their email, completes identity verification the first time, then either sends stablecoins to the address shown (sell) or pays by bank transfer (buy). When they finish, the status line under the button updates.Everything in the first argument except widgetId is optional:Callbacks, inline embedding and error handling: Script reference.
3

See the payment in your dashboard

Open Ramps in the dashboard and set Source to Widget payments. The payment appears with its status; open it for the amounts, provider and timestamps.The onCompleted callback tells your page what the widget showed the customer. It isn’t proof of payment: before you hand over anything of value, confirm the payment in the dashboard or through a webhook. See Track payments.

If it doesn’t work

Next

Configure your widget

Branding, payment options and websites.

Track payments

Statuses, the dashboard and optional webhooks.

Test and go live

What to test in Sandbox and what Live needs.