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

subscription not getting set Options
scoutt
#1 Posted : Monday, November 11, 2002 12:27:34 AM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
I tried to send the txn_type as "subscr_signup" and when paypal sends the info back it changes to web_accept. why isn't subscr_signup getting set???? what variables need to be set so that subscription gets set using IPN.. http://www.snippetlibrary.com
Sponsor  
 
paypal_pb
#2 Posted : Monday, November 11, 2002 2:44:26 AM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
Can you provide more details on what you are doing and what is happening?

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
scoutt
#3 Posted : Monday, November 11, 2002 3:25:19 AM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
well ok, I have it setup with php to run with paypal and the IPN system. everything works great and my DB gets updated with the correct information to what is sent to the php script. now the email gets sent and the email form my script gets sent. everything hunky dory but no subscription is made at the payapl account.

what variables do I need to use the IPN Subscription method?



http://www.snippetlibrary.com
paypal_pb
#4 Posted : Monday, November 11, 2002 5:09:53 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
Are you using the right email address as the value for "business"?

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
scoutt
#5 Posted : Tuesday, November 12, 2002 3:38:07 PM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
and where do I check to see if that is correct? is it in the account somewhere?

http://www.snippetlibrary.com
paypal_pb
#6 Posted : Tuesday, November 12, 2002 5:40:08 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
In the PayPal button on your web page.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
scoutt
#7 Posted : Tuesday, November 12, 2002 5:57:30 PM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
well I am using a form button instead, do I have to use the img button?

also I am converting this script over from a cgi script and that script is using a regular subscription instead of IPN. my php one is using IPN. so I just took the same business email and used it in mine as a hidden field.

http://www.snippetlibrary.com
scoutt
#8 Posted : Tuesday, November 12, 2002 10:16:16 PM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
well it wasn't the email. I have it making subscriptions but now it always sends an invalid response.

I just want to say that the IPN manual and the IPN Subscription manual are usless, in fact they suck.

I needed
<input type="hidden" name="cmd" value="_xclick-subscriptions">

and it creates subscriptions, but sends an invalid response. If I take it out then it responds fine but doesn't create subscriptions.

so it seems that nobody else has this working????????

my time is running out and I need this fixed, I am starting to get depreate.



http://www.snippetlibrary.com
paypal_pb
#9 Posted : Wednesday, November 13, 2002 2:01:37 AM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
I'm still confused. Have you tried creating a subscription button from the PayPal "button factory"? Log in to your PayPal account, go to "Sell > Subscriptions". There you can step through the creation of a subscribe button. The PayPal system will generate HTML that you can cut and paste into your web page.

Just to be clear, no subscription is created by just clicking a button. A subscriber would click on the button, enter name/address/credit card, confirm the signup and return to your site.

I'm surprised you find the manuals deficient since all of this and more is described in very simple terms in the manuals.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
scoutt
#10 Posted : Wednesday, November 13, 2002 2:10:41 AM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
yes you are correct that the subscription is made after they insert all the information and get back to my site so the info can be entered into the DB. all that worked until I add the _xclick-subscription

now the user gets back to my site and the subscription gets created on my paypal account and the info DOESN"T get entered. it seems that paypal isn't sending back a POST so my script can execute.

here is my form code, and if you read the manual on page 12 of the IPN Manual: using IPN with Subscriptions and you will see that none of these variables are in that manual. that is why they are so confusing. if you read the subscription manual it doesn't do IPN. and this form work up to the subscription but paypal sends back a INVALID code.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">\n";
<input type="hidden\" name="cmd" value="_xclick-subscriptions">\n";
<input type="hidden" name="business" value="paypal_bot@boxedart.com">\n";
<input type="hidden" name="item_number" value="{$username}">\n";
<input type="hidden" name="invoice" value="{$id}">\n";
<input type="hidden" name="a3" value="19.95">\n";
<input type="hidden" name="p3" value="1">\n";
<input type="hidden" name="t3" value="Y">\n";
<input type="hidden" name="src" value="1">\n";
<input type="hidden" name="sra" value="1">\n";
<input type="hidden" name="recurring" value="1">\n";
<input type="hidden" name="reattempt" value="0">\n";
<input type="hidden" name="no_shipping" value="1">\n";
<input type="hidden" name="custom" value="{$_login}">\n";
<input type="hidden" name="return" value="".SITE_URL."/phpshop/ipntest.php ">\n";
<input type="submit" value="Pay with Paypal" name="submit\">\n";
</form>\n";


http://www.snippetlibrary.com
scoutt
#11 Posted : Wednesday, November 13, 2002 4:54:47 AM
Rank: Junior Member

Groups: Registered

Joined: 11/6/2002
Posts: 139
Location: ,
ok let me rephrase the question..... does IPN handle subscriptions?

because i found out something. with the same form and just by changing the cmd value I get 2 different responses.

cmd = _xclick // doesn't set subscriptions adn DOES IPN
cmd = _xclick-subscriptions // sets subscriptions but DOESN'T do IPN


make sense out of that one.....

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.364 seconds.