You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Order Sync process is failing for merchant codes other than the default one. Upon investigation, it has been found that the \Sapient\Worldpay\Model\Request\PaymentServiceRequest::inquiry function in the codebase does not utilize the $storeId parameter though is defined. This leads to incorrect retrieval of usernames and passwords per store scope.
You can potentially utilize the "Merchant Profile Override Configuration," but it's important to note that there are two issues:
You can use only a single merchant code, as the payment method serves as the key and other merchant codes with the same key will overwrite the first one.
The payment method designated for HPP is set to online while the currently available methods do not include "online".
Proposed Solution:
Update the inquiry function to properly utilize the $storeId parameter for retrieving the correct authentication credentials.
Update the getXmlUsername and getXmlPassword functions within \Sapient\Worldpay\Helper\Data to include the $storeId parameter. This ensures that the functions return credentials at the store scope, facilitating seamless integration with store-specific configurations.
The text was updated successfully, but these errors were encountered:
Hi @chandan-PS, I've seen you added the changes from this PR into 2.4.7, thank you!
I just wanted to point out that in Model/Payment/Service.php:165, the line $worldPayOrder->getStoreId() needs to be replaced with $order->getStoreId() as the payment has no store_id associated.
The order object is already there, so it shouldn't be an issue to be used.
Or, there's another option: just fix the getStoreId() function in: \Sapient\Worldpay\Model\Order::getStoreId:112
The Order Sync process is failing for merchant codes other than the default one. Upon investigation, it has been found that the
\Sapient\Worldpay\Model\Request\PaymentServiceRequest::inquiry
function in the codebase does not utilize the$storeId
parameter though is defined. This leads to incorrect retrieval of usernames and passwords per store scope.You can potentially utilize the "Merchant Profile Override Configuration," but it's important to note that there are two issues:
payment method
serves as the key and other merchant codes with the same key will overwrite the first one.payment method
designated for HPP is set toonline
while the currently available methods do not include "online".Proposed Solution:
inquiry
function to properly utilize the $storeId parameter for retrieving the correct authentication credentials.getXmlUsername
andgetXmlPassword
functions within \Sapient\Worldpay\Helper\Data to include the$storeId
parameter. This ensures that the functions return credentials at the store scope, facilitating seamless integration with store-specific configurations.The text was updated successfully, but these errors were encountered: