Created
          July 17, 2024 23:22 
        
      - 
      
- 
        Save 0xGoerliMainnet/9e7a370de6a64770bd2b0fffdf27f303 to your computer and use it in GitHub Desktop. 
    Transak Sandbox
  
        
  
    
      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 { Transak } from "@transak/transak-sdk"; | |
| const SDKRedirect = () => { | |
| const transakConfig = { | |
| apiKey: "7eb2762e-099b-4f4b-a878-1eec93c78341", | |
| environment: Transak.ENVIRONMENTS.STAGING, | |
| redirectURL: "https://transak.com", | |
| }; | |
| useEffect(() => { | |
| const transak = new Transak(transakConfig); | |
| transak.init(); | |
| return () => { | |
| transak.cleanup(); | |
| }; | |
| }, []); | |
| return ( | |
| <div className="transakContainer"> | |
| <div id="transakMount" /> | |
| </div> | |
| ); | |
| }; | |
| export default SDKRedirect; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment