-
-
Notifications
You must be signed in to change notification settings - Fork 61
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 reuse of payment sources via admin #278
Allow reuse of payment sources via admin #278
Conversation
2accbfc
to
256ff7e
Compare
Codecov Report
@@ Coverage Diff @@
## master #278 +/- ##
==========================================
+ Coverage 99.59% 99.62% +0.03%
==========================================
Files 27 30 +3
Lines 489 540 +51
==========================================
+ Hits 487 538 +51
Misses 2 2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
8a0c877
to
2186d27
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.
Just a couple of nits
💯 on having an issue open on solidus, we should mark it for fixing whenever we touch that part of the admin (at worst).
98378cd
to
140bfbc
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.
Thanks, @rainerdema! Great work and great investigation 👏 Left some comments.
140bfbc
to
55fbb3c
Compare
This is needed to allow the use of the payment method in the admin interface.
This commit re-introduce the `authorize` and `purchase` methods as they are now handled also backend-side.
55fbb3c
to
3552394
Compare
3552394
to
c8c289a
Compare
This commit adds the Stripe source form partial with only the option to reuse existing payment sources. In addition, a logic similar to the one used in the front end is also implemented to render custom partials for each type of Stripe Payment Method.
This is important to prevent reusing intents with different amount.
c8c289a
to
33b0ad4
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.
🙌
Summary
ℹ️ Please refer to #280 for more details about specific implementation decisions.
This enables the reuse of payment sources within the user's wallet (preventing the use of payment methods that the user has removed from their wallet).
authorize
andpurchase
gateway methodsChecklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: