-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi, we found this error when we doing the refund in magento 2.4.5p4
The function is on null.

After that, we was looking into the function at vendor/riskified/magento2new/Model/Observer/ProcessSuccessfulPost.php
Please check the code in 1.12.17

We made the modify as below code snippet.
And then, it worked
/**
* ProcessSuccessfulPost constructor.
* @param OrderLogger $logger
* @param OrderApi $orderApi
*/
public function __construct(
OrderLogger $logger,
OrderApi $orderApi,
Registry $registry
) {
$this->logger = $logger;
$this->orderApi = $orderApi;
$this->registry = $registry;
}The $this->registry should added after $this->orderApi = $orderApi;
Metadata
Metadata
Assignees
Labels
No labels