@@ -377,7 +377,7 @@ protected function processAction($action, \Magento\Sales\Model\Order $order)
377
377
$ this ->_order ($ baseTotalDue );
378
378
break ;
379
379
case \Magento \Payment \Model \Method \AbstractMethod::ACTION_AUTHORIZE :
380
- $ this ->_authorize (true , $ baseTotalDue );
380
+ $ this ->authorize (true , $ baseTotalDue );
381
381
// base amount will be set inside
382
382
$ this ->setAmountAuthorized ($ totalDue );
383
383
break ;
@@ -571,7 +571,7 @@ public function registerCaptureNotification($amount, $skipFraudDetection = false
571
571
*/
572
572
public function registerAuthorizationNotification ($ amount )
573
573
{
574
- return $ this ->_isTransactionExists () ? $ this : $ this ->_authorize (false , $ amount );
574
+ return $ this ->_isTransactionExists () ? $ this : $ this ->authorize (false , $ amount );
575
575
}
576
576
577
577
/**
@@ -1125,9 +1125,10 @@ protected function _order($amount)
1125
1125
*
1126
1126
* @param bool $isOnline
1127
1127
* @param float $amount
1128
+ *
1128
1129
* @return $this
1129
1130
*/
1130
- protected function _authorize ($ isOnline , $ amount )
1131
+ public function authorize ($ isOnline , $ amount )
1131
1132
{
1132
1133
// check for authorization amount to be equal to grand total
1133
1134
$ this ->setShouldCloseParentTransaction (false );
@@ -1181,18 +1182,6 @@ protected function _authorize($isOnline, $amount)
1181
1182
return $ this ;
1182
1183
}
1183
1184
1184
- /**
1185
- * Public access to _authorize method
1186
- *
1187
- * @param bool $isOnline
1188
- * @param float $amount
1189
- * @return $this
1190
- */
1191
- public function authorize ($ isOnline , $ amount )
1192
- {
1193
- return $ this ->_authorize ($ isOnline , $ amount );
1194
- }
1195
-
1196
1185
/**
1197
1186
* Void payment either online or offline (process void notification)
1198
1187
* NOTE: that in some cases authorization can be voided after a capture. In such case it makes sense to use
0 commit comments