@@ -372,6 +372,7 @@ public function void(\Magento\Payment\Model\InfoInterface $payment)
372
372
373
373
/**
374
374
* Refund the amount
375
+ *
375
376
* Need to decode last 4 digits for request.
376
377
*
377
378
* @param \Magento\Framework\DataObject|\Magento\Payment\Model\InfoInterface $payment
@@ -682,6 +683,7 @@ protected function matchAmount($amount)
682
683
683
684
/**
684
685
* Operate with order using information from Authorize.net.
686
+ *
685
687
* Authorize order or authorize and capture it.
686
688
*
687
689
* @param \Magento\Sales\Model\Order $order
@@ -699,6 +701,7 @@ protected function processOrder(\Magento\Sales\Model\Order $order)
699
701
//decline the order (in case of wrong response code) but don't return money to customer.
700
702
$ message = $ e ->getMessage ();
701
703
$ this ->declineOrder ($ order , $ message , false );
704
+
702
705
throw $ e ;
703
706
}
704
707
@@ -769,7 +772,7 @@ protected function processPaymentFraudStatus(\Magento\Sales\Model\Order\Payment
769
772
}
770
773
771
774
/**
772
- * Add status comment
775
+ * Add status comment to history
773
776
*
774
777
* @param \Magento\Sales\Model\Order\Payment $payment
775
778
* @return $this
@@ -824,6 +827,7 @@ protected function declineOrder(\Magento\Sales\Model\Order $order, $message = ''
824
827
->void ($ response );
825
828
}
826
829
$ order ->registerCancellation ($ message )->save ();
830
+ $ this ->_eventManager ->dispatch ('order_cancel_after ' , ['order ' => $ order ]);
827
831
} catch (\Exception $ e ) {
828
832
//quiet decline
829
833
$ this ->getPsrLogger ()->critical ($ e );
@@ -858,7 +862,7 @@ public function getConfigInterface()
858
862
* Getter for specified value according to set payment method code
859
863
*
860
864
* @param mixed $key
861
- * @param null $storeId
865
+ * @param mixed $storeId
862
866
* @return mixed
863
867
*/
864
868
public function getValue ($ key , $ storeId = null )
@@ -922,6 +926,8 @@ public function fetchTransactionInfo(\Magento\Payment\Model\InfoInterface $payme
922
926
}
923
927
924
928
/**
929
+ * Add status comment on update
930
+ *
925
931
* @param \Magento\Sales\Model\Order\Payment $payment
926
932
* @param \Magento\Framework\DataObject $response
927
933
* @param string $transactionId
@@ -996,6 +1002,8 @@ protected function getTransactionResponse($transactionId)
996
1002
}
997
1003
998
1004
/**
1005
+ * Retrieve PSR Logger if not properly loaded via DI
1006
+ *
999
1007
* @return \Psr\Log\LoggerInterface
1000
1008
*
1001
1009
* @deprecated 100.1.0
@@ -1038,7 +1046,9 @@ private function getOrderIncrementId(): string
1038
1046
}
1039
1047
1040
1048
/**
1041
- * Checks if filter action is Report Only. Transactions that trigger this filter are processed as normal,
1049
+ * Checks if filter action is Report Only.
1050
+ *
1051
+ * Transactions that trigger this filter are processed as normal,
1042
1052
* but are also reported in the Merchant Interface as triggering this filter.
1043
1053
*
1044
1054
* @param string $fdsFilterAction
0 commit comments