API Chat
This commit is contained in:
@@ -271,14 +271,6 @@ class DuitkuController extends Controller
|
||||
header('Content-Type: application/json');
|
||||
$notif = json_decode($callback);
|
||||
|
||||
// var_dump($callback);
|
||||
|
||||
if ($notif->resultCode == "00") {
|
||||
// Action Success
|
||||
} else if ($notif->resultCode == "01") {
|
||||
// Action Failed
|
||||
}
|
||||
|
||||
DB::table('api_logs')
|
||||
->insert([
|
||||
'type' => 'in',
|
||||
@@ -288,6 +280,14 @@ class DuitkuController extends Controller
|
||||
'created_at' => date('Y-m-d H:i:s')
|
||||
]);
|
||||
|
||||
|
||||
if ($notif->resultCode == "00") {
|
||||
// Action Success
|
||||
return Redirect::to('https://linksehat.com/');
|
||||
} else if ($notif->resultCode == "01") {
|
||||
// Action Failed
|
||||
}
|
||||
|
||||
} catch (Exception $e) {
|
||||
http_response_code(400);
|
||||
echo $e->getMessage();
|
||||
|
||||
Reference in New Issue
Block a user