Pisah server penyimpanan dan update payment gateway

This commit is contained in:
WD - Dev
2025-11-10 17:44:35 +07:00
parent 6017dfd369
commit 4a7c248fff
3044 changed files with 1586515 additions and 481 deletions
+14 -3
View File
@@ -105,6 +105,16 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
}
if ($phone_number_id == '833144686543436') {
$tmp = 'customer_service_contact';
} elseif ($phone_number_id == '789423254262077') {
$tmp = 'customer_service_phone';
} elseif ($phone_number_id == '790168360853999') {
$tmp = '';
} else {
$tmp = null;
}
if ($shouldSend) {
// --- Kirim balasan template ---
$reply = [
@@ -112,7 +122,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
"to" => $from,
"type" => "template",
"template" => [
"name" => "customer_service_contact",
"name" => $tmp,
"language" => ["code" => "id"],
"components" => []
]
@@ -132,8 +142,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// Kirim ke aplikasi 2
forwardToApp2([
"data" => $reply,
"respon" => $response
"data" => $reply,
"phone_id" => $phone_number_id,
"respon" => $response
]);
// Update waktu eksekusi terakhir