PHP API (migrated from CFML)
Instead of recalculating the grand total from line items + rates (which can drift by a penny due to floating point), use the actual PaymentFromCreditCard or PaymentPaidInCash values from the Payments table. This ensures the receipt always matches what the customer was actually charged. |
||
|---|---|---|
| _webhook | ||
| api | ||
| config | ||
| cron | ||
| receipt | ||
| show_order.php | ||