-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
Allow SCA cards to be setup and charged offline for subscriptions #6469
Allow SCA cards to be setup and charged offline for subscriptions #6469
Conversation
That rubocop failure is not showing up for me locally... |
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.
There are still a few detours in the commit history but it all looks reasonable. I would need to invest a lot more time to properly understand how it all works. Instead I'll trust you. 😜
And I'm glad we have thorough testers.
4ca354e
to
0ac248f
Compare
b1dbb81
to
f50577b
Compare
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.
This is really good! Congrats on this great effort @andrewpbrett 👏 !
Hey @andrewpbrett , Awesome work, very interesting changes and quite a lot going on... Let's have a look at some test cases, starting with the acceptance criteria & tests from the issues this PR is closing:
Same as above. Authentication works here as well 👍
All good!
all good: 3D- or non-3D cards can be deleted. I found a issue with some "really old" cards, from Spree Upgrade still. these can't be deleted, for some reason: generates error 500 for example, https://staging.openfoodnetwork.org.uk/credit_cards/2995 I don't think this PR introduced this.
All good! Awesome work 🎉 |
I've extended the regression test mentioned in the testing notes (point 4) to Stripe Connect - before, this was only tested for StripeSCA for 3D-Secure (not working) and non-3D-Secure cards (working). This PR appears to break subscriptions for Stripe Connect and triggers the error: |
Patch #6469: use `purchase` to charge offline for Stripe Connect
What? Why?
Closes #4182
Closes #4723
This change allows customers to perform the extra SCA auth step when they authorize shops to charge their card offline.
It also no longer creates a clone of the card on the shop's Stripe account each time we need to authorize or charge a card stored on the platform (instance) Stripe account.
What should we test?
Adding a card that requires SCA (see http://stripe.com/docs/testing ) to the /account page, setting it to be the default card, and then ticking the box to authorize a shop to charge it offline should prompt the extra SCA auth step.
Release notes
We now support SCA when charging cards offline for subscriptions.
Changelog Category: User facing changes
Dependencies
Documentation updates