Only show P2PDebitCards in payment method list#10226
Conversation
MariaHCD
left a comment
There was a problem hiding this comment.
Make sense not to show any old billing cards since you can't really make them your default payment method and it doesn't look like we support deleting them via NewDot either.
Co-authored-by: Maria D'Costa <maria@expensify.com>
techievivek
left a comment
There was a problem hiding this comment.
Good catch, this was discussed here.
|
✋ 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 staging by @ctkochan22 in version: 1.1.88-0 🚀
|
|
Hey y'all, it seems there's no way for Applause to QA this. They can't add debit cards on staging/production due to KYC wall. Can somebody please run internal QA for this? |
|
QA'd and working as expected, the tester card is not a debit card and is an old billing card |


@Expensify/pullerbear
cc @MariaHCD
Details
When displaying payment methods, only show actual debit cards
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/220998
Tests
Pull main, theres been a lot of changes
isP2PDebitCardto truePR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly 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 Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly 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)QA Steps
Screenshots
Web
Mobile Web
Desktop
iOS
Android