File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
widgets-lib/src/components/Transak Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ export class FiatRampService {
5050 ) ) as OnRampConfig ;
5151
5252 const createWidgetUrl = `${ IMMUTABLE_API_BASE_URL [ this . config . environment ] } /checkout/v1/widget-url` ;
53+
5354 let widgetParams : Record < string , any > = {
5455 api_key : onRampConfig [ OnRampProvider . TRANSAK ] . publishableApiKey ,
5556 network : 'immutablezkevm' ,
@@ -60,6 +61,7 @@ export class FiatRampService {
6061 theme_color : 'FFFFFF' , // this only controls the background colour of the Buy button
6162 default_crypto_currency : params . tokenSymbol || 'IMX' ,
6263 hide_menu : ! ( params . showMenu ?? true ) ,
64+ referrer_domain : window . location . origin ,
6365 } ;
6466
6567 if ( params . isPassport && params . email ) {
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ export const useTransakIframe = (props: UseTransakIframeProps) => {
109109 exchange_screen_title : exchangeScreenTitle ,
110110 wallet_address : walletAddress ,
111111 partner_order_id : partnerOrderId ,
112+ referrer_domain : window . location . origin ,
112113 } ;
113114
114115 if ( email ) {
You can’t perform that action at this time.
0 commit comments