Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Deprecated Functionality error #63

Open
nukka opened this issue Nov 28, 2023 · 1 comment
Open

Deprecated Functionality error #63

nukka opened this issue Nov 28, 2023 · 1 comment

Comments

@nukka
Copy link

nukka commented Nov 28, 2023

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
Copy link
Contributor

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.

  • Svea Payments Configuration / Sandbox Mode: No
  • Svea Payments Configuration / Production Endpoint API URL: https://test1.maksuturva.fi/
  • Svea Payments Configuration / Seller ID & Secret Key: (your matching test credentials)

Hope this helps

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants