YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

different set of IPN variables? Options
scoutt
#1 Posted : Monday, November 25, 2002 10:30:47 PM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
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
Sponsor  
 
PayPalKam
#2 Posted : Tuesday, November 26, 2002 6:46:11 PM
Rank: Starting Member

Groups: Registered

Joined: 11/26/2002
Posts: 2
Location: ,
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
scoutt
#3 Posted : Tuesday, November 26, 2002 11:40:33 PM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
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
scoutt
#4 Posted : Friday, November 29, 2002 2:00:49 PM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
paypal_pb
#5 Posted : Friday, November 29, 2002 5:48:05 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
What is the name of the variable that is missing?

A list of all the possible variables is at: http://www.paypal.com/cg...n-subscriptions-outside

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
scoutt
#6 Posted : Friday, November 29, 2002 5:59:06 PM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
the variabel that gets empty is "option_name1" which is suppose to be set from on0 variable which it does.

http://www.snippetlibrary.com
paypal_pb
#7 Posted : Friday, November 29, 2002 6:25:30 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
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
scoutt
#8 Posted : Friday, November 29, 2002 6:45:34 PM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
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
paypal_pb
#9 Posted : Friday, November 29, 2002 9:12:59 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
You need to.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
scoutt
#10 Posted : Friday, November 29, 2002 9:34:50 PM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
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
EliteWeaver
#11 Posted : Saturday, November 30, 2002 9:43:00 AM
Rank: Starting Member

Groups: Registered

Joined: 10/22/2002
Posts: 239
Location: ,
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
scoutt
#12 Posted : Saturday, November 30, 2002 3:12:27 PM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.317 seconds.