Tidak ada instruksi

"; } $data_get = json_decode($data, true); $uniq_code = $data_get['data']['unique_code'] ?? ''; $expiredTime = $data_get['data']['expired'] ?? ''; // $expiredTime = date('Y-m-d 18:47:10'); $service = $data_get['data']['service'] ?? null; if (!$service) { return "

Data instruksi tidak valid

"; } // 🔹 QRIS if ($service == 11) { $steps = ""; if (!empty($data_get['payment_guide'][0]['content'])) { foreach ($data_get['payment_guide'][0]['content'] as $value) { $steps .= "
  • " . htmlspecialchars($value) . "
  • "; } } return "
    QRIS
    QRIS

    Silakan scan QRIS di atas untuk melakukan pembayaran.

    {$data_get['payment_guide'][0]['title']}

      {$steps}
    "; } // 🔹 Virtual Account $bankLogos = [ 2 => "bri.png", 4 => "bni.png", 5 => "mandiri.png", ]; $img = $bankLogos[$service] ?? ""; $va = htmlspecialchars($data_get['data']['virtual_account'] ?? ''); $steps = ""; if (!empty($data_get['payment_guide'])) { foreach ($data_get['payment_guide'] as $title) { $steps .= "

    " . htmlspecialchars($title['title']) . "

      "; foreach ($title['content'] as $value) { $steps .= "
    1. " . htmlspecialchars($value) . "
    2. "; } $steps .= "
    "; } } return "
    Nomor Virtual Account
    Bank Logo {$va}

    Silakan gunakan Virtual Account untuk melakukan pembayaran.

    {$steps}
    "; } function getListPembayaran($idTagihan) { return '
    Metode Pembayaran
    '; } function getStatus($pelanggan) { return '
    Transaksi Berhasil

    ' . htmlspecialchars($pelanggan['tgl_lunas']) . '

    Success
    Id Transaksi ' . htmlspecialchars('#PGPDN' . $pelanggan['order_id']) . '
    Customer ' . htmlspecialchars($pelanggan['nama']) . '
    Metode ' . htmlspecialchars($pelanggan['metode']) . '

    Order ' . htmlspecialchars($pelanggan['keterangan']) . '
    Subtotal Rp ' . number_format($pelanggan['subtotal'], 0, ',', '.') . '
    Service fee Rp ' . number_format($pelanggan['servicefee'], 0, ',', '.') . '

    Total
    Rp ' . number_format($pelanggan['total'], 0, ',', '.') . '
    '; }