-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Fixed in 2.1.xThe issue has been fixed in 2.1 release lineThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passed
Description
$order->getPayment()->setTransactionId(null)->setParentTransactionId($response->getXTransId())->void(); |
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
Metadata
Metadata
Assignees
Labels
Fixed in 2.1.xThe issue has been fixed in 2.1 release lineThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passed