You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Place an order with a coupon with $10off / 10% off
Once order is in "Payment settled state", try to cancel the order completely
See error, in the vendure back office as "Could not find a Payment to refund", but cancellation is done.
Expected behavior
Cancellation should happen with no alert in the front end.
Environment (please complete the following information):
@vendure/core version: 2.1.8
Nodejs version: 16/18
Database (mysql/postgres etc): postgres
Additional context
Here while triaging I could see that even after there is a coupon, the current code trying to refund the entire order amount including the coupon amount, which is not possible as the coupon is not added as a payment method.
The text was updated successfully, but these errors were encountered:
shaheerrs
changed the title
Vendure trying to refund the entire value of the order even after the is a coupon applied - resulting in Error
Vendure trying to refund the entire value of the order even after there is a coupon applied - resulting in Error
Apr 26, 2024
Describe the bug
Order placed with coupon code shows error "Could not find a Payment to refund" while doing complete cancellation.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Cancellation should happen with no alert in the front end.
Environment (please complete the following information):
Additional context
Here while triaging I could see that even after there is a coupon, the current code trying to refund the entire order amount including the coupon amount, which is not possible as the coupon is not added as a payment method.
The text was updated successfully, but these errors were encountered: