-
Notifications
You must be signed in to change notification settings - Fork 172
change header and body request aproval #326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2795,7 +2795,7 @@ public function postSaveAprovalSEP() | |
| ] | ||
| ]; | ||
|
|
||
| header('Content-type: text/html'); | ||
| header('Content-type: application/x-www-form-urlencoded'); | ||
| // echo json_encode($request); | ||
| $request = json_encode($request); | ||
|
|
||
|
|
@@ -2805,12 +2805,11 @@ public function postSaveAprovalSEP() | |
| $userkey = $this->settings->get('settings.BpjsUserKey'); | ||
| $output = BpjsService::post($url, $request, $consid, $secretkey, $userkey, $tStamp); | ||
| $data = json_decode($output, true); | ||
| // echo $data; | ||
| print_r(htmlspecialchars($output, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8')); | ||
| // print_r(htmlspecialchars($output, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8')); | ||
| $code = $data['metaData']['code']; | ||
| $message = $data['metaData']['message']; | ||
|
Comment on lines
+2809
to
+2810
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Accessing
|
||
|
|
||
| if ($data && isset($data['metaData'])) { | ||
| $code = $data['metaData']['code']; | ||
| $message = $data['metaData']['message']; | ||
| $stringDecrypt = stringDecrypt($key, $data['response']); | ||
| $decompress = '""'; | ||
| if (!empty($stringDecrypt)) { | ||
|
|
@@ -2832,21 +2831,21 @@ public function postSaveAprovalSEP() | |
| ], | ||
| "response" => "ADA KESALAHAN ATAU SAMBUNGAN KE SERVER BPJS TERPUTUS."]; | ||
| } | ||
| if ($code == 200) { | ||
| if ($code == 200 or $code == 201) { | ||
| $request = [ | ||
| 'request' => [ | ||
| 't_sep' => [ | ||
| 'noKartu' => $_POST['noKartu'], | ||
| 'tglSep' => $_POST['tglSep'], | ||
| 'jnsPelayanan' => $_POST['jnsPelayanan'], | ||
| 'jnsPengajuan' => $_POST['jnsPengajuan'], | ||
| 'keterangan' => $_POST['keterangan'], | ||
| 'user' => $this->core->getUserInfo('username', null, true) | ||
| ] | ||
| ] | ||
| ]; | ||
|
|
||
| header('Content-type: text/html'); | ||
| // echo json_encode($request); | ||
| header('Content-type: application/x-www-form-urlencoded'); | ||
| $request = json_encode($request); | ||
|
|
||
| $url = $this->settings->get('settings.BpjsApiUrl') . 'Sep/aprovalSEP'; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (typo): Consider correcting the typo "aproval" to "approval".
This occurs in the VClaim changelog line:
Perubahan header dan body request pada aproval SEP.