-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSafetypayMethod.php
140 lines (119 loc) · 2.27 KB
/
SafetypayMethod.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
/*
* This file is part of the PaymentSuite package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <[email protected]>
*/
namespace PaymentSuite\SafetyPayBundle;
use PaymentSuite\PaymentCoreBundle\PaymentMethodInterface;
class SafetypayMethod implements PaymentMethodInterface
{
/**
* Get Safetypay method name
*
* @return string Payment name
*/
public function getPaymentName()
{
return 'SafetyPay';
}
/**
* @var float
*
* Safetypay amount
*/
private $amount;
/**
* @var string
*
* Safetypay reference
*/
private $reference;
/**
* @var mixed
*/
private $requestDateTime;
/**
* @var string
*
* Safetypay signature
*/
private $signature;
/**
* @param string $requestDateTime
*
* @return $this
*/
public function setRequestDateTime($requestDateTime)
{
$this->requestDateTime = $requestDateTime;
return $this;
}
/**
* @return mixed
*/
public function getRequestDateTime()
{
return $this->requestDateTime;
}
/**
* @param string $signature
*
* @return $this
*/
public function setSignature($signature)
{
$this->signature = $signature;
return $this;
}
/**
* @return string
*/
public function getSignature()
{
return $this->signature;
}
/**
* @param string $reference
*
* @return $this
*/
public function setReference($reference)
{
$this->reference = $reference;
return $this;
}
/**
* @return string
*/
public function getReference()
{
return $this->reference;
}
/**
* set amount
*
* @param float $amount Amount
*
* @return SafetypayMethod self Object
*/
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
/**
* Get amount
*
* @return float amount
*/
public function getAmount()
{
return $this->amount;
}
}