Closed
Description
Preconditions
Magento2 2.2 dev branch
Steps to reproduce
- Setup authorizenet
- Setup a plugin that uses declineOrder method of the Directpost model
- Checkout with authorizenet
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
- void method is not part of the interface \Magento\Sales\Api\Data\OrderPaymentInterface
- void method is not called with any arguments in declineOrder method of Directpost Model