-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix #53 - cancel an empty payment #54
Fix #53 - cancel an empty payment #54
Conversation
Hi @cbastienbaron! Thank you very much for this PR! Do you see a way to write a little scenario to cover this ? Let me know if you need help, don't hesitate to contact me on Sylius's Slack : https://sylius-community.slack.com/ |
Hey @Prometee 🖖 , humm good question, perhaps an additionnal scenario for admin with a I don't really have a preference, do you have any ideas ? |
@cbastienbaron since it covers your case, lets try it 😉 |
@cbastienbaron After reading and testing on my own using your PR, I simplify the BeHat test method, to let Sylius do what it is supposed to do. |
Thank you very much for this PR @cbastienbaron 🎉 |
thanks you @Prometee for this kind read and the simplification of behat test :) |
Hey 🖖
Explanations :
When an user cancel a payment (from stripe gateway), a void (i.e. no txid, or whatever (see
details
db field)) payment is created (normal behaviour from sylius) so when we want to cancel an order (from bo), all payments are intent to be cancel but void payment cannot be canceled to stripe side (it's void :), no txid exist )so this pr aims to avoid error mentionned in #53 and focus on only cancel command