| @@ 205-215 (lines=11) @@ | ||
| 202 | * |
|
| 203 | * @return Provider31\Response\Confirm |
|
| 204 | */ |
|
| 205 | private function response_confirm() |
|
| 206 | { |
|
| 207 | Log::instance()->add(sprintf('Confirm("%s")', $this->request->PaymentId())); |
|
| 208 | ||
| 209 | $orderdate = self::$cb->confirm( |
|
| 210 | $this->request->PaymentId() |
|
| 211 | ); |
|
| 212 | ||
| 213 | // Sending a response |
|
| 214 | return new Provider31\Response\Confirm($orderdate); |
|
| 215 | } |
|
| 216 | ||
| 217 | /** |
|
| 218 | * run cancel callback and generate a response |
|
| @@ 222-232 (lines=11) @@ | ||
| 219 | * |
|
| 220 | * @return Provider31\Response\Cancel |
|
| 221 | */ |
|
| 222 | private function response_cancel() |
|
| 223 | { |
|
| 224 | Log::instance()->add(sprintf('Cancel("%s")', $this->request->PaymentId())); |
|
| 225 | ||
| 226 | $canceldate = self::$cb->cancel( |
|
| 227 | $this->request->PaymentId() |
|
| 228 | ); |
|
| 229 | ||
| 230 | // Sending a response |
|
| 231 | return new Provider31\Response\Cancel($canceldate); |
|
| 232 | } |
|
| 233 | ||
| 234 | /** |
|
| 235 | * Generates an xml with an error message |
|