You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not let users add multiple paypal.me logins #3960
@roryabraham holding off on the auto assigner until we know whether the original PR is adding multiple paypal.me usernames or just overriding the existing user name
Do you want to hide Add Payment Method button if there isn't any available menu item? It doesn't look good right now when we hide Paypal.me menu item now.
To edit existing Paypal.me account addPaymentMethodTypePressed function will be called here to open Paypal.me account settings page:
By the way, there's a bug in getUserDetails function and it puts an empty string to ONYXKEYS.NVP_PAYPAL_ME_ADDRESS since that API call doesn't return a Paypal.me account name.
Do you want to hide Add Payment Method button if there isn't any available menu item?
Yes 👍
By the way, there's a bug in getUserDetails function and it puts an empty string to ONYXKEYS.NVP_PAYPAL_ME_ADDRESS since that API call doesn't return a Paypal.me account name.
Thanks for reporting! It seems like we might need to fix this internally to fix the API. I will investigate and let you know.
But overall @tugbadogan your proposal looks good! Feel free to submit a PR once an Upwork job has been created and you've been hired on Upwork.
Activity
kevinksullivan commentedon Jul 9, 2021
@roryabraham holding off on the auto assigner until we know whether the original PR is adding multiple paypal.me usernames or just overriding the existing user name
roryabraham commentedon Jul 9, 2021
From my testing, it seems like the "second" Paypal.me account that can be "added" will replace the old one.
MelvinBot commentedon Jul 9, 2021
Triggered auto assignment to @JmillsExpensify (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.tugbadogan commentedon Jul 10, 2021
Hi, I see this issue has
Externaltag, I would like to work on this issue. Here is my proposal:payPalMeUsernameprop toPaymentsPagemodule and load it from Onyx like this:https://github.com/Expensify/Expensify.cash/blob/039b671cc6683372317327fde6dc4f9ecb78818b/src/pages/settings/Payments/PaymentMethodList.js#L169-L171
Paypal.memenu item here:https://github.com/Expensify/Expensify.cash/blob/039b671cc6683372317327fde6dc4f9ecb78818b/src/pages/settings/Payments/PaymentsPage.js#L107-L111
Do you want to hide
Add Payment Methodbutton if there isn't any available menu item? It doesn't look good right now when we hidePaypal.memenu item now.addPaymentMethodTypePressedfunction will be called here to open Paypal.me account settings page:https://github.com/Expensify/Expensify.cash/blob/039b671cc6683372317327fde6dc4f9ecb78818b/src/pages/settings/Payments/PaymentsPage.js#L50-L52
https://github.com/Expensify/Expensify.cash/blob/039b671cc6683372317327fde6dc4f9ecb78818b/src/pages/settings/Payments/PaymentsPage.js#L69-L75
tugbadogan commentedon Jul 10, 2021
By the way, there's a bug in
getUserDetailsfunction and it puts an empty string toONYXKEYS.NVP_PAYPAL_ME_ADDRESSsince that API call doesn't return a Paypal.me account name.https://github.com/Expensify/Expensify.cash/blob/039b671cc6683372317327fde6dc4f9ecb78818b/src/libs/actions/User.js#L64-L82
roryabraham commentedon Jul 12, 2021
Yes 👍
Thanks for reporting! It seems like we might need to fix this internally to fix the API. I will investigate and let you know.
But overall @tugbadogan your proposal looks good! Feel free to submit a PR once an Upwork job has been created and you've been hired on Upwork.
kevinksullivan commentedon Jul 13, 2021
Picked this one up for Mills. Job is posted here!
roryabraham commentedon Jul 13, 2021
@tugbadogan The Upwork job is ready for you to apply 👍
tugbadogan commentedon Jul 13, 2021
Thanks @kevinksullivan @roryabraham I applied via Upwork. I will send the PR soon.
tugbadogan commentedon Jul 15, 2021
Thanks for merging the PR and closing the issue 👍 I am still waiting for the offer on Upwork by the way. cc @kevinksullivan
kevinksullivan commentedon Jul 19, 2021
Hired! Waiting till all relevant PRs have been merged for 7 days, then will make the payment.