$order_info['order_no']]); $res = AddonsCourseOrders::pay($order, $order_info['pay_type']); if ($res === false) throw new Exception(Order::getStaticError()); return true; } catch (Exception $e) { echo $e->getMessage(); $this->setStaticError($e->getMessage()); return false; } } }