-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[P2P Activation] [CRITICAL] Web - "Pay with Expensify" button is prompting the user to choose bank account or debit card, when they already have an existing bank account linked to their account. #29714
Comments
Triggered auto assignment to @JmillsExpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01f0f7b78b540bf02c |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
To fix the issue where the "Pay with Expensify" button is prompting the user to choose between a bank account or a debit card, even when they already have an existing bank account linked to their account, you should check if the user has an existing bank account and then add logic to check whether the user already has a linked bank account. If they do, you should automatically select the bank account option instead of prompting them to choose between a bank account and a debit card. I would update the AddPaymentMethodMenu component and check whether the user has an existing bank account. If they do, automatically select the bank account option and hide the debit card option. You can do this by modifying the menuItems prop based on the user's existing bank account status. |
📣 @dylanmwilliams! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@dylanmwilliams please follow our proposal template here https://github.com/Expensify/App/blob/main/contributingGuides/PROPOSAL_TEMPLATE.md. Just in case you haven't read it, please read our contributing guidelines here https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md |
btw @kevinksullivan this issue is not ready for contributors, isn't it? |
The Help Wanted label was actually removed so I guess not. In any case, I have been unable to reproduce the issue on the latest main branch. |
I tested on Screen.Recording.2023-10-17.at.4.24.29.PM.mov |
We use PaymentUtils.hasExpensifyPaymentMethod to check if there's already a valid bank account. As far as I can see, the |
Tested on desktop: Screen.Recording.2023-10-17.at.4.42.17.PM.movAnd android as well: Screen.Recording.2023-10-17.at.4.43.14.PM.movSeems to work as expected. Going to try on staging. |
Same on staging, I was redirected to the KYC flow as expected (it's the last step because I started the KYC flow before): Screen.Recording.2023-10-17.at.4.51.32.PM.mov |
Okay, I believe the
|
I think we can get the fix for this included in #29320 (comment) |
@MariaHCD does it mean we can close this issue? |
This one should be fixed by these FE and BE PRs:
I think we are good to close for. We can reopen if this is still an issue. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.84.9
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @kevinksullivan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697481375175609
Action Performed:
Expected Result:
User A should go straight to Additional details step, rather than prompting the user to choose a bank account or debit card if they already have a connected payment method
Actual Result:
User A is prompted to choose between bank account and debit card, even though they have a bank account added. Then, if they choose bank account, they're asked to add a new one.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Recording.5023.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: