Send order completed email without showing the confirmation page
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Send order completed email without showing the confirmation page
Hello!
I'm dealing with a payment method that takes a while before contacting my webhook.
I'd thus like to send the completed order email containing the order invoice in my webhook when the payment is captured.
But I'm a little lost about how I can send the email directly in my controller.
Any help? Please..!
I'm dealing with a payment method that takes a while before contacting my webhook.
I'd thus like to send the completed order email containing the order invoice in my webhook when the payment is captured.
But I'm a little lost about how I can send the email directly in my controller.
Any help? Please..!
Re: Send order completed email without showing the confirmation page
You should not send order e-mails in your controller because the URL can be called multiple times and then, the e-mails would be sent also multiple times. This is the reason why the Aimeos payment service providers only set the payment status and the e-mail is then sent by the order/service/payment cronjob. This avoids duplicate e-mails as well as other negative effects.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Send order completed email without showing the confirmation page
Okay.. I understand.