-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add ach cancelled action #58674
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
Add ach cancelled action #58674
Conversation
Trying to get a better gauge on moving forward with this in the Slack thread here: https://expensify.slack.com/archives/C05CBC62HGW/p1743143065626269?thread_ts=1742847300.129289&cid=C05CBC62HGW |
@ Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
✋ 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/yuwenmemon in version: 9.1.23-1 🚀
|
Hey, @nlemma. Yes, part of the fix is here, since it will properly handle both cancel options (Paid elsewhere, paid with expensify). The second part is in this PR. I created an issue to track it: https://github.com/Expensify/Expensify/issues/487761. |
@heekinho Testers are seeing an error when trying to cancel the payment: I found this old issue where it is stated that this is the expected behavior when using test bank account for this. Is this still the expected behavior? bug.mp4 |
Hnm, not sure if the process in I think this is hardly a problem in the PR, though, since I'm not touching anything related to the request, only the responses. |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.23-7 🚀
|
Explanation of Change
Fixed Issues
https://github.com/Expensify/Expensify/issues/408738
PROPOSAL: https://github.com/Expensify/Expensify/issues/408738#issuecomment-2733992891
Include support for the cancellation update messages when cancelling payments using the "Pay $x with Expensify".
Right now no messages are being delivered when cancelling payments originated from that option.
We should add support so it works the same way as when paying with "Pay $x elsewhere"
The following video show how it is
main
(cancellation messages for Pay with Expensify are not delivered)Screen.Recording.2025-03-19.at.19.33.09.mov
The following video show the alternate path (Pay elsewhere), where the message gets delivered. Then we try the "Pay with Expensify" one more time to confirm it.
Screen.Recording.2025-03-19.at.19.34.23.mov
Technical Explanation
When cancelling a payment made with "Pay elsewhere" it generates an
ACTION_REIMBURSEMENT_DEQUEUED
.When cancelling a payment made with "Pay with expensify", it generates an
ACTION_REIMBURSEMENT_ACH_CANCELED
.Right now only
ACTION_REIMBURSEMENT_DEQUEUED
is supported in App.We need to add support to
ACTION_REIMBURSEMENT_ACH_CANCELED
in App so that it can be properly recognized.This PR mainly adds support for that action type as a possible report action, and just renames a bunch of variables so context is clear for future readers.
The following video show the fixed version after applying this PR, with the messages being properly delivered.
Screen.Recording.2025-03-19.at.19.53.55.mov
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
cancel-payment-android-web.mov
Android: mWeb Chrome
cancel-payment-android-web.mov
iOS: Native
cancel-payment-ios.mov
iOS: mWeb Safari
cancel-payment-ios-safari.mov
MacOS: Chrome / Safari
cancel-payment-safari.mov
MacOS: Desktop
cancel-payment-desktop.mov