wallee-payment / opencart-3.0 Goto Github PK
View Code? Open in Web Editor NEWOpenCart 3.0 wallee payment plugin
Home Page: https://www.wallee.com
License: Apache License 2.0
OpenCart 3.0 wallee payment plugin
Home Page: https://www.wallee.com
License: Apache License 2.0
Hello,
I'm writing to inquire about the future plans for supporting OpenCart Versions 4 and above. As OpenCart continues to evolve, it's crucial for developers and businesses to stay updated with the latest versions to leverage new features and improvements.
I wanted to know if there are any plans to update this plugin to be compatible with the new versions of OpenCart.
I look forward to your response.
Best regards
We are currently experiencing an issue with the wallee interface in our Opencart online store. While testing, we have noticed that multiple status updates for payments are being recorded (as seen in image walle_Error.png), resulting in the customer receiving multiple email notifications. This issue of excessive email notification results in our emails ending up in the customer's spam folder and the customer receiving multiple redundant emails.
This problem occurs with all payment methods such as Postfinance, Twint or Visa.
On closer inspection, it appears that wallee's webhook interface is making multiple identical calls indicating that the invoice has been paid multiple times. This in turn leads to multiple entries in our database, resulting in redundant email notifications. (oc_order_history)
A possible solution could be to implement a check to ensure that only unique values are recorded in the database. If the newly submitted value is different from the one already in the database, the entry should be made.
Description
We have encountered compatibility issues with the Wallee SDK used in our OpenCart shop when running on PHP 8.1 The issue arises due to the lack of proper type declarations in methods that implement the ArrayAccess interface in the Wallee SDK. Specifically, this affects the Transaction and Address classes.
Error Messages
The following error messages are observed in the system logs:
PHP Unknown: Return type of Wallee\Sdk\Model\Transaction::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /path/to/wallee-sdk/lib/Model/Transaction.php on line 2295
Similar error messages for methods offsetGet, offsetSet, and offsetUnset in both Transaction and Address classes.
Expected Behavior
The methods in the Wallee SDK that implement the ArrayAccess interface should have compatible type declarations as per the PHP 8.1 requirements.
Steps to Reproduce
Upgrade the PHP version to 8.1
Run the OpenCart shop with the Wallee SDK integrated.
Observe the error logs.
Possible Solutions
Update the Wallee SDK to ensure compatibility with PHP 8.1, including proper type declarations for methods implementing interfaces like ArrayAccess.
As a temporary fix, use the #[\ReturnTypeWillChange] attribute to suppress the type declaration compatibility warnings.
Additional Information
OpenCart Version: 3.0.3.8
Wallee SDK Version: 1.0.56
PHP Version: 8.1
We would appreciate guidance on how to resolve this issue or information about any forthcoming updates that address this compatibility concern.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.