Mandatory Migration to API-Based Widget URL
Mandatory Migration to API-Based Widget URL
Mandatory Migration to API-Based Widget URL
All partners are required to migrate their integration to use the Create Widget URL API, which generates a secure widgetUrl to load the Transak widget.
This approach ensures secure, validated, and consistent integrations across all integration options.
Passing query parameters directly in the widget URL is deprecated and no longer supported.
Call the Refresh Access Token endpoint from your backend to obtain a Partner Access Token.
Store this token securely and reuse it until it expires. When you call the endpoint again, the previously issued token is automatically invalidated.
Call the Create Widget URL API from your backend to generate a secure widget url using
On success, the response will include widgetUrl. This URL must be used to load the Transak Widget.
The old method of embedding query parameters directly in the widget URL is no longer supported.
The sessionId is returned from the Create Widget URL API.
The Transak widget relies on the browser’s Referer header as a runtime signal to verify the source domain. Make sure your integration sends this header correctly.
Do not use rel=noreferrer. It prevents the Referer header from being sent and breaks runtime domain validation.
Do not use referrerpolicy=no-referrer. It strips the Referer header and prevents domain validation.
Nesting the Transak iframe inside a third-party iframe is not permitted unless the parent site has received explicit approval from Transak.
Use referrerpolicy="strict-origin-when-cross-origin" (recommended) or "origin"