38 PaymentHelper $paymentHelper,
39 array $methodCodes = []
42 foreach ($methodCodes as
$code) {
43 $this->methods[
$code] = $paymentHelper->getMethodInstance(
$code);
79 return $this->ccConfig->getSsStartYears();
89 return $this->ccConfig->getCcMonths();
99 return $this->ccConfig->getCcYears();
109 return $this->ccConfig->getCvvImageUrl();
120 $types = $this->ccConfig->getCcAvailableTypes();
121 $availableTypes = $this->methods[
$methodCode]->getConfigData(
'cctypes');
122 if ($availableTypes) {
123 $availableTypes = explode(
',', $availableTypes);
124 foreach (array_keys($types) as
$code) {
125 if (!in_array(
$code, $availableTypes)) {
126 unset($types[
$code]);
141 $result = $this->ccConfig->hasVerification();
159 $availableTypes = explode(
',', $this->methods[
$methodCode]->getConfigData(
'cctypes'));
160 $ssPresentations = array_intersect([
'SS',
'SM',
'SO'], $availableTypes);
161 if ($availableTypes && count($ssPresentations) > 0) {
__construct(CcConfig $ccConfig, PaymentHelper $paymentHelper, array $methodCodes=[])
hasVerification($methodCode)
hasSsCardType($methodCode)
getCcAvailableTypes($methodCode)