Fix P2P Debit cards are being displayed twice on the Payments page#12178
Fix P2P Debit cards are being displayed twice on the Payments page#12178
Conversation
MariaHCD
left a comment
There was a problem hiding this comment.
Code looks good but can you also please add tests for the red brick road for payment methods? Example, when you try to set a bank account and/or debit card as your default payment method when offline and entered the wrong password.
In addition, just as a heads up, QA will not be able to add a debit card on staging. So this might need to be tested internally with someone who can add a real US debit card.
|
Updated the PR description |
|
Let me know if C+ review is needed. |
|
Please can the reviewers check the PR review checklist, so I can get this merged ASAP? |
|
@parasharrajat , maybe you can test this and check off the PR reviewer checklist? |
|
Sure, I will try to test it. |
|
I can't test it unless someone share instruction to add a debit card. |
What are you missing? Aren't the instructions on the main post enough? |
|
Not quite, C+ and Qa can't test this because there is no way to add a test debit card on staging currently. We're working on it on this internal issue: https://github.com/Expensify/Expensify/issues/237181#issuecomment-1298509438 In addition, I think the test instructions to add a debit card could be more descriptive, @Justicea83. We normally outline the data to be entered in the form. |
|
iOS / native Simulator.Screen.Recording.-.iPhone.14.-.2022-11-02.at.15.05.15.mp4Android / native Screen.Recording.2022-11-02.at.3.14.00.PM.moviOS / Safari Simulator.Screen.Recording.-.iPhone.14.-.2022-11-02.at.15.03.48.mp4Android / Chrome Screen.Recording.2022-11-02.at.3.17.08.PM.movMacOS / Chrome Screen.Recording.2022-11-02.at.2.37.27.PM.movMacOS / Desktop Screen.Recording.2022-11-02.at.3.23.59.PM.mov |
|
Triggered auto assignment to @amyevans ( |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to production by @Julesssss in version: 1.2.23-9 🚀
|


Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/233319
Tests
First Add a card
Sign In to NewDot
Navigate to Settings > Payments > Add payment method > Debit card
Fill the form with any details, but use 4242 4242 4242 4242 for the card number
Signin to NewDot.
Click on your profile picture >
Payments.If you have a card is a payment method, ensure it's not duplicated as a bank account.
Tests For RBR handling for payment methods from here:
window.Onyx = Onyx;to setup/index.jsOnyx.merge('bankAccountList', {"827591": {pendingAction: 'delete', errors: {1: 'This is an error'}}})2022-10-27_14-23-32.mp4
QA Steps
First Add a card.
Tests
Payments.QA for RBR handling for payment methods:
Payments.Make default payment methodPR Review Checklist
PR Author Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)Screenshots
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android