Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-681

Wrong amount authorized for orders with credit card and billing account

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • Trunk
    • accounting
    • None

    Description

      I have just realized that the behavior for orders with billing account (store credit) and a credit card is not entirely correct. When you create the order, the credit card is authorized for the full amount of the order, without considering how much is authorized to the billing account. When you capture, however, the behavior is correct: the billing account is used up, then the balance is charged to the credit card.

      The net result is that credit cards are over-authorized by the amount of the billing account.

      It seems that OrderPaymentPreference.maxAmount is not set for Credit Card payment methods. If this is set, then authOrderPaymentPreferences will use it to authorize the correct amount. This needs to be set somewhere during the storeOrder process.

      Attachments

        Issue Links

          Activity

            People

              jacopoc Jacopo Cappellato
              sichen Si Chen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: