Mage_AmazonPayments_Model_Observer Class Reference

List of all members.

Public Member Functions

 confirmShipment (Varien_Event_Observer $observer)
 salesOrderShipmentTrackSaveAfter (Varien_Event_Observer $observer)


Detailed Description

Definition at line 34 of file Observer.php.


Member Function Documentation

confirmShipment ( Varien_Event_Observer observer  ) 

Definition at line 36 of file Observer.php.

00037     {
00038         $shipment = $observer->getEvent()->getShipment();
00039         if ($shipment->getOrder()->getPayment()->getMethod() != 'amazonpayments_cba') {
00040             return;
00041         }
00042 
00043         Mage::getModel('amazonpayments/api_cba')
00044             ->confirmShipment($shipment);
00045     }

salesOrderShipmentTrackSaveAfter ( Varien_Event_Observer observer  ) 

Definition at line 47 of file Observer.php.

00048     {
00049         $track = $observer->getEvent()->getTrack();
00050         $order = $track->getShipment()->getOrder();
00051         /* @var $order Mage_Sales_Model_Order */
00052         if ($order->getPayment()->getMethod() != 'amazonpayments_cba') {
00053             return;
00054         }
00055         Mage::getModel('amazonpayments/api_cba')
00056             ->sendTrackingNumber($order, $track);
00057     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:31 2009 for Magento by  doxygen 1.5.8