File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -40,21 +40,20 @@ Kode yang disediakan ada beberapa yaitu tanda tangan digital invisible, verifika
40
40
41
41
- Tanda tangan digital invisible
42
42
``` php
43
- $esign = new ESignBSrE($baseUrl, $username, $password);
43
+ $esign = new DiskominfotikBandaAceh\ESignBsrePhp\ ESignBSrE($baseUrl, $username, $password);
44
44
$response = $esign->setFile($file, $filename)->sign($nik, $passphrase);
45
+ $response->getStatus(); //Get status response (int)
46
+ $response->getErrors(); //Get error response
47
+ $response->getData(); //Get data as blob pdf
45
48
```
46
49
47
50
- Verifikasi tanda tangan digital
48
51
``` php
49
- $esign = new ESignBSrE();
52
+ $esign = new DiskominfotikBandaAceh\ESignBsrePhp\ ESignBSrE($baseUrl, $username, $password );
50
53
$response = $esign->setFile($file, $filename)->verification();
51
- ```
52
-
53
- ### Mengambil Response
54
- ``` php
55
- $status = $response->getStatus();
56
- $data = $response->getData();
57
- $errors = $response->getErrors();
54
+ $response->getStatus(); //Get status response (int)
55
+ $response->getErrors(); //Get error response
56
+ $response->getData(); //Get data as array (tergantung dari API BSrE)
58
57
```
59
58
60
59
<!-- ### Testing
You can’t perform that action at this time.
0 commit comments