I was only changing the state of the order. That was not the correct way to do cancellation. I have found out an elegant way to do that here.
user5340
- 45
- 1
- 8