Jump to content


Photo

different set of IPN variables?


  • This topic is locked This topic is locked
11 replies to this topic

#1 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 25 November 2002 - 05:30 PM

why is it that when paypal sends the IPN info to my script that the second time is not the variables I need? I know paypal sends info twice to my script before my script completes the updating process.

I am expecting a option_name1 in the globals but when the scripts finishes it doesn't have this variable in the globals. I know this because when paypal send sthe info it is emailed to me and each one is different.

http://www.snippetlibrary.com

#2 PayPalKam

PayPalKam

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 26 November 2002 - 01:46 PM

Two things may be happening. First, when you receive a new subscriber, you may receive two posts. One of txn_type of "subscr_signup" and if you are not offering a free trial period, you will receive another post with a txn_type of "subscr_payment". The "subscr_signup" post will not contain transaction details. This post is to signify a new subscriber. The "subscr_payment" post will contain the transaction details.

Another explaination for the behavior that you are encountering is that with a subscription or shopping cart payment, PayPal will not POST to your return URL unless you set the form variable "rm" to "2". If you set the return URL to the location of your script, and "rm" is not set to "2", the buyer will be redirected to that location and no variables will be passed causing your script to run with NULL values.

Cheers.

Kam

#3 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 26 November 2002 - 06:40 PM

they may be correct but the info gets updated correctly if a new member is submitted, but I expect a certain variable which doesn't get sent until after the info was inserted as a new member. everything is setup correctly and I have never heard of teh "rm" variabel. if that is the one that you set in the paypals member account then yes that is set as well. like I said, everything works fine except teh renew which is not getting set as teh variable is not in the correct post.

when the post "subscr_signup" gets sent that is teh one that carries my renew variable, but as it is a signup, it doesn't get processed until the Completed is sent. why is that? I try to capture this variable but it is empty when the second POST come in, hence my new member everytime

http://www.snippetlibrary.com

#4 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 29 November 2002 - 09:00 AM

nobody??

http://www.snippetlibrary.com

#5 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 29 November 2002 - 12:48 PM

What is the name of the variable that is missing?

A list of all the possible variables is at: http://www.paypal.co...iptions-outside

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#6 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 29 November 2002 - 12:59 PM

the variabel that gets empty is "option_name1" which is suppose to be set from on0 variable which it does.

http://www.snippetlibrary.com

#7 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 29 November 2002 - 01:25 PM

Are you including them in your FORM like this:

<input type="hidden" name="on0" value="Option 1 Label">
<input type="hidden" name="os0" value="Option 1 Data">

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#8 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 29 November 2002 - 01:45 PM

yes but I am not using os0

<input type="hidden" name="on0" value="renew">

I send it like that and the first pass of the IPN POST it sends it fine, but the second pass it is empty.



http://www.snippetlibrary.com

#9 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 29 November 2002 - 04:12 PM

You need to.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#10 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 29 November 2002 - 04:34 PM

why, the manual doesn't say they go together??

the manula is really confusing and deosn't say anything about if you use one you have to use the other. so is the on0 a lable and the os0 is the value??

then why does the option_name1 get sent correctly and then it is empty the second time? why add more code that is redundant??

thanks I will add it but nowhere in the manual does it say that I need it.

http://www.snippetlibrary.com

#11 EliteWeaver

EliteWeaver

    Junior Member

  • Members
  • 239 posts

Posted 30 November 2002 - 04:43 AM

Scoutt -

The "on" is the option name with the "os" being the option selection so if I was selling a pair of socks on my site I would need to know the "on" = size and the "os" = user selectable. I may also need to know the color which is where the second one can be used. The whole purpose of these values is so we don't have to have 500 payment buttons for the same item in various sizes and colors.

Having a "on" without a "os" is illogical because what's the point of having the option name without a selection? That's the same as a key without a value so if you do need to use these then make sure you send them both as a pair ;-)


Kindest regards,

Marcus Cicero
EliteWeaver UK


#12 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 30 November 2002 - 10:12 AM

yeah thanks guys, the manual is unclear about that. it should say tht on is optional and below tht on "os" it should say if you use "on" then you need this one as well. when I first read it it said to me that they are both optional and teh "os" is a multi selection liek a radio button.

all I have to say is that the manual is not geared toward newbies as you have to read in between the lines and most newbies don't realize that.

but if it wasn't for this wonderful forum then we wouldn't go anywhere :-)

thanks guys...

http://www.snippetlibrary.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users