9 Replies Latest reply: Feb 5, 2013 7:48 AM by Grando RSS

    Payment Group Error in ATG

    kmv
      Hi All,

      Am creating a new payment group like callCenterPayment.

      When i try to place order, getting below error on screen.

      *'The payment group pg33800036 could not be authorized for payment: The request to authorize the amount 382.5 failed because it would result in an overauthorization for PaymentGroup pg33800036.. '*

      Note: there is no error on console.

      If any one know this issue, please help me to resolve this issue.


      Thanks & Regards,
      Vinoth.M
        • 1. Re: Payment Group Error in ATG
          Gopinath Ramasamy
          Hi,

          This is not an issue with your code.

          The payment authorization system that you are using, is not allowing to place order of this much value (382.5) for this payment type. (This is the same situation that occurs when you try to use your credit card above its credit limit).
          Try to place an order with lesser value. If this goes thru, (if you can) configure the payment authorization system by increasing the authorization amount for this payment type.

          Hope this helps.

          Thanks,
          Gopinath Ramasamy
          • 2. Re: Payment Group Error in ATG
            kmv
            Hi Gopinath,

            Thanks for ur reply.

            I tried to place an order with less amount 17.0, but still its getting same error.


            The payment group pg33800092 could not be authorized for payment: The request to authorize the amount 17.0 failed because it would result in an overauthorization for PaymentGroup pg33800092..


            If do you know how to configure like to increase authorization amount for this payment.

            And PFB the console,and look into the bold one. Did u get anything, please let me know.

            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG totalOrderAmount = 17.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG orderAmountRemaining = 17.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG totalTaxAmount = 0.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG taxAmountRemaining = 0.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG totalShippingAmount = 0.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG shippingAmountRemaining = 0.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG totalItemAmount = 20.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG itemAmountRemaining = 20.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG Rounding 17.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG Added 17.0 to PaymentGroup pg33800092. Total is 17.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG orderAmountRemaining = 0.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG taxAmountRemaining = 0.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG shippingAmountRemaining = 0.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG itemAmountRemaining = 20.0
            14:48:01,197 INFO [ProcSetPaymentGroupAmount] DEBUG PaymentGroup pg33800092 amount is 17.0
            14:48:01,322 INFO [ProcAuthorizePayment] DEBUG Authorizing PaymentGroups: [PaymentGroup[id:pg33800092; paymentMethod:callCenterPayment; amount:17.0; amountAuthorized:17.0; amountC
            redited:0.0; amountDebited:0.0; state:AUTHORIZED]]
            *14:48:01,322 INFO [ProcAuthorizePayment] DEBUG The following payment groups failed authorization: [pg33800092]*
            14:48:18,013 INFO [PaymentPipelineManager] DEBUG Running process for callCenterPaymentProcessorChain
            14:48:18,013 INFO [PaymentPipelineManager] DEBUG Executing Chain: callCenterPaymentProcessorChain
            14:48:18,013 INFO [PaymentPipelineManager] DEBUG Pre Chain Transaction
            14:48:18,013 INFO [PaymentPipelineManager] DEBUG Transaction is TX_REQUIRED
            14:48:18,013 INFO [PaymentPipelineManager] DEBUG Transaction does not exist. Creating transaction for chain execution.
            14:48:18,013 INFO [PaymentPipelineManager] DEBUG Executing link: createCallCenterPaymentInfo
            14:48:18,013 INFO [PaymentPipelineManager] DEBUG Pre Link Transaction
            14:48:18,013 INFO [PaymentPipelineManager] DEBUG Transaction is TX_MANDATORY
            14:48:18,013 INFO [PaymentPipelineManager] DEBUG Transaction does exist and will be used
            14:48:18,622 INFO [CreateCallCenterPaymentInfo] DEBUG Making a new instance of type: com.telecom.commerce.order.payment.CallCenterPaymentInfo
            14:48:19,231 INFO [CreateCallCenterPaymentInfo] DEBUG addDataToCallCenterPaymentInfo250010%%%%%%%17.0
            14:48:19,231 INFO [CreateCallCenterPaymentInfo] DEBUG Putting CallCenterPaymentInfo object into pipeline: com.telecom.commerce.order.payment.CallCenterPaymentInfo@17e02a7
            14:48:19,263 INFO [PaymentPipelineManager] DEBUG Link createCallCenterPaymentInfo return value: 1
            14:48:19,263 INFO [PaymentPipelineManager] DEBUG Post Link Transaction
            14:48:19,263 INFO [PaymentPipelineManager] DEBUG Transaction is TX_MANDATORY
            14:48:19,263 INFO [PaymentPipelineManager] DEBUG Transaction does exist and was used
            14:48:19,263 INFO [PaymentPipelineManager] DEBUG Executing link: procProcessCallCenterPayment
            14:48:19,263 INFO [PaymentPipelineManager] DEBUG Pre Link Transaction
            14:48:19,263 INFO [PaymentPipelineManager] DEBUG Transaction is TX_MANDATORY
            14:48:19,263 INFO [PaymentPipelineManager] DEBUG Transaction does exist and will be used
            14:48:19,263 INFO [ProcProcessCallCenterPayment] DEBUG Obtained processorAction with: auth
            14:48:19,497 INFO [PaymentPipelineManager] DEBUG Link procProcessCallCenterPayment return value: 1
            14:48:19,497 INFO [PaymentPipelineManager] DEBUG Post Link Transaction
            14:48:19,497 INFO [PaymentPipelineManager] DEBUG Transaction is TX_MANDATORY
            14:48:19,497 INFO [PaymentPipelineManager] DEBUG Transaction does exist and was used
            14:48:19,497 INFO [PaymentPipelineManager] DEBUG Last processor in chain, stopping chain execution for chain: callCenterPaymentProcessorChain
            14:48:19,497 INFO [PaymentPipelineManager] DEBUG Post Chain Transaction
            14:48:19,497 INFO [PaymentPipelineManager] DEBUG Transaction is TX_REQUIRED
            14:48:19,497 INFO [PaymentPipelineManager] DEBUG Committing transaction
            14:48:19,497 INFO [PaymentPipelineManager] DEBUG Done Executing Chain: callCenterPaymentProcessorChain
            14:48:19,497 INFO [PaymentPipelineManager] DEBUG PipelineResult has 0 errors
            14:48:19,497 INFO [PaymentManager] DEBUG Authorized PaymentGroup pg33800093. Results[qweqw12312, true,null,Fri Feb 01 14:48:19 IST 2013]
            • 3. Re: Payment Group Error in ATG
              RMishra
              The payment group pg33800092 could not be authorized for payment: The request to authorize the amount 17.0 failed because it would result in an overauthorization for PaymentGroup pg33800092..
              Here is also same issue. Below thread may help you:
              Error while implementing a new payment method

              -RMishra
              • 4. Re: Payment Group Error in ATG
                kmv
                Hi ,

                Thanks for your reply.

                I already set my new payment group in PaymentManager.properties files

                paymentGroupToChainNameMap+=com.telecom.commerce.order.payment.CallCenterPayment\=callCenterPaymentProcessorChain

                but i need to know, where to configure to increase the authorization amount in Payment Group.

                Regards,
                Vinoth.M
                • 5. Re: Payment Group Error in ATG
                  Rajeev_R
                  Is your callCenterPaymentProcessorChain is invoking any third paty interfaces for authorization? If so, is the error coming before invoking the interface? or the error is coming from the 3rd party?

                  Can you please check these? If you are not invoking any third party interfaces and doing authorization using a dummy implementation of ATG, please check how does your payment authorization logic works? I am not sure about that we can put some limits at the ATG payment group level without customization.

                  Cheers
                  R
                  • 6. Re: Payment Group Error in ATG
                    kmv
                    Hi Rajeev,

                    Thanks for your Reply.

                    callCenterPaymentProcessorChain is not invoking any third party interfaces for authorization.

                    It's calling my customize CallCenterPayment Group.

                    While Placing an order, am getting this below exception,

                    The payment group pg33800036 could not be authorized for payment: The request to authorize the amount 17.0 failed because it would result in an overauthorization for PaymentGroup pg33800036.. '

                    Note: there is no error on console.

                    Do u have any solutions for this?

                    Thanks in Advance,
                    Vinoth.M
                    • 7. Re: Payment Group Error in ATG
                      Nooruddin Shaik
                      Can you share the code for authorization of your new payment group?

                      It looks the amount you are sending to authorize is incorrect?

                      If you are using multiple payment groups, then see to it the sum of authorizations you do should not exceed the total amount of the order.

                      Peace
                      Shaik
                      • 8. Re: Payment Group Error in ATG
                        951022
                        Hi

                        In authorize method try to return the value which i mentioned below

                        get amount from order and try it

                        return new PaymentStatusImpl(Long.toString(System.currentTimeMillis()),amount,true,"",new java.util.Date());
                        • 9. Re: Payment Group Error in ATG
                          Grando
                          Hi all,

                          I am facing the same issue, and I couldn't solve the problem.
                          Does anyone have the anwser for this problem?

                          Thanks