diff --git a/src/Voucher.php b/src/Voucher.php index df047539..989744d8 100644 --- a/src/Voucher.php +++ b/src/Voucher.php @@ -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; @@ -88,4 +91,4 @@ public static function activate(array $options = array()){ return $result['request']['result'] == 1; } -} \ No newline at end of file +}