| @@ 146-152 (lines=7) @@ | ||
| 143 | $this->setCom($orderDescription); |
|
| 144 | } |
|
| 145 | ||
| 146 | public function setCom($com) |
|
| 147 | { |
|
| 148 | if (strlen($com) > 100) { |
|
| 149 | throw new InvalidArgumentException("Order description cannot be longer than 100 characters"); |
|
| 150 | } |
|
| 151 | $this->parameters['com'] = $com; |
|
| 152 | } |
|
| 153 | ||
| 154 | /** |
|
| 155 | * Set amount in cents, eg EUR 12.34 is written as 1234 |
|
| @@ 95-101 (lines=7) @@ | ||
| 92 | $this->ogoneUri = $ogoneUri; |
|
| 93 | } |
|
| 94 | ||
| 95 | public function setPspid($pspid) |
|
| 96 | { |
|
| 97 | if (strlen($pspid) > 30) { |
|
| 98 | throw new InvalidArgumentException("PSPId is too long"); |
|
| 99 | } |
|
| 100 | $this->parameters['pspid'] = $pspid; |
|
| 101 | } |
|
| 102 | ||
| 103 | public function setSecure() |
|
| 104 | { |
|