/** * @param Context $context * @param Session $customerSession * @param JsonFactory $jsonFactory * @param Validator $fkValidator * @param PaymentTokenRepositoryProxy $tokenRepository * @param PaymentTokenManagement $paymentTokenManagement */ public function __construct(Context $context, Session $customerSession, JsonFactory $jsonFactory, Validator $fkValidator, PaymentTokenRepositoryProxy $tokenRepository, PaymentTokenManagement $paymentTokenManagement) { parent::__construct($context, $customerSession); $this->jsonFactory = $jsonFactory; $this->fkValidator = $fkValidator; $this->tokenRepository = $tokenRepository; $this->paymentTokenManagement = $paymentTokenManagement; $this->errorsMap = [self::WRONG_TOKEN => __('No token found.'), self::WRONG_REQUEST => __('Wrong request.'), self::ACTION_EXCEPTION => __('Deletion failure. Please try again.')]; }
/** * @param Context $context * @param Session $customerSession * @param PageFactory $pageFactory */ public function __construct(Context $context, Session $customerSession, PageFactory $pageFactory) { parent::__construct($context, $customerSession); $this->pageFactory = $pageFactory; }