1 | <?php |
||
17 | abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest |
||
18 | { |
||
19 | protected $zeroAmountAllowed = false; |
||
20 | |||
21 | protected $mainEndpoint = 'https://www.paypal.com/cgi-bin/webscr'; |
||
22 | protected $testEndpoint = 'https://www.sandbox.paypal.com/cgi-bin/webscr'; |
||
23 | |||
24 | 2 | public function getEndpoint() |
|
28 | |||
29 | /** |
||
30 | * Get the merchant purse. |
||
31 | * |
||
32 | * @return string merchant purse - email associated with the merchant account. |
||
33 | */ |
||
34 | 6 | public function getPurse() |
|
38 | |||
39 | /** |
||
40 | * Set the purse. |
||
41 | * |
||
42 | * @param string $value merchant purse - email associated with the merchant account. |
||
43 | * @return self |
||
44 | */ |
||
45 | 14 | public function setPurse($value) |
|
49 | |||
50 | /** |
||
51 | * Get the merchant secret. Actually not used. |
||
52 | * |
||
53 | * @return string merchant secret |
||
54 | */ |
||
55 | 1 | public function getSecret() |
|
59 | |||
60 | /** |
||
61 | * Set the merchant secret. Actually not used. |
||
62 | * |
||
63 | * @param string $value merchant secret |
||
64 | * @return self |
||
65 | */ |
||
66 | 14 | public function setSecret($value) |
|
70 | |||
71 | /** |
||
72 | * Get the sum excluding fee. |
||
73 | * |
||
74 | * @return string sum excluding fee |
||
75 | */ |
||
76 | 3 | public function getSum() |
|
80 | |||
81 | /** |
||
82 | * Set the sum excluding fee. |
||
83 | * |
||
84 | * @param string $value sum excluding fee |
||
85 | * @return self |
||
86 | */ |
||
87 | 2 | public function setSum($value) |
|
91 | } |
||
92 |