<% if (msg) { %>
<%= msg.text %>
<% } %>
<% if (typeof ready !== 'undefined' && !ready) { %>
QR-Custom Payment dinonaktifkan. Aktifkan
QRIS Statis (Semi-Otomatis) dan isi
QRIS static payload di
Pengaturan terlebih dahulu.
<% } %>
<% if (typeof ready === 'undefined' || ready) { %>
<% } %>
<% if (detail) { %>
<% const cqExpired = detail.status === 'expired' || (detail.status === 'pending' && detail.expires_at && new Date(detail.expires_at).getTime() < Date.now()); %>
<%= detail.title %><% if (!cqExpired) { %> — Rp <%= Number(detail.amount_unique||0).toLocaleString('id-ID') %><% } %>
<% if (detail.status === 'paid' || detail.status === 'rejected' || cqExpired) { %>
<% if (cqExpired) { %>QR kedaluwarsa — nominal & QR disembunyikan.<% } else { %>QR tidak aktif — status: <%= detail.status %><% } %>
<% } else { %>
<% } %>
Status: <%= detail.status %>
<% if (!cqExpired) { %>
Nominal dasar: Rp <%= Number(detail.amount||0).toLocaleString('id-ID') %>
Kode unik: <%= detail.unique_code %>
Nominal bayar: Rp <%= Number(detail.amount_unique||0).toLocaleString('id-ID') %>
<% } %>
Kategori: <%= detail.category || '-' %>
Dibuat: <%= detail.created_at %>
Kedaluwarsa: <%= detail.expires_at || '-' %>
<% if (detail.note) { %>
Catatan: <%= detail.note %>
<% } %>
Link share:
<% if (detail.status !== 'paid') { %>
<% } %>
<% if (detail.status === 'warning') { %>
<% } %>
<% if (detail.status !== 'rejected') { %>
<% } %>
<% if (cqExpired) { %>
<% } %>
<% } %>