diff --git a/src/lib/stores/stripe.ts b/src/lib/stores/stripe.ts index 58edfd431..c1d6f60b7 100644 --- a/src/lib/stores/stripe.ts +++ b/src/lib/stores/stripe.ts @@ -61,7 +61,7 @@ export async function submitStripeCard(name: string, organizationId?: string) { } // // Element needs to be submitted before confirming the setup intent - elements.submit(); + await elements.submit(); const baseUrl = 'https://cloud.appwrite.io/console'; const accountUrl = `${baseUrl}/account/payments?clientSecret=${clientSecret}`;