Skip to content
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

Vendure trying to refund the entire value of the order even after there is a coupon applied - resulting in Error #2762

Open
shaheerrs opened this issue Apr 1, 2024 · 1 comment
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@shaheerrs
Copy link

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:

  1. Go to 'http://demo.vendure.com'
  2. Place an order with a coupon with $10off / 10% off
  3. Once order is in "Payment settled state", try to cancel the order completely
  4. 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.

@shaheerrs shaheerrs added the type: bug 🐛 Something isn't working label Apr 1, 2024
@choim4389
Copy link

choim4389 commented Apr 22, 2024

same here 2.1.7

@shaheerrs 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants