Esempio n. 1
0
 /**
  * Retrieve a Simplify_Refund object from the API
  *
  * @param     string id  the id of the Refund object to retrieve
  * @param     string publicKey Public key. If null, the value of static Simplify::$publicKey will be used
  * @param     string privateKey Private key. If null, the value of Simplify::$privateKey will be used
  * @return    Refund a Refund object
  */
 public static function findRefund($id, $publicKey = null, $privateKey = null)
 {
     $val = new Simplify_Refund();
     $val->id = $id;
     $obj = Simplify_PaymentsApi::findObject($val, $publicKey, $privateKey);
     return $obj;
 }
Esempio n. 2
0
 /**
  * Retrieve a Simplify_Refund object from the API
  *
  * @param     string id  the id of the Refund object to retrieve
  * @param     $authentication -  information used for the API call.  If no value is passed the global keys Simplify::public_key and Simplify::private_key are used.  <i>For backwards compatibility the public and private keys may be passed instead of the authentication object.</i>
  * @return    Refund a Refund object
  */
 public static function findRefund($id, $authentication = null)
 {
     $args = func_get_args();
     $authentication = Simplify_PaymentsApi::buildAuthenticationObject($authentication, $args, 2);
     $val = new Simplify_Refund();
     $val->id = $id;
     $obj = Simplify_PaymentsApi::findObject($val, $authentication);
     return $obj;
 }