[Payment due @Pujan92] Add Cancel payment action for pending P2P wallet payments - #95005
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? |
|
@KioCoan Agree that the error isn't of this PR but shared as in the natural flow I might not be able to test. Thanks, I will test with the onyx update of Need to fix ESLint and TypeScript failures |
|
@Pujan92 the errors were from main. They seem to be fixed now. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-08-01.at.18.00.08.mov |
|
🎯 @Pujan92, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
|
@coleaeason do you have wallets setup in your account? I can't test this too, so it'd be nice to have someone who can test it. |
|
@KioCoan can you please merge main here? I think that will fix the peer review issue |
|
🚧 danieldoglas has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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 https://github.com/danieldoglas in version: 9.4.56-0 🚀
|
Help site review — docs update required ✅Yes, this change is user-facing and warrants a help site update. This PR adds a Cancel payment action letting the sender cancel a peer-to-peer personal Wallet payment while it's held waiting for the recipient to set up their Wallet — a behavior not documented anywhere in Draft help site PR: #98928 What it documents — a new section in
UI copy (Cancel payment, the confirmation prompt, and the report header More menu) was verified against @KioCoan, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |






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