Iranian payment gateways¶
Always-on rule for iranian-payment-gateways · Source
- Create the order unpaid and store the gateway
authoritybefore redirecting. - Find the order on callback by
Authorityfrom your own record, not by an order id in the query. Status=NOKmeans failed or canceled. Do not call verify.Status=OKis not proof. Verify from the server with the sameamountandauthority.- Verify code
100marks the order paid once. Code101means already verified: no second receipt or stock change. - One Toman (IRT) is ten Rial (IRR). Convert in one function and send the unit the gateway expects.
- Keep
merchant_idon the server and out of logs. - Reconcile unverified payments with a job, so paid shoppers are not refunded by the network.