Skip to content

Commit

Permalink
Update Payment.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sfwanessam authored Apr 3, 2021
1 parent f107ecd commit aecf22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function charge($data = [],$redirect = true){
} else {
$json_response = json_decode($response);
if (isset($json_response->errors) && is_array($json_response->errors) && count($json_response->errors) > 0) {
throw new \Exception("Error : ".$json_response->errors[0]->code." ");
throw new \Exception("Error : ".$json_response->errors[0]->code."");
}
if (isset($json_response->object) && $json_response->object == "charge" && isset($json_response->transaction->url)) {
if($redirect){
Expand Down

0 comments on commit aecf22b

Please sign in to comment.