public function getOrderStatusAndOrderId($tc_id) { $email = Mage::getStoreConfig('payment/totalcoin_configuration/client_email'); $apikey = Mage::getStoreConfig('payment/totalcoin_configuration/client_apikey'); $tc = new TCApi($email, $apikey); $data = $tc->get_ipn_info($tc_id); $order_detail = array(); if ($data['IsOk']) { $order_detail['order_status'] = $this->get_last_order_status_from_transaction_history($data['Response']['TransactionHistories']); $order_detail['order_id'] = $data['Response']['MerchantReference']; } return $order_detail; }