1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* MIT License |
5
|
|
|
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. |
6
|
|
|
*/ |
7
|
|
|
|
8
|
|
|
namespace SprykerEco\Zed\Payone\Business\Api\Request\Container; |
9
|
|
|
|
10
|
|
|
use SprykerEco\Shared\Payone\PayoneApiConstants; |
11
|
|
|
|
12
|
|
|
class ThreeDSecureCheckContainer extends AbstractRequestContainer |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* @var string |
16
|
|
|
*/ |
17
|
|
|
protected $request = PayoneApiConstants::REQUEST_TYPE_3DSECURE_CHECK; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @var int |
21
|
|
|
*/ |
22
|
|
|
protected $aid; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var int |
26
|
|
|
*/ |
27
|
|
|
protected $amount; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var string |
31
|
|
|
*/ |
32
|
|
|
protected $currency; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var string |
36
|
|
|
*/ |
37
|
|
|
protected $clearingtype; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string |
41
|
|
|
*/ |
42
|
|
|
protected $exiturl; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var string |
46
|
|
|
*/ |
47
|
|
|
protected $cardpan; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var string |
51
|
|
|
*/ |
52
|
|
|
protected $cardtype; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var string |
56
|
|
|
*/ |
57
|
|
|
protected $cardexpiredate; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var int |
61
|
|
|
*/ |
62
|
|
|
protected $cardcvc2; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var string |
66
|
|
|
*/ |
67
|
|
|
protected $storecarddata; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var string |
71
|
|
|
*/ |
72
|
|
|
protected $language; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @param int $amount |
76
|
|
|
* |
77
|
|
|
* @return void |
78
|
|
|
*/ |
79
|
|
|
public function setAmount($amount) |
80
|
|
|
{ |
81
|
|
|
$this->amount = $amount; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @return int |
86
|
|
|
*/ |
87
|
|
|
public function getAmount() |
88
|
|
|
{ |
89
|
|
|
return $this->amount; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @param int $cardcvc2 |
94
|
|
|
* |
95
|
|
|
* @return void |
96
|
|
|
*/ |
97
|
|
|
public function setCardCvc2($cardcvc2) |
98
|
|
|
{ |
99
|
|
|
$this->cardcvc2 = $cardcvc2; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @return int |
104
|
|
|
*/ |
105
|
|
|
public function getCardCvc2() |
106
|
|
|
{ |
107
|
|
|
return $this->cardcvc2; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @param string $cardexpiredate |
112
|
|
|
* |
113
|
|
|
* @return void |
114
|
|
|
*/ |
115
|
|
|
public function setCardExpireDate($cardexpiredate) |
116
|
|
|
{ |
117
|
|
|
$this->cardexpiredate = $cardexpiredate; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @return string |
122
|
|
|
*/ |
123
|
|
|
public function getCardExpireDate() |
124
|
|
|
{ |
125
|
|
|
return $this->cardexpiredate; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @param string $cardpan |
130
|
|
|
* |
131
|
|
|
* @return void |
132
|
|
|
*/ |
133
|
|
|
public function setCardPan($cardpan) |
134
|
|
|
{ |
135
|
|
|
$this->cardpan = $cardpan; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @return string |
140
|
|
|
*/ |
141
|
|
|
public function getCardPan() |
142
|
|
|
{ |
143
|
|
|
return $this->cardpan; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param string $cardtype |
148
|
|
|
* |
149
|
|
|
* @return void |
150
|
|
|
*/ |
151
|
|
|
public function setCardType($cardtype) |
152
|
|
|
{ |
153
|
|
|
$this->cardtype = $cardtype; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* @return string |
158
|
|
|
*/ |
159
|
|
|
public function getCardType() |
160
|
|
|
{ |
161
|
|
|
return $this->cardtype; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
/** |
165
|
|
|
* @param string $clearingtype |
166
|
|
|
* |
167
|
|
|
* @return void |
168
|
|
|
*/ |
169
|
|
|
public function setClearingType($clearingtype) |
170
|
|
|
{ |
171
|
|
|
$this->clearingtype = $clearingtype; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* @return string |
176
|
|
|
*/ |
177
|
|
|
public function getClearingType() |
178
|
|
|
{ |
179
|
|
|
return $this->clearingtype; |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
/** |
183
|
|
|
* @param string $currency |
184
|
|
|
* |
185
|
|
|
* @return void |
186
|
|
|
*/ |
187
|
|
|
public function setCurrency($currency) |
188
|
|
|
{ |
189
|
|
|
$this->currency = $currency; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* @return string |
194
|
|
|
*/ |
195
|
|
|
public function getCurrency() |
196
|
|
|
{ |
197
|
|
|
return $this->currency; |
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* @param string $exiturl |
202
|
|
|
* |
203
|
|
|
* @return void |
204
|
|
|
*/ |
205
|
|
|
public function setExitUrl($exiturl) |
206
|
|
|
{ |
207
|
|
|
$this->exiturl = $exiturl; |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* @return string |
212
|
|
|
*/ |
213
|
|
|
public function getExitUrl() |
214
|
|
|
{ |
215
|
|
|
return $this->exiturl; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* @param string $storecarddata |
220
|
|
|
* |
221
|
|
|
* @return void |
222
|
|
|
*/ |
223
|
|
|
public function setStoreCardData($storecarddata) |
224
|
|
|
{ |
225
|
|
|
$this->storecarddata = $storecarddata; |
226
|
|
|
} |
227
|
|
|
|
228
|
|
|
/** |
229
|
|
|
* @return string |
230
|
|
|
*/ |
231
|
|
|
public function getStoreCardData() |
232
|
|
|
{ |
233
|
|
|
return $this->storecarddata; |
234
|
|
|
} |
235
|
|
|
} |
236
|
|
|
|