Cancel order
Description#
Allows admins to cancel an order at any stage in case of emergencies.
Input#
Reason#
- Type
- String
- Validation
- Required
Message#
- Type
- String
Additional validation#
- Can only be activated on active orders.
Mechanism#
- Save the reason.
- Set the order state as ValueCancelled by admin.
- Discard the payment details of the client's order.
- Send a push notification to the client regarding the cancellation along with the Function inputmessage, if provided.
Notes#
warning
- Using this function should be avoided and used only as a last resort.