芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/bit-alphas-ltd.com/user/project/vendor/coingate/coingate-php/lib/Merchant/Order.php
order = $order; } public function toHash() { return $this->order; } public function __get($name) { return $this->order[$name]; } public static function find($orderId, $options = array(), $authentication = array()) { try { return self::findOrFail($orderId, $options, $authentication); } catch (OrderNotFound $e) { return false; } } public static function findOrFail($orderId, $options = array(), $authentication = array()) { $order = CoinGate::request('/orders/' . $orderId, 'GET', array(), $authentication); return new self($order); } public static function create($params, $options = array(), $authentication = array()) { try { return self::createOrFail($params, $options, $authentication); } catch (OrderIsNotValid $e) { return false; } } public static function createOrFail($params, $options = array(), $authentication = array()) { $order = CoinGate::request('/orders', 'POST', $params, $authentication); return new self($order); } }