Skip to content

"Synchronize Order Status" - resolves #135#136

Open
obsergiu wants to merge 1 commit into
Worldpay:masterfrom
obsergiu:patch-sync-orders
Open

"Synchronize Order Status" - resolves #135#136
obsergiu wants to merge 1 commit into
Worldpay:masterfrom
obsergiu:patch-sync-orders

Conversation

@obsergiu
Copy link
Copy Markdown

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.

- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant