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: class MasspayNotification extends Notification {
 6: 
 7:     public function __construct($vars, $i) {
 8:         parent::__construct($vars);
 9:         $this->type = static::MASSPAY;
10: 
11:         if (isset($vars["masspay_txn_id_$i"])) {
12:             $this->transactionId = $vars["masspay_txn_id_$i"];
13:         }
14: 
15:         if (isset($vars["unique_id_$i"])) {
16:             $this->invoiceId = $vars["unique_id_$i"];
17:         }
18: 
19:         if (isset($vars["mc_gross_$i"])) {
20:             $this->total = $vars["mc_gross_$i"];
21:             $this->amount = $this->total;
22:         }
23: 
24:         if (isset($vars["mc_fee_$i"])) {
25:             $this->fee = $vars["mc_fee_$i"];
26:         }
27: 
28:         if (isset($vars["status_$i"])) {
29:             $this->status = $vars["status_$i"];
30:         }
31: 
32:         if (isset($vars["mc_currency_$i"])) {
33:             $this->currency = $vars["mc_currency_$i"];
34:         }
35: 
36:         if (isset($vars['payer_email'])) {
37:             $this->business = $vars['payer_email'];
38:         }
39:     }
40: 
41: }
42: 
Paypal API documentation generated by ApiGen 2.8.0