Details
Description
The order form sometimes charges the client 1 penny more than the invoice amount. This has been most reported using Stripe, but I believe it occurs with any gateway.
See the discrepancy in the attached screenshots.
This may occur due to rounding as it relates to coupons. To reproduce:
1. Create a coupon for 50% off.
2. Create a Package with a price of $19.95
3. Create an order form using any gateway (In my test I used PayPal Payments Standard, but most have reported this issue with Stripe)
4. Visit the order form as a client and order the $19.95 package and apply the 50% off coupon. Note that the invoice is for $9.97 but the payment is for $9.98.
The coupon being 50% off of 19.95 would result in an amount of 9.975. The invoice is for 9.97, deducting the coupon amount of 9.98 (rounded), but the payment amount rounds in the opposite direction.
Just to add.. this seems to have been introduced after whichever version of the Order Plugin shipped with Blesta 5.9.3.