|
Posted by Jim Evans on 06/07/05 23:36
Hi Ken
I'm using paypal as the checkout for my cart. That means I have to send
all the cart contents alng with postage charges and any customer details
I have as a POST (although I've just found out GET also works) to their
script.
I'm hoping to avoid the "oops" method, although it seems likely to be
the one I take, if concatenating variables doesn't work. Thanks for the
suggestion.
Ken Robinson wrote:
> Jim Evans wrote:
>
>
>>Paypal only lets you pass one hidden variable, and I need that to
>>identify the customer in the back end stuff, so I can't check on the
>>newsletter thing after payment.
>
>
> What do you mean by "Paypal only lets you pass one hidden variable"?
>
> Paypal has no idea how you pass the variables in your form as long as
> it uses the POST methon
>
>
>>I'm looking for a way to process the form input myself, before sending
>>the user to PayPal. How can I add POST data to a "Location" header?
>>
>>Although I could do it by sending them to a script that does the
>>processing for the newsletter, and then uses javascript to submit the
>>form values using post (e.g. <body onload="formname.submit();">) I'm
>>trying to keep it javascript free, so it'll be 100% accessible.
>
>
> That's the easiest way to do it. If you want to make sure it works when
> Javascript is disabled, put in some code that basically says "Oops ...
> submit to Paypal didn't work, please press 'Here' to try again". The
> 'Here' would be a button that would send the hidden form values to
> Paypal.
>
> Ken
>
[Back to original message]
|