paynl / magento2-plugin

The Pay. plugin for Magento 2
https://www.pay.nl
27 stars 31 forks source link

Feature: Fire payment pay event when triggering payment #172

Closed indykoning closed 1 year ago

indykoning commented 1 year ago

Extensions like https://github.com/elgentos/magento2-serversideanalytics/blob/c02a4df4300496d83e501029fb55aa1e40f048f2/etc/events.xml#L6 depend on the sales_order_payment_pay to know when an order has been successfully paid.

Pay currently sets the status to paid without firing this event, for better compatibility with other modules this event should be fired at the right time when an order has been successfully paid

escruickshank commented 1 year ago

Hi! Thank you for your message. We do fire this event when an order is set to PAID. Could it be that this issue is limited to B2B orders only? We do have a setting in our plugin where users can turn off invoices for certain payment methods.

escruickshank commented 1 year ago

Hi @indykoning, we fire this event on both PAID and AUTHORIZE statuses. However, some Buy Now Pay Later payment methods, specifically for B2B, have the option to turn off invoices. I will close this issue for now. If you need any further information please contact us via support@pay.nl