This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This code embeds a Transak iframe in a webpage and provides a "Logout" button that, | |
when clicked, sends a postMessage event to the iframe to request a logout. --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Transak Iframe Logout</title> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect } from "react"; | |
import Stack from "@mui/material/Stack"; | |
import Box from "@mui/material/Box"; | |
import { Transak } from "@transak/transak-sdk"; | |
import config from "../config"; | |
export default function OffRampStreamSDK() { | |
useEffect(() => { | |
const transakConfig = { | |
apiKey: config.apiKeyGlobalStaging, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from "react"; | |
import Stack from "@mui/material/Stack"; | |
import Box from "@mui/material/Box"; | |
import config from "../config"; | |
export default function OffRampStreamIFrame() { | |
const [iframeSrc, setIframeSrc] = useState(""); | |
useEffect(() => { | |
const baseUrl = "https://global-stg.transak.com"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect } from "react"; | |
import Stack from "@mui/material/Stack"; | |
import Box from "@mui/material/Box"; | |
import { Transak } from "@transak/transak-sdk"; | |
import config from "../config"; | |
export default function CustomisingThemeSDK() { | |
useEffect(() => { | |
const transakConfig = { | |
apiKey: config.apiKeyGlobalStaging, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from "react"; | |
import Stack from "@mui/material/Stack"; | |
import Box from "@mui/material/Box"; | |
import config from "../config"; | |
export default function CustomisingThemeIFrame() { | |
const [iframeSrc, setIframeSrc] = useState(""); | |
useEffect(() => { | |
const baseUrl = "https://global-stg.transak.com"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
const fs = require('fs'); | |
const cryptoList = [ | |
"SOL", "DAI", "EGLD", "ZIL", "ONE", "XLM", "SHIB", "VET", "ICP", "TON", | |
"PEPE", "CRO", "ATOM", "APE", "FLOW", "MNT", "XTZ", "MANA", "ALGO", "KSM", | |
"XEM", "NOT", "SEI", "HBAR", "SUSHI", "NEAR", "MKR", "BONK", "APT", "SUI", | |
"XDC", "CELO", "CHZ", "OSMO", "ZEN", "STX", "IOTA", "IMX", "KDA", "WRX", | |
"AR", "FLR", "GMX", "GLMR", "IOTX", "GLM", "KAVA", "ROSE", "ASTR", "INJ", | |
"CKB", "WAXP", "SUPER", "VRA", "ELF", "MASK", "VTHO", "LOOKS", "HIVE", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.transak.webhookjavamaven; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import io.jsonwebtoken.Claims; | |
import io.jsonwebtoken.Jwts; | |
import io.jsonwebtoken.security.Keys; | |
import javax.crypto.SecretKey; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect } from "react"; | |
import { toast } from "react-toastify"; | |
import "react-toastify/dist/ReactToastify.css"; | |
import Stack from "@mui/material/Stack"; | |
import Box from "@mui/material/Box"; | |
import config from "../config"; | |
const logAndToast = (eventName, data, toastType = "info") => { | |
console.log(`${eventName}:`, JSON.stringify(data, null, 2)); | |
toast[toastType](eventName, { position: "bottom-right", autoClose: 2000 }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
import Stack from "@mui/material/Stack"; | |
import Box from "@mui/material/Box"; | |
import Button from "@mui/material/Button"; | |
import Checkbox from "@mui/material/Checkbox"; | |
import FormControlLabel from "@mui/material/FormControlLabel"; | |
import config from "../config"; | |
export default function Redirect() { | |
const [walletRedirection, setWalletRedirection] = useState(false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect } from "react"; | |
import { toast } from "react-toastify"; | |
import "react-toastify/dist/ReactToastify.css"; | |
import Stack from "@mui/material/Stack"; | |
import Box from "@mui/material/Box"; | |
import { Transak } from "@transak/transak-sdk"; | |
import config from "../config"; | |
function logAndToast(eventName, data, toastType = "info") { | |
console.log(`${eventName}:`, data); |
NewerOlder