Payments without pain
Online payment in Iran means ZarinPal. Three lessons most people learn the hard way:
1. Never trust the callback alone — verify server-side, idempotently. 2. Persist the Authority before redirecting the user. 3. Run a background job to reconcile stale Pending transactions.