Skip to content

Commit

Permalink
Merge pull request #43 from Rapid0o/patch-1
Browse files Browse the repository at this point in the history
Voucher balance check pincode
  • Loading branch information
Andy Pieters authored Feb 9, 2018
2 parents b498d55 + a1b9520 commit 67f0659
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Voucher.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ public static function balance(array $options = array())
if(isset($options['cardNumber'])){
$api->setCardNumber($options['cardNumber']);
}
if(isset($options['pincode'])){
$api->setPincode($options['pincode']);
}
$result = $api->doRequest();

return $result['balance'] / 100;
Expand Down Expand Up @@ -88,4 +91,4 @@ public static function activate(array $options = array()){
return $result['request']['result'] == 1;
}

}
}

0 comments on commit 67f0659

Please sign in to comment.