Skip to content

Iframe Integration

Embed the checkout directly on your website:

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

Generate the payload through the authenticated API (POST /v1/wallet/trp/generate) and use the payload field from the response in the iframe URL. The page only renders payments for a registered partner’s wallet.

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/trp/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.