-
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
[$250] [Payment card / Subscription] Add SCA support in Transfer Owner flow #42490
Comments
Still waiting for SCA to work in the subscription page, making progress. |
Picking this up. |
Hmm okay, looked at this this afternoon. Notes for myself:
Current thinking: lets just do the same thing we did with the add payment card form here. We can use addSubscriptionPaymentCard() in place of addBillingCardAndRequestPolicyOwnerChange() right here. If its a non-GBP currency it'll go through as normal, and if it is GBP it'll start the setupIntent flow and will give us an I'm not actually even sure that we need to do that last part where we call Follow up items for @blimpich to look into:
|
|
Okay I made a proof of concept branch just to see if this idea would even work, and it does! I can transfer the owner by just waiting to see if the fund list updates and then triggering a RequestOwner. However after thinking about this more I think this might be violating our 1:1:1 philosophy. |
Ran out of time but I will ask in engineering chat tomorrow if my plan violates 1:1:1. If that is the case then we will need to probably do a good amount of work to make a new endpoint and make it 1:1:1. |
Triggered auto assignment to @RachCHopkins ( |
@JmillsExpensify, @ntdiary, @blimpich, @waterim Still overdue 6 days?! Let's take care of this! |
Looks like we're still working through the PR |
@JmillsExpensify, @ntdiary, @blimpich, @waterim 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
Not overdue, under development |
@JmillsExpensify, @ntdiary, @blimpich, @waterim 10 days overdue. I'm getting more depressed than Marvin. |
PR is in review, @ntdiary you will need my ngrok credentials in order to test this PR. Please see this comment for the credentials and some common questions about using ngrok. Please put those credentials into your |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Reassigning C+ as per this discussion. @DylanDylann please see this comment for my ngrok credentials and details on the flows that we are testing: #42490 (comment) |
@DylanDylann I'm signing off for the day but are you going to be able to review this tomorrow during my work hours (9am-5pm PST)? I'd like to keep the ball rolling on this PR. Thank you! |
@JmillsExpensify The PR is deployed to production on 2/10. The payment should be ready on 9/10 |
Ah sorry about that. Payment summary: $250 for @DylanDylann for PR review and testing. Payment via Upwork. |
All paid out. |
Per this discussion in the Payment card and subscription management in NewDot design doc, we need to support adding a GBP payment card in the "Transfer Owner" flow.
To test
Currently, when transferring ownership of a policy in NewDot, the
AddBillingCardAndRequestPolicyOwnerChange
API command is called. That command is callingUserAPI::addPaymentCard
, which doesn't account for “Strong Customer Authentication” aka SCA requirements (which are relevant for GBP-currency payment cards).Once SCA support is built out for NewDot in the Payment card project, we should use it as a base to extend to the Transfer Owner flow.
Update September 5th 2024
SCA support is now in new dot but making SCA possible for the transfer owner flow has required doing a lot of backend work to make it follow our 1:1:1 rule where 1 action equals with call to the web layer which equals one call to the Auth layer.
Once both of these PRs are merge though (1, 2) then this issue should be unblocked. From there we should follow the plan outlined in this comment to use the new
VerifySetupIntentAndRequestPolicyOwnerChange
command to complete the SCA transfer owner flow.Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @DylanDylannThe text was updated successfully, but these errors were encountered: