NAYAPAY TOP-UP FIX - 05 OCT 2026

What was fixed
1. Screenshot sender-name OCR parsing now removes the field label "Name".
   Example OCR: "Sent by / Name / Muhammad Shoaib" now becomes "Muhammad Shoaib".
2. OCR amount parsing now accepts common OCR output such as "Rs, 200.00".
3. Tesseract lookup is more compatible with cPanel/shared hosting:
   - /usr/bin/tesseract
   - /usr/local/bin/tesseract
   - /opt/local/bin/tesseract
   - TESSERACT_PATH environment variable / NAYAPAY_TESSERACT_PATH constant
   - shell_exec OR exec can be used.
4. NayaPay database schema self-repair now checks all columns used by screenshot verification.
5. Screenshot MIME validation no longer crashes if PHP fileinfo/finfo is unavailable.
6. NayaPay image flow now catches stage-specific exceptions instead of only returning
   "Temporary bot error".

IMPORTANT SERVER REQUIREMENTS
- Tesseract OCR must actually be installed on the hosting server and executable by PHP.
- English language data must be installed.
- At least shell_exec or exec must be allowed for the PHP account.
- Correct NayaPay receipt Gmail must be connected.
- Cron should run cron/nayapay_verify.php every minute for delayed receipts.

Suggested checks on server
  which tesseract
  tesseract --version
  php -r 'echo ini_get("disable_functions"), PHP_EOL;'

If "which tesseract" says command not found, automatic screenshot verification cannot work
until hosting support installs Tesseract (or provides its exact executable path).
