7 declare(strict_types=1);
11 use Symfony\Component\Console\Input\InputInterface;
12 use Symfony\Component\Console\Output\OutputInterface;
13 use Symfony\Component\Console\Command\Command;
23 const NAME =
'encryption:payment-data:update';
28 private $paymentResource;
36 $this->paymentResource = $paymentResource;
37 parent::__construct();
45 $this->setName(self::NAME)
47 'Re-encrypts encrypted credit card data with latest encryption cipher.' 58 $this->paymentResource->reEncryptCreditCardNumbers();
59 }
catch (\Exception $e) {
60 $output->writeln(
'<error>' . $e->getMessage() .
'</error>');
execute(InputInterface $input, OutputInterface $output)
__construct(\Magento\Sales\Model\ResourceModel\Order\Payment\EncryptionUpdate $paymentResource)