-
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
Hide add payment button #4034
Hide add payment button #4034
Conversation
Hide Paypal.me button if there is a Paypal.me username. Hide Add Payment Method button if there is no available payment method.
As I mentioned in the issue, comment these lines to test this PR. |
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.
Actually @tugbadogan I was wrong - no API changes are needed. The bug in getUserDetails
is front-end only. Make the following change to the API call in there and it will work:
API.Get({
returnValueList: 'account, loginList, nameValuePairs',
nvpNames: [CONST.NVP.BLOCKED_FROM_CONCIERGE, CONST.NVP.PAYPAL_ME_ADDRESS].join(','),
})
Otherwise, the code looks great! Let's get this easy bug fix added to the PR then this should be good-to-go. Thanks and great work! |
@roryabraham Thanks for the review. I fixed the API call in |
✋ 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 in version: 1.0.78-3🚀
|
🚀 Deployed to production in version: 1.0.79-4🚀
|
cc @roryabraham @kevinksullivan
Details
Add Payment Method
no longer shows paypal.me option if there's an existing Paypal.me username andAdd Payment Method
button is hidden completely if there is no available payment method to add.Fixed Issues
Fixes #3960
Tests
Tested by adding and updating Paypal.me username on different platforms.
QA Steps
Tested On
Screenshots
Web
Screen.Recording.2021-07-14.at.14.16.25-2.mov
Mobile Web
Screen.Recording.2021-07-14.at.14.18.51.mov
Desktop
Screen.Recording.2021-07-14.at.14.24.40-2.mov
iOS
Screen.Recording.2021-07-14.at.15.27.35.mov
Android
Screen.Recording.2021-07-14.at.15.05.32.mov