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#

Mechanism#

  1. Save the reason.
  2. Set the order state as ValueCancelled by admin.
  3. Discard the payment details of the client's order.
  4. 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.