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

iOS: Incorrect localized error message for insufficient funds, and additional window during payment flow #2040

Open
dhirajpowar opened this issue Jan 16, 2025 · 0 comments
Assignees
Labels
needs triage Needs triage

Comments

@dhirajpowar
Copy link

Describe the bug
I have written code to handle Stripe exceptions using a combination of FailureCode.failed and the localized error message. I have added a Stripe test card ending with 3178 for testing.

To Reproduce
Steps to reproduce the behavior:

  1. Add a Stripe test card ending with 3178 (insufficient funds).
  2. Implement the code to handle the exception and display the localized error message.
  3. Complete the Stripe payment flow on both Android and iOS.

Expected behavior
On Android, when the user completes the Stripe payment flow, the callback is received immediately, and the localized error message correctly states: Your card has insufficient funds.
On iOS, the user should see the same localized message, Your card has insufficient funds, when the card has insufficient funds.
Actual Behavior:
On Android, the callback is received immediately with the correct error message.
On iOS, after the payment flow completes, a window pops up with the message "Authentication complete," and the user has to manually close the window.
The localized error message on iOS then shows: Your card was declined, instead of the expected message: Your card has insufficient funds.

Smartphone / tablet

  • Device: iPhone 15
  • OS: iOS 15, Android 14
  • Package version: 9.5.0+1
  • Flutter version 3.24.2

Additional context
The behavior on Android is correct and consistent with the expected localized error message for insufficient funds.
The issue seems to be specific to iOS, where the additional window and incorrect error message are displayed..

@dhirajpowar dhirajpowar added the needs triage Needs triage label Jan 16, 2025
@remonh87 remonh87 self-assigned this Jan 18, 2025
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