Redirection

Simple redirection based integration
View as Markdown

The Transak Web Redirection integration allows you to redirect users to Transak’s interface with minimal implementation effort.

1

Create Widget URL (using Backend Only)

Call the Create Widget URL to generate a Widget URL by securely passing the widget parameters.

Open Transak in a new tab and pass redirectURL to redirect users back to your site after the order is placed.

The response returns a widgetUrl.

A widgetUrl is valid for 5 minutes and can only be used once. A new widgetUrl must be generated for every user flow.

Example Request:

$curl --request POST \
> --url https://api-gateway-stg.transak.com/api/v2/auth/session \
> --header 'access-token: YOUR_ACCESS_TOKEN' \
> --header 'content-type: application/json' \
> --data '{
> "widgetParams": {
> "apiKey": "YOUR_API_KEY",
> "referrerDomain": "yourdomain.com",
> "redirectURL": "https://partner-app-url.com"
> }
>}'