error 9/15/23, 5:35 PM - [Vendure Server] {
31|kzfoo-s | "message": "INTERNAL_SERVER_ERROR: Could not find a Payment to refund",
31|kzfoo-s | "variables": {}
31|kzfoo-s | }
31|kzfoo-s | Error: Could not find a Payment to refund
31|kzfoo-s | at PaymentService.createRefund (/opt/applications/production/kzfoo-srv/node_modules/@vendure/core/dist/service/services/payment.service.js:253:23)
31|kzfoo-s | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
31|kzfoo-s | at async OrderService.refundOrder (/opt/applications/production/kzfoo-srv/node_modules/@vendure/core/dist/service/services/order.service.js:1088:16)
To Reproduce
Steps to reproduce the behavior:
Placed an order with two product variant
Make a payment settled
Create fullfillment , flag it as delivered
try refund with cannceled flag it will throw above error
Expected behavior
can be correct refund also
Environment (please complete the following information):
@vendure/core version: 2.0.7
Nodejs version: 18
Database (mysql/postgres etc): mysql
Additional context
Add any other context about the problem here.
Describe the bug
To Reproduce Steps to reproduce the behavior:
delivered
cannceled
flag it will throw above errorExpected behavior can be correct refund also
Environment (please complete the following information):
Additional context Add any other context about the problem here.