Integrate wallet IFrame for payments #42

Merged
nabarun merged 27 commits from iv-integrate-frame into main 2024-11-13 13:32:28 +00:00
Showing only changes of commit 67e5baf8ff - Show all commits

View File

@ -223,6 +223,7 @@ const Configure = () => {
variant: 'error', variant: 'error',
onDismiss: dismiss, onDismiss: dismiss,
}); });
setIsFrameVisible(false);
throw new Error('Transaction rejected'); throw new Error('Transaction rejected');
} }
@ -240,6 +241,7 @@ const Configure = () => {
variant: 'success', variant: 'success',
onDismiss: dismiss, onDismiss: dismiss,
}); });
setIsPaymentDone(true);
} else { } else {
toast({ toast({
id: 'invalid-tx-hash', id: 'invalid-tx-hash',
@ -603,7 +605,8 @@ const Configure = () => {
: 'Pay and Deploy' : 'Pay and Deploy'
: isLoading : isLoading
? 'Deploying' ? 'Deploying'
: 'Deploy'} : 'Deploy'
}
</Button> </Button>
</div> </div>
)} )}