Integrate wallet IFrame for payments #42
@ -302,7 +302,7 @@ const Configure = () => {
|
|||||||
|
|
||||||
toast({
|
toast({
|
||||||
id: 'sending-payment-request',
|
id: 'sending-payment-request',
|
||||||
title: 'Check your wallet and approve payment request',
|
title: 'Check and approve payment request',
|
||||||
variant: 'loading',
|
variant: 'loading',
|
||||||
onDismiss: dismiss,
|
onDismiss: dismiss,
|
||||||
});
|
});
|
||||||
|
@ -95,10 +95,15 @@ const IFrame = ({
|
|||||||
top: '50%',
|
top: '50%',
|
||||||
left: '50%',
|
left: '50%',
|
||||||
transform: 'translate(-50%, -50%)',
|
transform: 'translate(-50%, -50%)',
|
||||||
width: '800px',
|
width: '90%',
|
||||||
|
maxWidth: '1200px',
|
||||||
|
height: '600px',
|
||||||
|
maxHeight: '80vh',
|
||||||
|
overflow: 'auto',
|
||||||
boxShadow: 24,
|
boxShadow: 24,
|
||||||
borderRadius: '8px',
|
borderRadius: '8px',
|
||||||
outline: 'none',
|
outline: 'none',
|
||||||
|
bgcolor: 'background.paper',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<iframe
|
<iframe
|
||||||
@ -106,20 +111,12 @@ const IFrame = ({
|
|||||||
id="walletIframe"
|
id="walletIframe"
|
||||||
src="http://localhost:3001/WalletEmbed"
|
src="http://localhost:3001/WalletEmbed"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="300"
|
height="100%"
|
||||||
sandbox="allow-scripts allow-same-origin"
|
sandbox="allow-scripts allow-same-origin"
|
||||||
className="border rounded-md shadow-sm"
|
className="border rounded-md shadow-sm"
|
||||||
></iframe>
|
></iframe>
|
||||||
</Box>
|
</Box>
|
||||||
</Modal>
|
</Modal>
|
||||||
{/* <iframe
|
|
||||||
onLoad={getDataFromWallet}
|
|
||||||
id="walletIframe"
|
|
||||||
src="http://localhost:3001"
|
|
||||||
width="0"
|
|
||||||
height="0"
|
|
||||||
sandbox="allow-scripts allow-same-origin"
|
|
||||||
></iframe> */}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user