Public Member Functions | |
confirmShipment (Varien_Event_Observer $observer) | |
salesOrderShipmentTrackSaveAfter (Varien_Event_Observer $observer) |
Definition at line 34 of file Observer.php.
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 }