mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix: await element.submit as recommended in stripe docs
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user