|
|
|
Rank: Starting Member
Groups: Registered
Joined: 12/16/2002 Posts: 6 Location: ,
|
I am using the subscription techniques to allow my customers to pay for their services. I successfully have sent the information to PayPal and subscribed for new service. I have requested PayPal to return my customer to a URL and I will finalize the database entries, clean up, and send the customer a welcome message. My problem is that I get nothing returned from PayPal. It goes to the correct URL, but my software has nothing to act on. Obviously I have got something messed up, and I need help. My code *to* PayPal is:
<form action="https://www.paypal.com/cgi-bin/webscr" name="ppsubmit" method="post">
<input type="hidden" name="cmd" value="_ext-enter">
<input type="hidden" name="redirect_cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="billing@dlphost.com">
<input type="hidden" name="image_url" value="https://secure.net/dlphost/images/orders/paypal_logo.jpg">
<input type="hidden" name="undefined_quantity" value="1">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="return" value="https://secure.net/dlphost/orders/account_display.php">
<input type="hidden" name="cancel_return" value="https://secure.net/dlphost/orders/reg_cancel.php">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="invoice" value="dlp20021219181026">
<input type="hidden" name="item_name" value="Business Plan 24.95/mo">
<input type="hidden" name="item_number" value="dlp3">
<input type="hidden" name="a1" value=" 118.80">
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="M">
<input type="hidden" name="a3" value="74.85">
<input type="hidden" name="p3" value="3">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<input type="hidden" name="on0" value="first month invoice ">
<input type="hidden" name="os0" value="includes $ 74.85 hosting, $ 25.00 setup, $ 18.95 domain registration">
<input type="hidden" name="on1" value="a">
<input type="hidden" name="os1" value="CheckOut">
<input type="hidden" name="first_name" value="John">
<input type="hidden" name="last_name" value="Doe">
<input type="hidden" name="address1" value="1234 Main St">
<input type="hidden" name="city" value="Sometown">
<input type="hidden" name="state" value="Tx">
<input type="hidden" name="zip" value="77025">
<div align="center">
Click on the PayPal Logo below to continue</div>
<br>
<input type="image" name="submit" src="https://secure.net/dlphost/images/orders/paypal_logo.gif" alt="Make payments with PayPal - it is fast, free and secure!">
</div>
</form>
--------------
Alan Parker
aparker@datalinkprofessionals.com
http://dlphost.com
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 10/17/2002 Posts: 2,139 Location: ,
|
When trying to access or post to the return page, I get a certificate warning and then a page cannot be displayed. Stephen Ivaskevicius PayPal/eBay, Inc. www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 12/16/2002 Posts: 6 Location: ,
|
Sorry. The actual secure server is "https://adobe.site-secure.net/dlpdev/dlphost/" instead of "https://secure.net/dlphost/". If you are actually posting to it, this would work better.
Alan Parker aparker@datalinkprofessionals.comhttp://dlphost.com
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 10/17/2002 Posts: 2,139 Location: ,
|
When trying to post or access the other return URL, I still get the certificate warning and a warning about unsecured and secured information being displayed. Have you tried using a non secured return URL to see if it works? Stephen Ivaskevicius PayPal/eBay, Inc. www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 12/16/2002 Posts: 6 Location: ,
|
To PayPalStephen: The certificate warning is because the page gets no return from PayPal. I am looking for the os1 return, <input type="hidden" name="os1" value="CheckOut">, which will address the secure server and eliminate that warning. Without that return, it directs the user to a non-secure Thank-You page that doesn't display because there is nothing to display... no record in the database for the user. To Shannon: The code is processing using PHP. It does handle the return if available. I am testing using this exact code changing only the <form action="https://secure.net/dlphost/orders/account_display.php">. This is simply posting to that return page instead of PayPal. Everything works that way. I have an html page that does that at the URL - https://adobe.site-secur...orders/paypalform2.html
Alan Parker aparker@datalinkprofessionals.comhttp://dlphost.com
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
Need to include name="rm" value="2" to have IPN variables POSTed to "return" URL for subscriptions. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 12/16/2002 Posts: 6 Location: ,
|
It's there right above the [return] URL: <input type="hidden" name="rm" value="2"> <blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"> Originally posted by paypal_pb[br]Need to include name="rm" value="2" to have IPN variables POSTed to "return" URL. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
Alan Parker aparker@datalinkprofessionals.comhttp://dlphost.com
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 12/16/2002 Posts: 6 Location: ,
|
I have found the problem! It was, as I figured, my fault in the interpretation of the PayPal documentation. I understood the format for "on0" or "on1" to be the name of the returning variable and the "os0" or "os1" to be the value of those variables. That is *not* what PayPal is sending. PayPal sends you back [option_name1], [option_name2], [option_selection1], and [option_selection2] -- all separate variables with separate values. That known, the problem is solved by parsing for *those* vaiables. Thanks for the forum to discuss issues. I appreciate all your efforts.
Alan Parker aparker@datalinkprofessionals.comhttp://dlphost.com
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
My mistake. "rm=2" only works if you have IPN active. We generally advise processing off of IPN rather than the "return" URL since the IPN is more reliable. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.197 seconds.