hi guys i created payment method and every think till now ok after payment sucess i call this line to mark order as paid _orderProcessingService.MarkOrderAsPaidAsync(order); and its do it Payment status:Paid now i active message template - OrderPaid.CustomerNotification but it's not working. before think that i have issue with email account it's working good and i got message in case OrderCancelled.CustomerNotification and OrderPlaced.CustomerNotification how i can solve it thx
First, Check to see if the message is in the MessageQueue. Check the System > Log for any errors.
Set a breakpoint in the OrderProcessingService.cs at method protected virtual async Task ProcessOrderPaidAsync(Order order) See if gets there, and step through code.
OrderPaid.CustomerNotification -> not and OrderCompleted.CustomerNotification -> not
How are you setting the Order statuses to Paid and Complete ? If you manually setting the status in the control panel it will not send emails You need to use the checkout flow for the messages to send Or use the Mark as Paid button (unless you are manully use the fucntions in the code)