Implement payments for app deployments #17

Merged
nabarun merged 27 commits from iv-integrate-payments into main 2024-10-28 09:46:19 +00:00
Showing only changes of commit c62ea68669 - Show all commits

View File

@ -315,18 +315,22 @@ const Configure = () => {
onDismiss: dismiss, onDismiss: dismiss,
}); });
setIsPaymentDone(true);
return result.signature; return result.signature;
} catch (error: any) { } catch (error: any) {
console.error('Error sending tokens', error); console.error('Error sending tokens', error);
toast({ toast({
id: 'error-sending-tokens', id: 'error-sending-tokens',
title: 'Error sending tokens', title: 'Error sending tokens',
variant: 'error', variant: 'error',
onDismiss: dismiss, onDismiss: dismiss,
}); });
setIsPaymentDone(false);
} finally { } finally {
setIsPaymentLoading(false); setIsPaymentLoading(false);
setIsPaymentDone(true);
} }
}, },
[session, signClient, toast], [session, signClient, toast],
@ -490,7 +494,7 @@ const Configure = () => {
> >
{!isPaymentDone {!isPaymentDone
? isPaymentLoading ? isPaymentLoading
? 'Paying' ? 'Transaction Requested'
: 'Pay and Deploy' : 'Pay and Deploy'
: isLoading : isLoading
? 'Deploying repo' ? 'Deploying repo'