jonasbark / flutter_stripe_payment

[DISCONTINUED] A flutter plugin with stripe payment plugin integration
MIT License
309 stars 244 forks source link

Wrong management of authenticatePaymentIntent with setStripeAccount on iOS native code #258

Closed Trede98 closed 3 years ago

Trede98 commented 3 years ago

This is my code to manage the authentication of the payment

StripePayment.setStripeAccount(accountId);
var result = await StripePayment.authenticatePaymentIntent(
  clientSecret: clientSecret,
);

On Android native code when setStripeAccount is called the stripe object is instantiated again and everything works fine

Schermata 2021-03-11 alle 17 42 55

On iOS when setStripeAccount is called the variable stripeAccount is only setted

Schermata 2021-03-11 alle 17 46 51

This variable is used inside the method newAPIClient

Schermata 2021-03-11 alle 17 50 05

Inside the authenticatePaymentIntent the method newAPIClient is never called and therefore the stripeAccount value never set