|
Posted by Jim Evans on 06/07/05 23:37
Hi Tony
Session variables would be the obvious answer - I was trying to do most
of the processing in the IPN script - which wouldn't be linked to the
session.
If I get the customer to confirm the newsletter subscription before the
postage is calculated, I can drop it into a session variable, but I was
hoping to make it a bit more logical and do it after that. To put that
into a session variable then would sill involve doing something on my
server, before directing the client over to paypal, complete with variables.
Tony wrote:
> "Ken Robinson" <kenrbnsn@rbnsn.com> wrote in message
> news:1118164044.855130.116270@g43g2000cwa.googlegroups.com...
>
>>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
>
>
> The way the PayPal processing works is that you send it the information,
> then it processes the payment and posts BACK to your site with a list of
> variables.
>
> The thing is, it only includes certain variables - so any data you want
> passed back to your site after the payment is processed must fit within the
> list of variables that are allowed. Otherwise, they're dropped.
>
>
>>>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.
>
>
> Here's a thought: What about using a Session variable to set the value of
> "subscribe" before going to PayPal (you could do that in your automatically
> forwarding page without using JavaScript) and read that Session variable
> back when they return?
>
>
>
>
Navigation:
[Reply to this message]
|