Pisah server penyimpanan dan update payment gateway
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user