|
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_Core to newer |
|
12
|
|
|
* versions in the future. If you wish to customize Payone_Core for your |
|
13
|
|
|
* needs please refer to http://www.payone.de for more information. |
|
14
|
|
|
* |
|
15
|
|
|
* @category Payone |
|
16
|
|
|
* @package Payone_Core_Block |
|
17
|
|
|
* @subpackage Mastercard_Masterpass |
|
18
|
|
|
* @copyright Copyright (c) 2018 <[email protected]> - www.fatchip.de |
|
19
|
|
|
* @author FATCHIP GmbH <[email protected]> |
|
20
|
|
|
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) |
|
21
|
|
|
* @link http://www.fatchip.de |
|
22
|
|
|
*/ |
|
23
|
|
|
|
|
24
|
|
|
class Payone_Api_Request_MasterpassSetCheckout |
|
|
|
|
|
|
25
|
|
|
extends Payone_Api_Request_Genericpayment |
|
|
|
|
|
|
26
|
|
|
{ |
|
27
|
|
|
/** @var string */ |
|
28
|
|
|
protected $wallettype = null; |
|
29
|
|
|
/** @var string */ |
|
30
|
|
|
protected $backurl = null; |
|
31
|
|
|
/** @var string */ |
|
32
|
|
|
protected $errorurl = null; |
|
33
|
|
|
/** @var string */ |
|
34
|
|
|
protected $successurl = null; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* @param array $data |
|
38
|
|
|
*/ |
|
39
|
|
|
public function __construct(array $data = array()) |
|
40
|
|
|
{ |
|
41
|
|
|
$this->request = Payone_Api_Enum_RequestType::GENERICPAYMENT; |
|
42
|
|
|
parent::__construct($data); |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
/** |
|
46
|
|
|
* @return string |
|
47
|
|
|
*/ |
|
48
|
|
|
public function getWallettype() |
|
49
|
|
|
{ |
|
50
|
|
|
return $this->wallettype; |
|
51
|
|
|
} |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* @param string $wallettype |
|
55
|
|
|
*/ |
|
56
|
|
|
public function setWallettype($wallettype) |
|
57
|
|
|
{ |
|
58
|
|
|
$this->wallettype = $wallettype; |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
/** |
|
62
|
|
|
* @return string |
|
63
|
|
|
*/ |
|
64
|
|
|
public function getBackurl() |
|
65
|
|
|
{ |
|
66
|
|
|
return $this->backurl; |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* @param string $backurl |
|
71
|
|
|
*/ |
|
72
|
|
|
public function setBackurl($backurl) |
|
73
|
|
|
{ |
|
74
|
|
|
$this->backurl = $backurl; |
|
75
|
|
|
} |
|
76
|
|
|
|
|
77
|
|
|
/** |
|
78
|
|
|
* @return string |
|
79
|
|
|
*/ |
|
80
|
|
|
public function getErrorurl() |
|
81
|
|
|
{ |
|
82
|
|
|
return $this->errorurl; |
|
83
|
|
|
} |
|
84
|
|
|
|
|
85
|
|
|
/** |
|
86
|
|
|
* @param string $errorurl |
|
87
|
|
|
*/ |
|
88
|
|
|
public function setErrorurl($errorurl) |
|
89
|
|
|
{ |
|
90
|
|
|
$this->errorurl = $errorurl; |
|
91
|
|
|
} |
|
92
|
|
|
|
|
93
|
|
|
/** |
|
94
|
|
|
* @return string |
|
95
|
|
|
*/ |
|
96
|
|
|
public function getSuccessurl() |
|
97
|
|
|
{ |
|
98
|
|
|
return $this->successurl; |
|
99
|
|
|
} |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* @param string $successurl |
|
103
|
|
|
*/ |
|
104
|
|
|
public function setSuccessurl($successurl) |
|
105
|
|
|
{ |
|
106
|
|
|
$this->successurl = $successurl; |
|
107
|
|
|
} |
|
108
|
|
|
} |
|
109
|
|
|
|
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.