Open BorisKamp opened 1 year ago
In stripe you cannot cancel payments if they are captured:
Could you maybe explain how to deal with canceled orders? In several countries customers could cancel the order even in a later state. Normally you would then cancel the order and refund the money.
Currently I don't see a way of declaring the order as canceled - If that's happening - i end up with dangling Orders in my Store.
Is there any plan of changing the way of how an order is canceled?
Yeah I second that, I have dead order which I cannot remove because of a stripe payment for example. But the stripe payment was a test payment in this case. So we need a way to cancel those orders.
Would refunding the payment of the order solve this? https://docs.medusajs.com/modules/orders/admin/manage-orders#refund-payment
Would refunding the payment of the order solve this? https://docs.medusajs.com/modules/orders/admin/manage-orders#refund-payment
I tried that also, the payment is going back to the customer but the order stays open and there is no way to close/cancel.
You cannot cancel refunded orders.
The only way I see at the moment is to change the status manually on the db.
Any update for this guys?
Upvote for this - this is a must have.
As a workaround for now I cancel the order straight from the database.
In the order
table set the status
field to either canceled
or archived
, this does the trick and breaks nothing, I can confirm.
This should be fairly easy to implement in the cancel order endpoint tho. I think medusa needs to implement a force
paramater that we can send along, if true
, always set the order to canceled
, no matter the other statusses (payment status with stripe for example).
Same for the archive order endpoint.
Same issue here
Hey any updates on this? Seems to be a really big hole if i am understanding this correctly.
I have a flow where the Seller can choose to Accept or Decline a paid order. In the later case, the order would need to be cancelled (deleteing item reservations and other logic) and refunding to the customer. With current setup it seems one is exclusive of the other: you cannot cancel an order with refunds and you cannot refund a canelled order
@BorisKamp have you found anything or has the Medusa team reached out to you?
@BorisKamp have you found anything or has the Medusa team reached out to you?
hey! Well I still cancel them manually in my database. But it should be pretty easy to create a custom endpoint for this using the order repo.
it would be nice to get a reply from one of the medusa team members tho, to verify that what I state up here, indeed does not break anything. @shahednasser
Same problem here. Would be great to have a solution. Highly uncomfortable if in production mode ...
Any update on this? Would be available to work on this if we got some input from somebody from the Medusa team about the best way to handle this...
Using medusa
1.17.1
I cannot cancel an order. Whenever I call{{medusa-host}}/admin/orders/:id/cancel
I get a400 bad request
back and see the following in my logs:I have multiple test orders from when we started with Medusa that I want to cleanup, however I can't.
Here's the
payments
array from one of the orders:What else would you need to debug?