### Bank Transfer Diagnostics

Use this standalone page (served from the same domain as ITR POS) to replicate the client-side bank transfer calls. Every request captures the raw response so you can immediately see PHP warnings, HTML output, or malformed JSON.

1. Make sure you are logged into ITR POS in the same browser tab before opening this tester.
2. Use 1. Bank Directory to pull active bank IDs via `handlers/bank_transfer_handler.php?action=get_banks`.
3. Use 2. Balance Probe to hit `action=get_bank_balance` for any bank ID.
4. Use 3. Transfer Simulator to submit the exact payload the real UI sends to `process_transfer`.
5. Watch the Request/Response Log for any HTML, warnings, or non‑JSON payloads. The badge turns red if parsing fails.

1. Bank Directory

Calls the handler to fetch all active banks so you don’t need to guess IDs.

2. Balance Probe
Bank ID
Use IDs from the directory or enter manually.
3. Transfer Simulator
From Bank ID
To Bank ID
Amount
Transfer Date
Reference #
Description
Show payload in log
Request / Response Log

Each request will appear here with status, headers, raw response text, and JSON parsing status.