Worldpay-Magento2-CG icon indicating copy to clipboard operation
Worldpay-Magento2-CG copied to clipboard

"Synchronize Order Status" - resolves #135

Open obsergiu opened this issue 5 months ago • 0 comments

Fix for #135

  • Introduce the variable $storeId in the methods getXmlUsername() and getXmlPassword within the specified class.

  • Incorporate the $storeId parameter into the username and password requests within the inquiry() function of \Sapient\Worldpay\Model\Request\PaymentServiceRequest::inquiry().

  • Modify the behaviour of the getStoreId() method in the \Sapient\Worldpay\Model\Order::getStoreId() class to return the Store ID of the order, considering that Payment objects do not have an associated StoreId.

  • Replace references to $worldPayPayment->getStoreId() with $order->getStoreId() in the getPaymentUpdateXmlForOrder() function of \Sapient\Worldpay\Model\Payment\Service, which invokes the inquiry() function.

obsergiu avatar Mar 23 '24 23:03 obsergiu