-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Argument 1 passed to Magento\Sales\Model\Order\Payment must be an instance of Magento\Framework\DataObject, none given #16184
Comments
@Jakhotiya other methods like capture(), authorize(), refund() are not in the interface as well, so this is either deliberate or just not done yet. The actual problem should now be fixed in the PR above. |
Thanks @xpoback . But I'm wondering why you passed response object to void method? More importantly how did you figure out that you have to pass response received by payment gateway. |
Hi @Jakhotiya. Thank you for your report. The fix will be available with the upcoming 2.2.6 release. |
[Forwardport] magento#16184: Fix type error in payment void method
Hi @Jakhotiya. Thank you for your report. The fix will be available with the upcoming 2.1.15 release. |
Hi @Jakhotiya. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
magento2/app/code/Magento/Authorizenet/Model/Directpost.php
Line 820 in cc85cbe
Preconditions
Magento2 2.2 dev branch
Steps to reproduce
Expected result
Order is declined
Actual result
Uncaught TypeError: Argument 1 passed to Magento\Sales\Model\Order\Payment\Interceptor::void() must be an instance of Magento\Framework\DataObject, none given.
Some points to note are
The text was updated successfully, but these errors were encountered: