-
-
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
Error displaying stripe form when store credits > order.total #307
Comments
Hey @loicginoux, we plan to address this issue in the Solidus Starter Frontend, you can track our progress here solidusio/solidus_starter_frontend#345. |
FYI and because i guess it affects default solidus stripe behaviour. We realised the issue is more difficult because you can have the issue is the amount is |
Hey @loicginoux, thanks for mentioning this 🙏 Yes, We initially considered this issue and, as a result, our initial plan is to simply not render the available payment methods if store credits entirely cover the order. solidus_starter_frontend.348.movOur long-term plan is detailed here: solidusio/solidus_starter_frontend#346 I'm closing this issue as the current setup with this change in the solidus_starter_frontend ensures functionality even with orders fully covered by store credits. Please let me know if you encounter any other issues or if there are scenarios that you think are not covered by this change. |
Sorry @rainerdema , if I see your code, you always talk about
so the remaining to pay is 0.30$. the method
Did I miss something ? is it correctly covered somewhere in specs ? |
No, your explanation makes perfect sense now. My apologies for not understanding your point earlier.
Currently, there are no specs or logic to cover this behavior in the codebase. With the recent fix, we were able to handle the scenario where an order is fully covered by store credits. However, this doesn't apply to the situation where store credits almost fully cover an order, leaving a balance insufficient for completing a payment through Stripe. In a store with a single currency and Stripe as the only payment method, this would certainly be a patchable bug. I've opened an issue to start a discussion and brainstorm for this specific problem: #311 |
When running solidus stripe master branch locally:
Which seems legit as Stripe probably does not allow a payment for an amout of 0.
Expected behavior
it should probably not display the payment forms at all. just "save and continue"
additional notes
Everything works fine when store credit amount < order total.
for example with an order total of 94$ and 50$ store credit, the payment workflow looks good
The text was updated successfully, but these errors were encountered: