8 Replies Latest reply: Jan 3, 2013 6:02 AM by 982246 RSS

    PaymentGroupDroplet

    982246
      hi,
      I used paymentGroupDroplet to display paymentGroups in jsp, it displays empty list,

      but by default ATG has creditCard, storeCredit and giftCertificate paymentGroups. Please help be out. Thanks in advance


      --
      sanjeev
        • 1. Re: PaymentGroupDroplet
          Gopinath Ramasamy
          Hi,

          Can you check this link for the usage of PaymentGroupDroplet?

          http://docs.oracle.com/cd/E23095_01/Platform.93/ATGCommStoreGuide/html/s1735paymentgroupdroplet01.html

          If you still have the issue, can you post the entire code with which you are trying to access this droplet?

          Thanks,
          Gopinath Ramsamy.
          • 2. Re: PaymentGroupDroplet
            982246
            Hi,

            yes i have used the same code, but i get PaymentGroups list empty, here is my snippet,

            <dsp:droplet name="PaymentGroupDroplet">
                           <dsp:param value="false" name="clear"/>
            <dsp:param value="giftCertificate, storeCredit, creditCard"
            name="paymentGroupTypes"/>
            <dsp:param value="true" name="initPaymentGroups"/>
            <dsp:param value="true" name="initItemPayment"/>
            <dsp:param value="true" name="initTaxPayment"/>
            <dsp:param value="true" name="initShippingPayment"/>
            <dsp:oparam name="output">
                 <dsp:valueof param="order.id"></dsp:valueof>
                 paymentInfo:<dsp:valueof param="paymentInfos"></dsp:valueof>
                 paymentGroups:<dsp:valueof param="paymentGroups"></dsp:valueof>
            </dsp:oparam>
                      </dsp:droplet>

            --
            sanjeev
            • 3. Re: PaymentGroupDroplet
              Gopinath Ramasamy
              Hi,

              Both the paymentInfos and paymentGroups are available as maps.

              Please try the following code to check whether these two maps are still coming as empty.

              <dsp:droplet name="PaymentGroupDroplet">
                   <dsp:param value="false" name="clear"/>
                   <dsp:param value="giftCertificate, storeCredit, creditCard" name="paymentGroupTypes"/>
                   <dsp:param value="true" name="initPaymentGroups"/>
                   <dsp:param value="true" name="initItemPayment"/>
                   <dsp:param value="true" name="initTaxPayment"/>
                   <dsp:param value="true" name="initShippingPayment"/>
                   <dsp:oparam name="output">
                   <dsp:valueof param="order.id"></dsp:valueof>
                        <dsp:droplet name="/atg/dynamo/droplet/ForEach">
                             <dsp:param name="array" param="paymentInfos"/>
                             <dsp:oparam name="outputStart">
                                  Payment Infos in this order :
                                  </dsp:oparam>
                                  <dsp:oparam name="output">
                                  Total: <dsp:valueof param="size">0</dsp:param>
                             </dsp:oparam>
                        </dsp:droplet>
                        <dsp:droplet name="/atg/dynamo/droplet/ForEach">
                             <dsp:param name="array" param="paymentGroups"/>
                             <dsp:oparam name="outputStart">
                                  Payment Groups in this order :
                                  </dsp:oparam>
                                  <dsp:oparam name="output">
                                  Total: <dsp:valueof param="size">0</dsp:param>
                             </dsp:oparam>
                        </dsp:droplet>
                   </dsp:oparam>
              </dsp:droplet>

              Hope this helps.

              Please post the updates.

              Thanks,
              Gopinath Ramasamy
              • 4. Re: PaymentGroupDroplet
                982246
                Hi,

                I get the paymentInfos, no problem with that. only my paymentgroups is empty.

                --
                sanjeev
                • 5. Re: PaymentGroupDroplet
                  982246
                  gg
                  • 6. Re: PaymentGroupDroplet
                    982246
                    Hi,

                    please help me out with a solution for this.

                    --
                    sanjeev
                    • 7. Re: PaymentGroupDroplet
                      Gopinath Ramasamy
                      Hi,

                      When you tried with the code snippet that I gave, what is the output?

                      Thanks,
                      Gopinath Ramasamy
                      • 8. Re: PaymentGroupDroplet
                        982246
                        Hi,

                        I tried your code, i still got empty paymentGroups. but after logging in, its getting default payment group authorized for that particular user.
                        But i need to display all payment groups for the user to select from.

                        --
                        sanjeev