Skip to content

Iframe Integration

Embed the checkout directly on your website:

<iframe
src="https://trp.tonramp.io/{payload}"
width="440"
height="700"
frameborder="0"
style="border: none; border-radius: 12px;"
></iframe>

Use the generator at trp.tonramp.io in the Integration tab to generate the iframe code automatically.

The iframe loads the same checkout page. No additional parameters are needed beyond the payload in the URL.

DeviceWidthHeight
Mobile100%700px
Desktop440px700px
<!DOCTYPE html>
<html>
<head>
<title>Payment - My Store</title>
</head>
<body>
<h1>Complete your payment</h1>
<div style="max-width: 440px; margin: 0 auto;">
<iframe
src="https://trp.tonramp.io/trp010148UQBJ6gU8..."
width="100%"
height="700"
frameborder="0"
style="border: none; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);"
></iframe>
</div>
</body>
</html>

The iframe respects the user’s operating system theme (light/dark) automatically via prefers-color-scheme. The user can also switch manually within the checkout.