Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-5275

Order: Checkout may charge 1 penny over invoice amount due to precision rounding

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.10.3
    • Fix Version/s: 5.11.0-b2
    • Component/s: Plugins
    • Labels:
      None

      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.

      1. 1.png
        108 kB
      2. 2.png
        114 kB

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Agile