Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Apply dynamic Stripe account ID to confirmPayment method in WebS…
…tripe (#1798) Fixes a bug where updating the Stripe account ID using await Stripe.instance.applySettings(); did not apply to the confirmPayment() method on web platforms. Bug Description: - Using await Stripe.instance.applySettings(); to update an account ID shows the updated account ID when printed but does not apply to the confirmPayment() method. - This issue occurs when attempting to update Stripe.stripeAccountId within the app, such as on the payment page. Steps to Reproduce: 1. Initialize a Stripe instance within main.dart, setting the Stripe publisher key (no account ID set). 2. Have a page within the app that initializes Stripe and adds the Stripe connect ID: ```dart Stripe.stripeAccountId = id; await Stripe.instance.applySettings();
- Loading branch information