// Seed a `pending` payment_sessions row for TEST_PHONE so the Pembayaran // sub-tab has a row to render without walking the multi-screen S6 paywall → // method-pick → duration-pick → method flow. // // Hits the dev-only /internal/_test/seed-pending-payment endpoint. const phone = TEST_PHONE const url = BACKEND_INTERNAL_URL || 'http://localhost:3001' const body = { phone, isExtension: PENDING_KIND === 'extension', amount: PENDING_AMOUNT ? Number(PENDING_AMOUNT) : 5000, } const resp = http.post(`${url}/internal/_test/seed-pending-payment`, { body: JSON.stringify(body), headers: { 'Content-Type': 'application/json' }, }) if (resp.status !== 200) { throw new Error(`seed-pending-payment failed (${resp.status}): ${resp.body}`) } const data = json(resp.body) output.PAYMENT_ID = data.payment_id