Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from scottconnerly/master
Browse files Browse the repository at this point in the history
Add retrieveCharge to Charge class
  • Loading branch information
andrewek authored Sep 12, 2018
2 parents 5b01afa + c4c0796 commit c0318fb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,17 @@ public static function chargeToken($token, $amount, $options = array()){
$options["token"] = $token;
return self::chargeCard($options, $amount);
}

/*
*
* Retrieve a Charge
*
* @param $chargeID string
* @return JSON Object
*/

public static function retrieveCharge($chargeID){
$response = PaymentSpring::makeRequest("charge/".$chargeID);
return json_decode($response);
}
}

0 comments on commit c0318fb

Please sign in to comment.