maksuturva / magento2_payment_module

Svea Payment module for Magento 2
Other
4 stars 13 forks source link

Deprecated Functionality error #63

Open nukka opened 9 months ago

nukka commented 9 months ago

Preconditions: Magento ver. 2.4.5-p4 Svea Payments Sandbox mode = Off

To Reproduce

  1. Add some product to cart
  2. Go to cart page
  3. Continue to checkout

Expected behavior Exception doesn’t break the store

Actual result

Exception #0 (Exception): Deprecated Functionality: Exception::__construct(): Passing null to parameter #2 ($code) of type int is deprecated in /var/www/html/app/code/Svea/Maksuturva/Model/Gateway/Exception.php on line 12. Exception was thrown and broke the checkout page.

Not sure if this is related error but this was logged to svea-payment-module.log at the same time: 2023-11-28T06:17:03+00:00 ERR (3): "Failed to communicate with Svea Payments API. Please check the network connection and settings. URL: GetPaymentMethods.pmt ERROR MESSAGE: Could not resolve host: GetPaymentMethods.pmt"

Svea-Maintainer commented 9 months ago

There are multiple deprecated functionality issues in this module, and we will check those soon...

But original error in this case seems to be related to the webstore payment module configuration parameters.

Hope this helps