| @@ 33-74 (lines=42) @@ | ||
| 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 | /** |
|
| 44 | * @return string |
|
| 45 | */ |
|
| 46 | public function getClearingType() |
|
| 47 | { |
|
| 48 | return $this->key; |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * @return string |
|
| 53 | */ |
|
| 54 | public function getKey() |
|
| 55 | { |
|
| 56 | return $this->key; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @param string $cvc2 |
|
| 61 | */ |
|
| 62 | public function setCvc2($cvc2) |
|
| 63 | { |
|
| 64 | $this->cvc2 = $cvc2; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @return string |
|
| 69 | */ |
|
| 70 | public function getCvc2() |
|
| 71 | { |
|
| 72 | return $this->cvc2; |
|
| 73 | } |
|
| 74 | } |
|
| 75 | ||
| @@ 23-63 (lines=41) @@ | ||
| 20 | * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) |
|
| 21 | * @link http://www.fatchip.com |
|
| 22 | */ |
|
| 23 | class Payone_Settings_Data_ConfigFile_PaymentMethod_Ratepay |
|
| 24 | extends Payone_Settings_Data_ConfigFile_PaymentMethod_Abstract |
|
| 25 | implements Payone_Settings_Data_ConfigFile_Interface |
|
| 26 | { |
|
| 27 | /** @var string */ |
|
| 28 | protected $key = Payone_Enum_ClearingType::RATEPAY; |
|
| 29 | protected $ratepay_config = array(); |
|
| 30 | ||
| 31 | /** |
|
| 32 | * @return string |
|
| 33 | */ |
|
| 34 | public function getKey() |
|
| 35 | { |
|
| 36 | return $this->key; |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @param array $ratepay_config |
|
| 41 | */ |
|
| 42 | public function setRatepayConfig($ratepay_config) |
|
| 43 | { |
|
| 44 | $this->ratepay_config = $ratepay_config; |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * @return array |
|
| 49 | */ |
|
| 50 | public function getRatepayConfig() |
|
| 51 | { |
|
| 52 | return $this->ratepay_config; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * @param $value |
|
| 57 | */ |
|
| 58 | public function addRatepayConfig($value) |
|
| 59 | { |
|
| 60 | $this->ratepay_config[] = $value; |
|
| 61 | } |
|
| 62 | ||
| 63 | } |
|
| 64 | ||