|
@@ 317-328 (lines=12) @@
|
| 314 |
|
/** |
| 315 |
|
* @inheritdoc |
| 316 |
|
*/ |
| 317 |
|
public function beforeRequest(RequestEvent $event) |
| 318 |
|
{ |
| 319 |
|
if ($event->command === self::RC_PURCHASE_PRO) { |
| 320 |
|
$this->trigger(self::EVENT_BEFORE_PURCHASE_PRO, $event); |
| 321 |
|
} elseif ($event->command === self::RC_GET_MERCHANT_DATA) { |
| 322 |
|
$this->trigger(self::EVENT_BEFORE_GET_MERCHANT_DATA, $event); |
| 323 |
|
} elseif ($event->command === self::RC_VERIFY_IPN) { |
| 324 |
|
$this->trigger(self::EVENT_BEFORE_VERIFY_IPN, $event); |
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
parent::beforeRequest($event); |
| 328 |
|
} |
| 329 |
|
|
| 330 |
|
/** |
| 331 |
|
* @inheritdoc |
|
@@ 333-344 (lines=12) @@
|
| 330 |
|
/** |
| 331 |
|
* @inheritdoc |
| 332 |
|
*/ |
| 333 |
|
public function afterRequest(RequestEvent $event) |
| 334 |
|
{ |
| 335 |
|
if ($event->command === self::RC_PURCHASE_PRO) { |
| 336 |
|
$this->trigger(self::EVENT_AFTER_PURCHASE_PRO, $event); |
| 337 |
|
} elseif ($event->command === self::RC_GET_MERCHANT_DATA) { |
| 338 |
|
$this->trigger(self::EVENT_AFTER_GET_MERCHANT_DATA, $event); |
| 339 |
|
} elseif ($event->command === self::RC_VERIFY_IPN) { |
| 340 |
|
$this->trigger(self::EVENT_AFTER_VERIFY_IPN, $event); |
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
parent::afterRequest($event); |
| 344 |
|
} |
| 345 |
|
|
| 346 |
|
/** |
| 347 |
|
* @inheritdoc |