Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Successful payment on iOS brings error #1342

Closed
michalowskim opened this issue Jul 27, 2023 · 1 comment
Closed

Successful payment on iOS brings error #1342

michalowskim opened this issue Jul 27, 2023 · 1 comment
Labels
needs triage Needs triage

Comments

@michalowskim
Copy link

Describe the bug
After a successful payment on iOS using presentPaymentSheet method, error
type 'List<dynamic>' is not a subtype of type 'Map<String, dynamic>?' #0 MethodChannelStripe.presentPaymentSheet (package:stripe_platform_interface/src/method_channel_stripe.dart:265:37) <asynchronous suspension> #1 Stripe.presentPaymentSheet (package:flutter_stripe/src/stripe.dart:517:12) <asynchronous suspension>
occurs

To Reproduce
Steps to reproduce the behavior:
Just make an successful payment on iOS using presentPaymentSheet method.

Expected behavior
No error occurs when payment is successful

Additional context
iOS sdk on successful payment return empty list as a result. Someone just removed the check if the result coming from presentPaymentSheet is a list despite the fact that there was a comment saying that iOS returns empty list on success.

@michalowskim michalowskim added the needs triage Needs triage label Jul 27, 2023
@jonasbark
Copy link
Member

Duplicate of #1321

@jonasbark jonasbark marked this as a duplicate of #1321 Jul 27, 2023
@jonasbark jonasbark closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs triage
Projects
None yet
Development

No branches or pull requests

2 participants