-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP8.x Compatibility - Deprecated Functionality: strpos() #1224
Comments
I also resolved this issue with the patch below, please include this fix in the upcoming version.
|
Hello @samuelebau , I'm afraid I was unable to reproduce this issue on a clean 2.4.4-p4 EE instance running on PHP 8.1. The base currency was EUR and the order currency was SEK: The underlying problem seems to be that, for some reason, there is no transaction ID associated with the Payment on your order(s) that need to be refunded. There shouldn't ever be a point where an Amazon Pay order has no transaction ID set on the Payment if it's been authorized, and especially if it's been captured; are there any customizations or third party extensions that might be affecting the way the Amazon Pay module records these transaction IDs? Thanks, |
What I Expected
I expected to refund an order paid with Amazon via API requests
What happened instead
Exception: Deprecated Functionality: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/current/vendor/amzn/amazon-pay-magento-2-module/Plugin/OrderCurrencyComment.php on line 66
When I try to refund an order with different
base_currency_code
andorder_currency_code
Steps to reproduce the issue
base_currency_code
andorder_currency_code
Your setup
The text was updated successfully, but these errors were encountered: