30 \
Magento\Payment\Model\Config $paymentConfig,
33 parent::__construct($context,
$data);
34 $this->_paymentConfig = $paymentConfig;
44 $types = $this->_paymentConfig->getCcTypes();
59 return (
int)$this->
getInfo()->getCcExpMonth() || (int)$this->
getInfo()->getCcExpYear();
69 $month = $this->
getInfo()->getCcExpMonth();
71 $month =
'0' . $month;
83 $date = new \DateTime(
'now',
new \DateTimeZone($this->_localeDate->getConfigTimezone()));
96 if (
null !== $this->_paymentSpecificInformation) {
99 $transport = parent::_prepareSpecificInformation($transport);
104 if ($this->
getInfo()->getCcLast4()) {
105 $data[(string)
__(
'Credit Card Number')] = sprintf(
'xxxx-%s', $this->
getInfo()->getCcLast4());
109 if ($ccSsIssue = $this->
getInfo()->getCcSsIssue()) {
110 $data[(string)
__(
'Switch/Solo/Maestro Issue Number')] = $ccSsIssue;
112 $year = $this->
getInfo()->getCcSsStartYear();
113 $month = $this->
getInfo()->getCcSsStartMonth();
114 if ($year && $month) {
118 return $transport->setData(array_merge(
$data, $transport->getData()));
130 return sprintf(
'%s/%s', sprintf(
'%02d', $month), $year);
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Payment\Model\Config $paymentConfig, array $data=[])
$_paymentSpecificInformation
_prepareSpecificInformation($transport=null)
_formatCardDate($year, $month)