Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #686

Re: How to dynamically post a variable number of products to Paypal?

From markspace <-@.>
Newsgroups comp.lang.java.help
Subject Re: How to dynamically post a variable number of products to Paypal?
Date 2011-05-18 11:51 -0700
Organization A noiseless patient Spider
Message-ID <ir14ge$v0p$1@dont-email.me> (permalink)
References <e679518b-2df7-4432-9e20-d2b668e50c39@glegroupsg2000goo.googlegroups.com>

Show all headers | View raw


On 5/18/2011 1:20 AM, macoln wrote:
> I have some shopping cart code that I took over when I started with a
> company, but unfortunately I'm weak on Java and integrating with
> Paypal. Here is the form that sends data to Paypal when a customer
> checks out of the shopping cart. I can get it to send one product,
> but I would like it to include data on all the products purchased
> from the cart. I am thinking logic:iterate will help me? But then how
> do I increment the "on#" and "os#" when presented with a variable
> amount of products?

No, logic:iterate is for output, not input.  This form outputs HTML to 
the user so they can click the accept button.

To increment variables that you output to the user, change the variables 
in a scriptlet, JSP, Struts Action or the like before you send those to 
the user.

 >      <img name="Paypal" src="/images/qujiesuan.gif" class="jiesuan" 
border=0 style="cursor: pointer;" onclick="javascript:goPayPal();" />
 > </form>

This is what sends your information to PayPal.  "javascript:goPayPal()"

Unfortunately I don't know PayPal or JavaScript, you might want to check 
PayPal's tech support to understand what that script does.

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How to dynamically post a variable number of products to Paypal? macoln <mr.gaolin@gmail.com> - 2011-05-18 01:20 -0700
  Re: How to dynamically post a variable number of products to Paypal? markspace <-@.> - 2011-05-18 11:51 -0700
    Re: How to dynamically post a variable number of products to Paypal? Lew <noone@lewscanon.com> - 2011-05-18 15:44 -0400
  Re: How to dynamically post a variable number of products to Paypal? Ian Shef <invalid@avoiding.spam> - 2011-05-18 19:23 +0000
  Re: How to dynamically post a variable number of products to Paypal? Roedy Green <see_website@mindprod.com.invalid> - 2011-05-19 10:27 -0700

csiph-web