Overview

Namespaces

  • mcfedr
    • Paypal
      • Exceptions
      • Notifications
      • Products
  • PHP

Exceptions

  • ACKException
  • CurlException
  • Exception
  • MasspayException
  • NotificationBusinessInvalidException
  • NotificationCurrencyInvalidException
  • NotificationInvalidException
  • NotificationVerificationException
  • RefundException
  • UnsupportedRefundException
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace mcfedr\Paypal\Exceptions;
 4: 
 5: /**
 6:  * The notification currency doesnt match the expected currency
 7:  */
 8: class NotificationCurrencyInvalidException extends NotificationInvalidException {
 9: 
10:     /**
11:      * 
12:      * @param \mcfedr\Paypal\Notifications\Notification $notification
13:      * @param string $has notification currency
14:      * @param string $expected expected currency
15:      */
16:     public function __construct($notification, $has, $expected) {
17:         $this->notification = $notification;
18:         parent::__construct("Invalid Currency, expected $expected but has $has");
19:     }
20: 
21: }
22: 
Paypal API documentation generated by ApiGen 2.8.0