Add Cancel payment action for pending P2P wallet payments - #95005
Add Cancel payment action for pending P2P wallet payments#95005KioCoan wants to merge 11 commits into
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
What's the hold up here? Looks like that Auth PR has been waiting for a review for a couple of weeks. CC: @danieldoglas |
|
I was involved in a few fires in the last weeks, so I missed reviewing the auth PR. Doing so now. |
|
@KioCoan plz merge main and fix the conflicts |
|
@Pujan92 done. |
trjExpensify
left a comment
There was a problem hiding this comment.
Cool, makes sense that we need to add this. 👍
|
Friendly bump @Pujan92 |
|
@KioCoan I am getting an error "Cannot mix test and non-test wallets in a payment." for sendMoneyWithWallet api
|
That error isn't coming from this PR. Making the payer a non-test wallet would need real KYC and real funds, so this one isn't testable on staging. Here's what I'd suggest instead:
Do you know if we would need an internal QA for this @danieldoglas? |


Explanation of Change
This adds a Cancel payment secondary action (report header "More" menu) for the sender of a peer-to-peer "send money" payment that was made with the Expensify Wallet and is waiting for the receiver to set up their wallet. While the payment is held, the sender can cancel it, which returns the held funds.
Note: this relies on the companion backend change (Auth
CancelReimbursement) so the user-initiated cancel actually returns the held wallet funds.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/629371
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari