Skip to content

Do not let users add multiple paypal.me logins #3960

Closed

Description

@kevinksullivan

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

Context in this PR comment. A user can add multiple paypal.me usernames to their account.

  1. Add paypal.me login
  2. Navigate to settings/payments
  3. Click on "Add new payment method"
  4. Click on PayPal.me
  5. Add a Paypal.me account and save
  6. Click on add new Payment method again
  7. See paypal.me and be able to add another paypal.me login

Expected Result:

A user should not be able to add multiple paypal.me logins. More specifically, the flow should work as follows:

  1. User adds Paypal.me login.
  2. Once paypal.me is added, it is shown in the payment method list
  3. A user can tap the existing paypal.me user name to edit it
  4. Add Payment Method no longer shows paypal.me as an option so long as one exists for the user

Actual Result:

Describe what actually happened

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platform:

Where is this issue occurring?

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Version Number: has not deployed yet
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

124942623-16b32280-e00c-11eb-92aa-eadb22027a98.mp4

View all open jobs on Upwork

Activity

  1. kevinksullivan commented on Jul 9, 2021

    @kevinksullivan
    ContributorAuthor

    @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

  2. roryabraham commented on Jul 9, 2021

    @roryabraham
    Contributor

    From my testing, it seems like the "second" Paypal.me account that can be "added" will replace the old one.

  3. added
    External
    on Jul 9, 2021
  4. MelvinBot commented on Jul 9, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @JmillsExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  5. tugbadogan commented on Jul 10, 2021

    @tugbadogan
    Contributor

    Hi, I see this issue has External tag, I would like to work on this issue. Here is my proposal:

    • I will add payPalMeUsername prop to PaymentsPage module and load it from Onyx like this:

    https://github.com/Expensify/Expensify.cash/blob/039b671cc6683372317327fde6dc4f9ecb78818b/src/pages/settings/Payments/PaymentMethodList.js#L169-L171

    • I will use this prop to show/hide Paypal.me menu 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 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:

    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

  6. tugbadogan commented on Jul 10, 2021

    @tugbadogan
    Contributor

    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.

    https://github.com/Expensify/Expensify.cash/blob/039b671cc6683372317327fde6dc4f9ecb78818b/src/libs/actions/User.js#L64-L82

  7. roryabraham commented on Jul 12, 2021

    @roryabraham
    Contributor

    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.

  8. kevinksullivan commented on Jul 13, 2021

    @kevinksullivan
    ContributorAuthor

    Picked this one up for Mills. Job is posted here!

  9. roryabraham commented on Jul 13, 2021

    @roryabraham
    Contributor

    @tugbadogan The Upwork job is ready for you to apply 👍

  10. tugbadogan commented on Jul 13, 2021

    @tugbadogan
    Contributor

    Thanks @kevinksullivan @roryabraham I applied via Upwork. I will send the PR soon.

  11. tugbadogan commented on Jul 15, 2021

    @tugbadogan
    Contributor

    Thanks for merging the PR and closing the issue 👍 I am still waiting for the offer on Upwork by the way. cc @kevinksullivan

  12. kevinksullivan commented on Jul 19, 2021

    @kevinksullivan
    ContributorAuthor

    Hired! Waiting till all relevant PRs have been merged for 7 days, then will make the payment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

DailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions