payment plugin email confirmations

Hace 3 semanas
Hi

Just finishing a payment plugin however there is no email confirmations being generated. I'd assume when I set the payment status to 'paid' the appropriate email would be sent.

Is that a specific task I have to call in the plugin or should these notifications be generated based on say the the payment status?

Thanks.
Hace 3 semanas
there is an email template OrderPaid.CustomerNotification
check whether the OrderPaid event is firing or not.
it should send an email if this template is active.
//Rashed
Hace 3 semanas
Hi, its not firing, hence this post.

However digging around I see there is this method OrderProcessingService.MarkOrderAsPaidAsync() that internally calls ProcessOrderPaidAsync() and looking at the code for that it appears there is where the email notifications are generated.

I'll give that a go and see if it sorted.
Hace 3 semanas
You can look at example
\Plugins\Nop.Plugin.Payments.PayPalCommerce\Services\ServiceManager.cs
public async Task HandleWebhookAsync
...
                    case "completed":
...
                                await _orderProcessingService.MarkOrderAsPaidAsync(order);