Skip to main content

How to embed the ONRAMP widget to your site

Overview​

You can embed the ONRAMP widget into the merchant website with an iframe.

iframe integration​

Add clipboard-read and clipboard-write to the allow attribute so widget copy buttons can copy payment details.

<iframe
src="https://pay.calypso.money/onramp?account=0x0000000000000000000000000000000000000000&widgetKey=123e4567-e89b-12d3-a456-426614174002&idempotencyKey=123e4567-e89b-12d3-a456-426614174000&color=256eff&logo=true&radius=6&theme=light"
title="Calypso ONRAMP widget"
width="100%"
height="720"
style="border: 0;"
allow="clipboard-read; clipboard-write"
></iframe>

Required iframe permissions​

PermissionWhy it is needed
clipboard-readLets the widget read clipboard data when browser behavior requires it.
clipboard-writeLets copy buttons copy payment address, amount, and other payment details.

Without these permissions, copy buttons may not work inside the iframe.

DocumentLink
Integrate ONRAMP widgetHow to integrate the ONRAMP widget
Customize ONRAMP widgetHow to customize the ONRAMP widget