-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Create new Payment ButtonWithMenu and add it to the Confirm Page #3866
Conversation
this is ready for review @madmax330 and @mountiny going to add you as a reviewer too |
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.
Overall the code looks good to me. I have left couple of comments, but also I was not sure if this is good to review of if it is on HOLD as there is hold mentioned in the PR body.
Let me know if it good for testing and final reviews. Then we can add it to the other PR and test it with it.
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.
Looks great to me! I feel like it will be way easier to test for any regressions together with the other PRs like this: #4329
Some more testing problems,
|
I'm re-testing the full flow now. PayPal not showing up might be related to not having updated Auth in a while since we recently included the PayPal username in the personal details that get pulled down. For 2. if you follow the full flow, it will "request" money at the end if that's what you're referring to. This PR will connect the API command properly and this PR just puts "send money" in as an option. |
Found the issue with the PayPal address, updating shortly |
PayPal appears properly now after adding it to the Also just wanted to make a note on testing |
Ready for another round! Appreciate the patience, guys! |
Thanks for confirming this 👍 |
Tests are 🟢 besides what I mentioned with it actually requesting money.
Should this be behind a beta then since it doesn't actually send money? Or are we just shipping it "broken" |
Yup, this whole flow is behind a beta flag! Both the global create and DM menus have |
@@ -560,6 +560,19 @@ class ReportActionCompose extends React.Component { | |||
}, | |||
}, | |||
] : []), | |||
...(Permissions.canUseIOUSend(this.props.betas) && !hasMultipleParticipants ? [ |
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.
Beta flag here for the DM menu
@@ -158,6 +159,13 @@ class SidebarScreen extends Component { | |||
text: this.props.translate('sidebarScreen.newGroup'), | |||
onSelected: () => Navigation.navigate(ROUTES.NEW_GROUP), | |||
}, | |||
...(Permissions.canUseIOUSend(this.props.betas) ? [ |
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.
And the other flag here
lol. I was just going through the code for a final review and realized that :ohnothing: Ignore me! |
All you @mountiny @madmax330 ! |
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.
Great job on this one @nickmurray47 and also great learning experience to see your review @stitesExpensify! I don't see anything bad in the code now, so all yours @madmax330!
✋ 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 @madmax330 in version: 1.1.4-1 🚀
|
🚀 Deployed to production by @chiragsalian in version: 1.1.5-1 🚀
|
I believe this PR introduced this bug: #14305. We are storing a translated text in state and only updating |
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA Nicholas Murray seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
cc @mountiny
Details
Adds the
Send Money
option behind a beta to the DM and Global menu. Refactors the use of a string 'send' to be aCONST
. Adds a new componentButtonWithMenu
to display the list of available payment methods if a user is making a Send Money request.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/169175
Tests / QA Steps
If testing on staging, then you'll need to be added to the SendMoney Beta
Verify Send money appears in menus
Send money
option appearsSend money
option appears thereVerify dropdown menu includes payment options
Send Money
option, enter an amount, then on the confirmation page, verify that a dropdown button menu appears with at least two options (Pay with Expensify
andI'll settle up elsewhere
).Send Money
to account B again and verify that the PayPalMe option appears from the dropdown payment optionsVenmo
option appears.Check for regressions
![Screen Shot 2021-09-22 at 4 57 52 PM](https://user-images.githubusercontent.com/24466196/134437243-ff089647-5327-4221-8020-4af89abf0cf2.png)
8. (Checking for regressions) From the DM, click the
Request
option, follow the full flow and make sure the confirmation button saysRequest $X
.Split
option, follow the full flow and make sure the confirmation button saysSplit $X
Tested On
Screenshots
Web
See above
Mobile Web
Desktop
iOS
Android