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
[HOLD] [$1000] Payments - Option "Make default payment method" is unavailable for PayPal #23565
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
"Make default payment method" button should be available in popup menu
Actual Result:
Option "Make default payment method" is unavailable for PayPal
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.45.1 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
What changes do you think we should make in order to solve the problem?
To enable this option for PayPal, shouldShowMakeDefaultButton should return true when this payment method has been selected. For even padding between the buttons, we need to apply styles.mb4 to the button and remove styles.mt4 from the Delete button.
Secondly, we need to implement a condition for PayPal in the makeDefaultPaymentMethod function, where we should pass the account:
changed the title [-]Payments - Option "Make default payment method" is unavailable for PayPal[/-][+][$1000] Payments - Option "Make default payment method" is unavailable for PayPal[/+]on Jul 26, 2023
Please re-state the problem that we are trying to solve in this issue.
Payments - Option "Make default payment method" is unavailable for PayPal
What is the root cause of that problem?
When you are selecting PayPal payment option shouldShowMakeDefaultButton condition is not match for PayPal, it is only checking with BANK_ACCOUNT on here.
What changes do you think we should make in order to solve the problem?
We need to add a new condition that if the user selects PayPal then shouldShowMakeDefaultButton value should be true to make the default payment button visible. Need to change condition like below: just check isPayPalMeSelected value
after that, PaymentMethods.getMakeDefaultPaymentOnyxData need to be adjusted according to PayPal type on below mentions file: location-1 location-2 location-3
changed the title [-][$1000] Payments - Option "Make default payment method" is unavailable for PayPal[/-][+][HOLD] [$1000] Payments - Option "Make default payment method" is unavailable for PayPal[/+]on Aug 3, 2023
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
melvin-bot commentedon Jul 25, 2023
Triggered auto assignment to @dylanexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 25, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)samh-nl commentedon Jul 25, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The "Make default payment option" is unavailable for PayPal.
What is the root cause of that problem?
When rendering the "Make default payment method" option, an exception is made for PayPal, leading
shouldShowMakeDefaultButtonto becomefalse.App/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js
Lines 376 to 381 in 74ae95c
What changes do you think we should make in order to solve the problem?
To enable this option for PayPal,
shouldShowMakeDefaultButtonshould returntruewhen this payment method has been selected. For even padding between the buttons, we need to applystyles.mb4to the button and removestyles.mt4from the Delete button.Secondly, we need to implement a condition for PayPal in the
makeDefaultPaymentMethodfunction, where we should pass the account:App/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js
Lines 295 to 299 in 74ae95c
Lastly,
PaymentMethods.getMakeDefaultPaymentOnyxDatamust be adjusted to add the PayPal type and account here:App/src/libs/actions/PaymentMethods.js
Lines 82 to 83 in 74ae95c
And use the appropriate payment methods here:
App/src/libs/actions/PaymentMethods.js
Line 96 in 74ae95c
App/src/libs/actions/PaymentMethods.js
Line 108 in 74ae95c
What alternative solutions did you explore? (Optional)
N/A
[-]Payments - Option "Make default payment method" is unavailable for PayPal[/-][+][$1000] Payments - Option "Make default payment method" is unavailable for PayPal[/+]melvin-bot commentedon Jul 26, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0153c1b5e7c672cc31
melvin-bot commentedon Jul 26, 2023
Current assignee @dylanexpensify is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jul 26, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (
External)dylanexpensify commentedon Jul 28, 2023
@eVoloshchak let's get the proposal above reviewing today! 🙌
dylanexpensify commentedon Jul 31, 2023
bump @eVoloshchak
kaushiktd commentedon Aug 2, 2023
Please re-state the problem that we are trying to solve in this issue.
Payments - Option "Make default payment method" is unavailable for PayPal
What is the root cause of that problem?
When you are selecting PayPal payment option
shouldShowMakeDefaultButtoncondition is not match for PayPal, it is only checking with BANK_ACCOUNT on here.What changes do you think we should make in order to solve the problem?
We need to add a new condition that if the user selects PayPal then
shouldShowMakeDefaultButtonvalue should be true to make the default payment button visible. Need to change condition like below: just checkisPayPalMeSelectedvaluealso, you need to add a condition to make payment default on the below file:
https://github.com/Expensify/App/blob/main/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js#L245
after that,
PaymentMethods.getMakeDefaultPaymentOnyxDataneed to be adjusted according to PayPal type on below mentions file:location-1
location-2
location-3
melvin-bot commentedon Aug 2, 2023
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
dylanexpensify commentedon Aug 3, 2023
bumping in slack c+ channel
[-][$1000] Payments - Option "Make default payment method" is unavailable for PayPal[/-][+][HOLD] [$1000] Payments - Option "Make default payment method" is unavailable for PayPal[/+]dylanexpensify commentedon Aug 3, 2023
Paypal element being discussed
dylanexpensify commentedon Aug 8, 2023
Closing since no paypal