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