Overview

Namespaces

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

Classes

  • AdaptivePaymentNotification
  • CartChangeNotification
  • CartNotification
  • MasspayNotification
  • MasspayNotifications
  • Notification
  • PaymentNotification
  • SubscriptionNotification
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace mcfedr\Paypal\Notifications;
 4: 
 5: use mcfedr\Paypal\Buyer;
 6: 
 7: abstract class PaymentNotification extends Notification {
 8: 
 9:     /**
10:      * Info about buyer
11:      * @var Buyer
12:      */
13:     public $buyer;
14: 
15:     /**
16:      * Note left by buyer (if you allowed him to leave it)
17:      * @var string
18:      */
19:     public $note;
20: 
21:     /**
22:      * If $status == 'Pending' this is why
23:      * @var string
24:      */
25:     public $pendingReason;
26: 
27:     public function __construct($vars) {
28:         parent::__construct($vars);
29: 
30:         $this->buyer = new Buyer($vars);
31: 
32:         if (isset($vars['mc_currency'])) {
33:             $this->currency = $vars['mc_currency'];
34:         }
35: 
36:         if (isset($vars['mc_fee'])) {
37:             $this->fee = $vars['mc_fee'];
38:         }
39: 
40:         if (isset($vars['business'])) {
41:             $this->business = $vars['business'];
42:         }
43: 
44:         if (isset($vars['memo'])) {
45:             $this->note = $vars['memo'];
46:         }
47:     }
48: 
49: }
50: 
Paypal API documentation generated by ApiGen 2.8.0