Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * 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);
 }