/** * Get a specific subscription * * @param string $id The id of the subscription to fetch * * @return object The subscription matching the id requested */ public function subscription($id) { return GoCardless_Subscription::find_with_client($this, $id); }
/** * Get a specific subscription * * @param string $id The id of the subscription to fetch * * @return object The subscription matching the id requested */ public function subscription($id) { if (!isset($this->account_details['access_token'])) { throw new GoCardless_ClientException('Access token missing'); } return GoCardless_Subscription::find_with_client($this, $id); }