public function retrieve($id, $params = null, $opts = null) { list($url, $params) = $this->extractPathAndUpdateParams($params); $id = Util\Util::utf8($id); $extn = urlencode($id); list($response, $opts) = $this->_request('get', "{$url}/{$extn}", $params, $opts); return Util\Util::convertToPayjpObject($response, $opts); }
protected static function _create($params = null, $options = null) { self::_validateParams($params); $base = static::baseUrl(); $url = static::classUrl(); list($response, $opts) = static::_staticRequest('post', $url, $params, $options); return Util\Util::convertToPayjpObject($response, $opts); }