Closed JoostWan closed 1 year ago
Same issue for me using Magento 2.4.3-p3 / PHP 7.4 on a multistore instance.
The error occurs only on a certain store (the second in my case)
I solved this issue by running a downgrade of the module :
composer require multisafepay/magento2:2.20.1
main.CRITICAL: TypeError: explode() expects parameter 2 to be string, null given in /var/www/vhosts/mysite/src/vendor/multisafepay/magento2-core/Model/Ui/Gateway/EinvoicingConfigProvider.php:57 Stack trace:
I can also confirm this issue. Getting the same on Magento 2.4.4 and MSP version: 2.21.0. Please prioritize this.
@atty31 for now you can use this patch
@package multisafepay/magento2-core
## See https://github.com/MultiSafepay/magento2/issues/41
diff --git a/Model/Ui/GenericConfigProvider.php b/Model/Ui/GenericConfigProvider.php
--- a/Model/Ui/GenericConfigProvider.php
+++ b/Model/Ui/GenericConfigProvider.php (date 1666525964235)
@@ -321,6 +321,11 @@
if ($multiSafepaySdk = $this->getSdk()) {
try {
+
+ if ($this->getGatewayCode() == 'MYBANK') {
+ return $issuers;
+ }
+
$issuerListing = $multiSafepaySdk->getIssuerManager()->getIssuersByGatewayCode($this->getGatewayCode());
foreach ($issuerListing as $issuer) {
$issuers[] = [
Thanks @JoostWan , i will let you know if it doesn't work
Hi @JoostWan , @emetik and @atty31 ,
Thank you for the reports. First of all i would like to point out that the original issue which was addressed by @JoostWan was caused due to an unforeseen case in our API where retrieving the issuers can return an empty result, where our PHP SDK always expected something to be there. This issue has now been fixed as well in the API as in the PHP SDK.
Our Magento module has been updated accordingly as well: https://github.com/MultiSafepay/magento2/releases/tag/2.21.1
Secondly, we are aware that it is not an ideal situation where we are trying to retrieve issuers for the 'MyBank' payment method, even if the payment method has been turned off. I have created an internal ticket for this to be improved. The next release from here on will make sure to have a check first in the config if the payment method has been enabled, before retrieving issuers related to that specific payment method.
At last, i want to point out that the issue @emetik is experiencing is actually a different issue related with E-invoicing which was already addressed by someone else: https://github.com/MultiSafepay/magento2/issues/38
This issue has been fixed in the latest version as well.
For now i am closing this issue. If there are more questions in the future, please feel free to reopen this or create a new one.
Describe the bug Sometimes the checkout gives an error. This is the stack trace. We used the latest version
2.21.0
and Magento 2.4.4-2 with PHP 8.It looks like the error is coming from the new payment method
getIssuersByGatewayCode('mybank')
but the method is disabled. Maybe the request to MSP gives sometimes no data for this method. It looks like it started at 22 oct.