Skip to content

Commit a66aa3f

Browse files
Merge pull request #1752 from appwrite/fix-stripe-element-submit
Fix: await element.submit as recommended in stripe docs
2 parents cee80c5 + 70a3d60 commit a66aa3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/stores/stripe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export async function submitStripeCard(name: string, organizationId?: string) {
6161
}
6262

6363
// // Element needs to be submitted before confirming the setup intent
64-
elements.submit();
64+
await elements.submit();
6565

6666
const baseUrl = 'https://cloud.appwrite.io/console';
6767
const accountUrl = `${baseUrl}/account/payments?clientSecret=${clientSecret}`;

0 commit comments

Comments
 (0)