15 use Psr\Log\LoggerInterface;
45 LoggerInterface $logger,
49 parent::__construct($context);
52 $this->command = $command;
63 $publicHash = $this->
getRequest()->getParam(
'public_hash');
65 $result = $this->command->execute(
66 [
'public_hash' => $publicHash,
'customer_id' =>
$customerId,
'store_id' => $this->session->getStoreId()]
71 $this->logger->critical($e);
72 return $this->processBadRequest(
$response);
86 $response->setData([
'message' =>
__(
'Sorry, but something went wrong')]);
__construct(Context $context, LoggerInterface $logger, SessionManagerInterface $session, GetPaymentNonceCommand $command)