Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * 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);
 }