Jump to content


Photo

subscription not getting set


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

#1 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 10 November 2002 - 07:27 PM

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
  • Infevavof and TigrenokTLaniannonna like this

#2 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 10 November 2002 - 09:44 PM

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

#3 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 10 November 2002 - 10:25 PM

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

#4 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 11 November 2002 - 12:09 PM

Are you using the right email address as the value for "business"?

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

#5 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 12 November 2002 - 10:38 AM

and where do I check to see if that is correct? is it in the account somewhere?

http://www.snippetlibrary.com

#6 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 12 November 2002 - 12:40 PM

In the PayPal button on your web page.

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

#7 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 12 November 2002 - 12:57 PM

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

#8 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 12 November 2002 - 05:16 PM

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

#9 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 12 November 2002 - 09:01 PM

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

#10 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 12 November 2002 - 09:10 PM

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

#11 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 12 November 2002 - 11:54 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users