Kind of event for order payment status

Help for integrating the Laravel package
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!
MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Kind of event for order payment status

Post by MikaelNazarenko » 13 Aug 2022, 06:45

Hi, community !

I have a task to send email invoice when order get paid.
So it may be at least two different scenarios:
- customer pays via payment system like paypal, then order paid status switched automatically by aimeos when received signal from payment system.
- admin may switch this status manually for some cases like bank transfer method an so on.

Is there good way to connect to this status changed that I can send invoice by email ?

Code: Select all

aimeos/ai-admin-jqadm              2021.10.4 Aimeos Vue.js+Bootstrap admin interface
aimeos/ai-admin-jsonadm            2021.10.2 Aimeos ai-admin-jsonadm extension
aimeos/ai-client-html              2021.10.5 Aimeos ai-client-html extension
aimeos/ai-client-jsonapi           2021.10.2 Aimeos JSON API extension
aimeos/ai-cms-grapesjs             2021.10.1 Aimeos GrapesJS CMS extension
aimeos/ai-controller-frontend      2021.10.2 Aimeos ai-controller-frontend extension
aimeos/ai-controller-jobs          2021.10.3 Aimeos ai-controller-jobs extension
aimeos/ai-gettext                  2021.10.1 Aimeos Gettext extension
aimeos/ai-laravel                  2021.10.1 Laravel adapter for Aimeos web shops and e-commerce solutions
aimeos/ai-payments                 2021.10.4 Payment extension for Aimeos web shops and e-commerce solutions
aimeos/ai-swiftmailer              2021.10.1 SwiftMailer adapter for Aimeos web shops and e-commerce solutions
aimeos/aimeos-core                 2021.10.6 Full-featured e-commerce components for high performance online shops
aimeos/aimeos-laravel              2021.10.3 Professional, full-featured and high performance Laravel e-commerce package for online shops and complex B2B projects
Thanks a lot !

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Kind of event for order payment status

Post by aimeos » 15 Aug 2022, 07:45

The order/email/payment job controller already sends order confirmations with a PDF file when the payment status changes:
https://github.com/aimeos/ai-client-htm ... andard.php

You can adapt the e-mail templates and the PDF file by copying and modifying these files:
https://github.com/aimeos/ai-client-htm ... il/payment
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply