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

Non-merchant gateway payments may not get applied to invoices specifically paid

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.4.4, 3.5.0-b5, 3.5.0
    • Fix Version/s: 3.5.1
    • Component/s: Gateways
    • Labels:
      None

      Description

      In some cases, it is possible to encounter an issue where a transaction amount is less than the amount the non-merchant gateway intends to apply.

      For example, an invoice whose amount due is "1.5501" is passed to PayPal, and PayPal rounds this to "1.55". Upon payment, Blesta receives a notice from PayPal that a payment was received in the amount of "1.55". The gateway, however, says that the amount to apply to an invoice is still "1.5501".

      This is a case of attempting to apply a larger amount to an invoice than was paid. As of CORE-1706, this errant behavior is rejected, the amounts to applied ignored (for being invalid), and the entire payment is left as a credit.

      This task should resolve the issue from being encountered during normal use by filtering the amounts-to-apply received from non-merchant gateways. The transaction amount precision should be used as a basis for precision, and each amount-to-apply should be rounded down to the same precision.

        Issue Links

          Activity

          Hide
          tyson Tyson Phillips (Inactive) added a comment -

          This task is unnecessary. CORE-1741 and its related tasks work around it.

          Show
          tyson Tyson Phillips (Inactive) added a comment - This task is unnecessary. CORE-1741 and its related tasks work around it.

            People

            • Assignee:
              tyson Tyson Phillips (Inactive)
              Reporter:
              tyson Tyson Phillips (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jul/15