Beispiel #1
0
 public static function findByIdUsingCredentials($credentials, $id)
 {
     $conn = new ChargeIO_Connection($credentials);
     $response = $conn->get('/cards/' . $id);
     return new ChargeIO_Card($response, $conn);
 }
Beispiel #2
0
 public static function allHoldsUsingCredentials($credentials, $params = array())
 {
     $conn = new ChargeIO_Connection($credentials);
     $response = $conn->get('/charges/holds', $params);
     return new ChargeIO_TransactionList($response, $conn);
 }
 public static function findByIdUsingCredentials($credentials, $id)
 {
     $conn = new ChargeIO_Connection($credentials);
     $response = $conn->get('/transactions/' . $id);
     return self::parse($response, $conn);
 }
Beispiel #4
0
 public static function findCurrentUsingCredentials($credentials)
 {
     $conn = new ChargeIO_Connection($credentials);
     $response = $conn->get('/merchant');
     return new ChargeIO_Merchant($response, $conn);
 }