Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Processor.php
Go to the documentation of this file.
1 <?php
7 
16 
20 class Processor
21 {
26 
30  protected $captureOperation;
31 
35  protected $orderOperation;
36 
41 
50  public function __construct(
53  OrderOperation $orderOperation,
55  ) {
56  $this->authorizeOperation = $authorizeOperation;
57  $this->captureOperation = $captureOperation;
58  $this->orderOperation = $orderOperation;
60  }
61 
70  public function authorize(OrderPaymentInterface $payment, $isOnline, $amount)
71  {
72  return $this->authorizeOperation->authorize($payment, $isOnline, $amount);
73  }
74 
84  {
85  return $this->captureOperation->capture($payment, $invoice);
86  }
87 
96  {
97  return $this->orderOperation->order($payment, $amount);
98  }
99 
110  $amount,
111  $skipFraudDetection = false
112  ) {
113  return $this->registerCaptureNotification->registerCaptureNotification($payment, $amount, $skipFraudDetection);
114  }
115 }
capture(OrderPaymentInterface $payment, $invoice)
Definition: Processor.php:83
$amount
Definition: order.php:14
$payment
Definition: order.php:17
order(OrderPaymentInterface $payment, $amount)
Definition: Processor.php:95
$invoice
__construct(AuthorizeOperation $authorizeOperation, CaptureOperation $captureOperation, OrderOperation $orderOperation, RegisterCaptureNotificationOperation $registerCaptureNotification)
Definition: Processor.php:50
registerCaptureNotification(OrderPaymentInterface $payment, $amount, $skipFraudDetection=false)
Definition: Processor.php:108
authorize(OrderPaymentInterface $payment, $isOnline, $amount)
Definition: Processor.php:70