6 declare(strict_types=1);
47 $this->express = $express;
73 $message =
__(
'Are you sure you want to authorize full order amount?');
78 'label' =>
__(
'Authorize'),
79 'class' =>
'authorize',
80 'onclick' =>
"confirmSetLocation('{$message}', '{$this->getPaymentAuthorizationUrl()}')",
91 private function getPaymentAuthorizationUrl(): string
93 return $this->
getUrl(
'paypal/express/authorization');
110 $state =
$order->getState();
115 return $this->express->isOrderAuthorizationAllowed(
$order->getPayment());
__construct(Context $context, Registry $registry, Config $salesConfig, Reorder $reorderHelper, Express $express, array $data=[])
_isAllowedAction($resourceId)
canAuthorize(Order $order)
getUrl($params='', $params2=[])