Send Failed Order Email
amerta / amerta/payload/utilities/emails/sendOrderEmail / sendFailedOrderEmail
Function: sendFailedOrderEmail()
sendFailedOrderEmail(
customer,order):Promise<void>
Defined in: amerta/payload/utilities/emails/sendOrderEmail.ts:100
Sends a failed order notification email to both admin and customer.
This function sends two emails:
- An admin notification email to alert site administrators of the failed order
- A customer notification email informing them of the failure
Parameters
| Parameter | Type | Description |
| ------ | ------ | ------ |
| customer | Customer | The customer whose order failed |
| order | Order | The failed order object |
Returns
Promise<void>