-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8739c6
commit bbc6834
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,57 @@ | |
Unofficial API cek pajak esamsat jateng | ||
|
||
 | ||
|
||
## Installation | ||
----- | ||
|
||
Require this package with composer using the following command: | ||
|
||
```bash | ||
composer require lintangtimur/cek-pajak-api | ||
``` | ||
|
||
## Example | ||
---- | ||
|
||
#### Register | ||
```php | ||
<?php | ||
use Stelin\CekPajakApi\CekPajak; | ||
|
||
$form = [ | ||
"name"=> 'lintang', | ||
'email'=> '[email protected]', | ||
'password'=>'123456' | ||
]; | ||
|
||
$reg = new CekPajak() | ||
$reg = (new CekPajak)->register($form); | ||
``` | ||
|
||
#### Login | ||
```php | ||
<?php | ||
use Stelin\CekPajakApi\CekPajak; | ||
|
||
$form = [ | ||
"name"=> 'lintang', | ||
'email'=> '[email protected]', | ||
'password'=>'123456' | ||
]; | ||
|
||
$login = new CekPajak() | ||
$login = (new CekPajak)->login($form)->accessToken; | ||
``` | ||
|
||
#### Check Pajak | ||
```php | ||
<?php | ||
use Stelin\CekPajakApi\CekPajak; | ||
|
||
$cp = new CekPajak($accessToken) | ||
$cp->cekPajak('H','1234','AA')->totalPkbPokok; | ||
|
||
//Melihat rincian akhir pajak | ||
$a->cekPajak('H','1234','AA')->rincian->masaAkhirBerlakuPajak; | ||
``` |