|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* |
|
4
|
|
|
* NOTICE OF LICENSE |
|
5
|
|
|
* |
|
6
|
|
|
* This source file is subject to the GNU General Public License (GPL 3) |
|
7
|
|
|
* that is bundled with this package in the file LICENSE.txt |
|
8
|
|
|
* |
|
9
|
|
|
* DISCLAIMER |
|
10
|
|
|
* |
|
11
|
|
|
* Do not edit or add to this file if you wish to upgrade Payone to newer |
|
12
|
|
|
* versions in the future. If you wish to customize Payone for your |
|
13
|
|
|
* needs please refer to http://www.payone.de for more information. |
|
14
|
|
|
* |
|
15
|
|
|
* @category Payone |
|
16
|
|
|
* @package Payone_Settings |
|
17
|
|
|
* @subpackage Data |
|
18
|
|
|
* @copyright Copyright (c) 2012 <[email protected]> - www.noovias.com |
|
19
|
|
|
* @author Matthias Walter <[email protected]> |
|
20
|
|
|
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) |
|
21
|
|
|
* @link http://www.noovias.com |
|
22
|
|
|
*/ |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* |
|
26
|
|
|
* @category Payone |
|
27
|
|
|
* @package Payone_Settings |
|
28
|
|
|
* @subpackage Data |
|
29
|
|
|
* @copyright Copyright (c) 2012 <[email protected]> - www.noovias.com |
|
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
|
|
|
|
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.