[ic] Submit [total-cost]

Garry interchange-users@lists.akopia.com
Fri Jul 6 09:20:01 2001


No, I want to be able to submit the value of [total-cost],  (whatever that
may be after the potential purchaser has finished shopping.

The lines I tried to use was: (on the checkout page at the very bottom)

<form action="https://www.paypal.com/cgi-bin/webscr" methd="post">
<input type="hidden" name="amount" value="[total-cost]">
<input type="image" src="http://images.paypal.com/images/x-click-but6.gif"
border="0" name="submit">
</form>



----- Original Message -----
From: "Mark Johnson" <markj@redhat.com>
To: <interchange-users@developer.akopia.com>
Sent: Friday, July 06, 2001 2:09 PM
Subject: Re: [ic] Submit [total-cost]


> Garry wrote:
> >
> > Hi,
> >
> > I am now wanting to be able to submit the value: [total-cost] to a
payment
> > service such as PAYPAL for example. I have tried substituting a fixed
value
> > (eg $30.00) with this field - but I get the error message saying the
figure
> > submitted is not the correct format.
> >
> > I have further been informed that I need to "dynamically" create the
total
> > value or ask for input from the user - I think I would prefer the value
to
> > be dynamically created and submitted.
> >
> > Does anyone know what I would need to do to accomplish this?
> >
>
> Your question isn't clear to me. Do you want to set the value of
> [total-cost], or do you want to pass some arbitrary value to PAYPAL? The
> only way to reset [total-cost] without re-writing the total-cost tag is
> to use the [assign] tag and set all the values that sum to total-cost.
> This seems like a big pain to me, but if that's what you need, [assign
> salestax=0 shipping=0 handling=0 subtotal=30.00], or whatever total cost
> you want for [total-cost]. Also, unless you want all these settings to
> persist after you need this other value of total-cost, you better put
> [assign clear=1] right afterward.
>
> Assuming what you really want is to pass some value to PAYPAL that isn't
> necessarily [total-cost], why don't you just set a scratch of the
> desired value and pass [scratch paypal_total] instead?
>
> --
> Mark Johnson
> Senior Systems Architect - Professional Services
> Red Hat, Inc.
> E-Business Solutions
> markj@redhat.com
> 703-456-2912
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com