| @@ 33-103 (lines=71) @@ | ||
| 30 | * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) |
|
| 31 | * @link http://www.noovias.com |
|
| 32 | */ |
|
| 33 | class Payone_Settings_Data_ConfigFile_PaymentMethod_Creditcard |
|
| 34 | extends Payone_Settings_Data_ConfigFile_PaymentMethod_Abstract |
|
| 35 | implements Payone_Settings_Data_ConfigFile_Interface |
|
| 36 | { |
|
| 37 | /** @var string */ |
|
| 38 | protected $key = Payone_Enum_ClearingType::CREDITCARD; |
|
| 39 | ||
| 40 | /** @var string */ |
|
| 41 | protected $cvc2 = ''; |
|
| 42 | ||
| 43 | /** @var string */ |
|
| 44 | protected $hide_cvc = ''; |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @return string |
|
| 48 | */ |
|
| 49 | public function getClearingType() |
|
| 50 | { |
|
| 51 | return $this->key; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @return string |
|
| 56 | */ |
|
| 57 | public function getKey() |
|
| 58 | { |
|
| 59 | return $this->key; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @param string $cvc2 |
|
| 64 | */ |
|
| 65 | public function setCvc2($cvc2) |
|
| 66 | { |
|
| 67 | $this->cvc2 = $cvc2; |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * @return string |
|
| 72 | */ |
|
| 73 | public function getCvc2() |
|
| 74 | { |
|
| 75 | return $this->cvc2; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * @param $hide_cvc |
|
| 80 | */ |
|
| 81 | public function setHideCvc($hide_cvc) |
|
| 82 | { |
|
| 83 | $this->hide_cvc = $hide_cvc; |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * @return string |
|
| 88 | */ |
|
| 89 | public function getHideCvc() |
|
| 90 | { |
|
| 91 | return $this->hide_cvc; |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * @param $value |
|
| 96 | */ |
|
| 97 | public function addHideCvc($value) |
|
| 98 | { |
|
| 99 | $this->hide_cvc[] = $value; |
|
| 100 | } |
|
| 101 | ||
| 102 | ||
| 103 | } |
|
| 104 | ||
| @@ 33-99 (lines=67) @@ | ||
| 30 | * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) |
|
| 31 | * @link http://www.noovias.com |
|
| 32 | */ |
|
| 33 | class Payone_Settings_Data_ConfigFile_PaymentMethod_Financing |
|
| 34 | extends Payone_Settings_Data_ConfigFile_PaymentMethod_Abstract |
|
| 35 | implements Payone_Settings_Data_ConfigFile_Interface |
|
| 36 | { |
|
| 37 | /** @var string */ |
|
| 38 | protected $key = Payone_Enum_ClearingType::FINANCING; |
|
| 39 | ||
| 40 | /** @var string */ |
|
| 41 | protected $financingType = ''; |
|
| 42 | protected $klarna_config = array(); |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @return string |
|
| 46 | */ |
|
| 47 | public function getClearingType() |
|
| 48 | { |
|
| 49 | return $this->key; |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * @return string |
|
| 54 | */ |
|
| 55 | public function getKey() |
|
| 56 | { |
|
| 57 | return $this->key; |
|
| 58 | } |
|
| 59 | ||
| 60 | /** |
|
| 61 | * @param string $financingType |
|
| 62 | */ |
|
| 63 | public function setFinancingType($financingType) |
|
| 64 | { |
|
| 65 | $this->financingType = $financingType; |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * @return string |
|
| 70 | */ |
|
| 71 | public function getFinancingType() |
|
| 72 | { |
|
| 73 | return $this->financingType; |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * @param array $klarna_config |
|
| 78 | */ |
|
| 79 | public function setKlarnaConfig($klarna_config) |
|
| 80 | { |
|
| 81 | $this->klarna_config = $klarna_config; |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * @return array |
|
| 86 | */ |
|
| 87 | public function getKlarnaConfig() |
|
| 88 | { |
|
| 89 | return $this->klarna_config; |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * @param $value |
|
| 94 | */ |
|
| 95 | public function addKlarnaConfig($value) |
|
| 96 | { |
|
| 97 | $this->klarna_config[] = $value; |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| 101 | ||