private static function _display_payments_for_order($order_id) { $orders = Base_EssClientCommon::server()->orders_list(); if (isset($orders[$order_id])) { $o = $orders[$order_id]; $keys = array_keys($o['price']); $currency = reset($keys); $value = $o['price'][$currency]['to_pay']; $main_module = Base_BoxCommon::main_module_instance(); $store = $main_module->init_module(Base_EpesiStore::module_name()); $main_module->display_module($store, array($o['id'], $value, $currency), 'form_payment_frame'); return true; } return "No such order to perform payment."; }
public function reset() { self::$return = false; location(array()); }