-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 generic payment method message #22551
Conversation
@rushatgabhane 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/VideosMobile Web - SafariScreen.Recording.2023-07-13.at.09.17.10.moviOSScreen.Recording.2023-07-13.at.09.22.19.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Julesssss LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. I tried testing PayPal but got blocked by a separate bug.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
case CONST.IOU.PAYMENT_TYPE.PAYPAL_ME: | ||
paymentMethodMessage = ' using PayPal.me'; | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jjcoffee I think when this is used to pay reimbursement in expense report, the message will say using ACH
as that is the payment type const. We dont want that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could not see this during testing, I am not sure where exactly this flow goes through
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.41-0 🚀
|
@Julesssss @mountiny We dont have gold wallet in QA. can we test with Silver one or you want to run this internally? |
I think you can check this one off |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.41-3 🚀
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.42-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.41-3 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|
Details
There was previously no default case for generating the payment message when settling IOUs. Here I've added a generic case ("paid using {paymentMethod}") so that we handle any future payment methods that get added without needing to constantly add new cases. If the payment method requires a custom string (like "elsewhere" does), this can easily be added as a special case.
Fixed Issues
$ #21535
PROPOSAL: #21535 (comment)
Tests
Ideally you have access to Gold wallet to test, but if not you can add a little hack to force all payment to initially (optimistically) go through as if they're a gold wallet payment. To do this, change
paymentMethodType
here toCONST.IOU.PAYMENT_TYPE.EXPENSIFY
. Note that if using the hack, the message in the final testing step will only display briefly before the request completes and the "real" payment method will show (e.g.paid $xx.xx elsewhere
)paid $xx.xx using Expensify
Offline tests
Same as above.
QA Steps
Same as above.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
iou-gold-wallet-chrome-desktop-2023-07-10_12.47.47.mp4
Mobile Web - Chrome
android-chrome.mp4
Mobile Web - Safari
iou-gold-wallet-ios-safari-2023-07-10_15.00.05.mp4
Desktop
iou-gold-wallet-macos-desktop-2023-07-10_14.56.13.mp4
iOS
iou-gold-wallet-ios-native-2023-07-10_15.07.18.mp4
Android
android-native.mp4