/** * Authorize payment either online or offline (process auth notification) * Updates transactions hierarchy, if required * Prevents transaction double processing * Updates payment totals, updates order status and adds proper comments * * @param bool $isOnline * @param float $amount * * @return $this */ public function authorize($isOnline, $amount) { return $this->orderPaymentProcessor->authorize($this, $isOnline, $amount); }