forked from iak-id/iak-api-php
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
Latest commit
21 lines (14 loc) · 363 Bytes
/
Copy pathindex.php
File metadata and controls
21 lines (14 loc) · 363 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
require'vendor/autoload.php';
// import IAKPrepaid Class
useIakID\IakApiPHP\IAK;
$iak = newIAK([
'userHp' => 'your-username',
'apiKey' => 'your-api-key-depending-on-stage',
'stage' => 'sandbox-or-production'
]);
$postpaid = $iak->PostPaid();
$prepaid = $iak->PrePaid();
echo'<pre>';
var_dump($prepaid->checkBalance());
echo'</pre>';