- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2022
02:18 PM
01-16-2022
02:18 PM
empty observer
Hi All,
Im trying to do an offline payment where my customer wants to "payonbill". All works fine and i added
Thing is that the event is thrown for the offline payment however the event is empty. What can i do to resolve that? Or is there a better way to approach this scenario? At this moment i am receiving the orderId in the observer and continue from there.
Thank you for anyting
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022
06:47 AM
01-29-2022
06:47 AM
Re: empty observer
You can use the event checkout_onepage_controller_success_action at Namespace\module\etc\frontend\events.xml:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="checkout_onepage_controller_success_action"> <observer name="mymodule_controller_success_action" instance="Namespace\Module\Observer\MyObserver" /> </event>
If issue solved, Click Kudos & Accept as Solution.
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool