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

[BUG] #7043

Closed
Jameslxm opened this issue Jul 19, 2023 · 2 comments · Fixed by #7147
Closed

[BUG] #7043

Jameslxm opened this issue Jul 19, 2023 · 2 comments · Fixed by #7147
Assignees
Labels

Comments

@Jameslxm
Copy link

Summary

The information returned by account 40000000009995 is incorrect. This error should be returned: Your card has insufficient funds. Sorry, the current payment failed. Currently, this error has been returned: Your card was declinedSorry, the current payment failed

Code to reproduce

You can use the officially provided APK. Enter this account 40000000009995 and the problem can be reproduced
The download link is as follows:
https://github.com/stripe/stripe-android/releases/tag/v20.27.2

Android version

Not related to version

Impacted devices

Any device can reproduce

Installation method

api 'com.stripe:stripe-android:20.27.2'

Dependency Versions

kotlin:1.7.10
stripe-android:20.27.2
Android Gradle Plugin:7.2.0
Gradle:7.2.0

Other information

image

This error should be returned: Your card has insufficient funds. Sorry, the current payment failed. Currently, this error has been returned: Your card was declinedSorry, the current payment failed

@Jameslxm Jameslxm added the bug label Jul 19, 2023
@tillh-stripe
Copy link
Collaborator

Hi @Jameslxm 👋 Sorry for the late response. We switched to on-client error messages a while ago to resolve an issue with specific Spanish-speaking locales (that’s where the Your card was declined comes from), but it looks like we can still rely on the server-provided error message for all other languages.

I’ll take a look at this before the end of the week and will aim to have a fix for you in next Monday’s release.

@tillh-stripe
Copy link
Collaborator

Hi @Jameslxm! I just merged a fix, which will be included in today’s release. Let us know if you encounter any other problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants