glenelkins Posted February 3, 2009 Share Posted February 3, 2009 Hi I keep getting the following error from paypal with a subscription button, it doest make sense at all because the form posted looks fine to me!: "The link you have used to enter the PayPal system is invalid. Please review the link and try again" Here is the HTML from page source: <form action="https://www.paypal.com/uk/cgi-bin/webscr" method="post"> <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> <input type="hidden" name="cmd" value="_xclick-subscriptions"> <input type="hidden" name="business" value="david@pelhampuppets.uk.com"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://www.pelhampuppets.uk.com/index.php?s=payment_confirmation&account_id=48"> <input type="hidden" name="cancel_return" value="http://www.pelhampuppets.uk.com/cancelpayment.php"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="GBP"> <input type="hidden" name="lc" value="UK"> <input type="hidden" name="item_name" value="Test Subscription"> <input type="hidden" name="bn" value="PP-SubscriptionsBF"> <input type="hidden" name="a3" value="5.00"> <input type="hidden" name="p3" value="365"> <input type="hidden" name="t3" value="D"> <input type="hidden" name="src" value="1"> <input type="hidden" name="sra" value="1"> </form> Here is the PHP which generates the form: $Core =& new Core(); echo ' <form action="' . $Core->paypal_url . '" method="post"> <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> <input type="hidden" name="cmd" value="_xclick-subscriptions"> <input type="hidden" name="business" value="' . $Core->business_email . '"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="' . $Core->paypal_return_url . $Core->paypal_return_url_ext . '&account_id=' . $Core->return_session_var ( "customer_id" ) . '"> <input type="hidden" name="cancel_return" value="' . $Core->paypal_cancel_url . '"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="' . $Core->currency_code . '"> <input type="hidden" name="lc" value="' . $Core->country_code . '"> <input type="hidden" name="item_name" value="' . $Core->sub_name . '"> <input type="hidden" name="bn" value="PP-SubscriptionsBF"> <input type="hidden" name="a3" value="' . $Core->sub_amt . '"> <input type="hidden" name="p3" value="' . $Core->sub_per . '"> <input type="hidden" name="t3" value="D"> <input type="hidden" name="src" value="1"> <input type="hidden" name="sra" value="1"> </form>'; Quote Link to comment https://forums.phpfreaks.com/topic/143581-paypal-annoyance/ Share on other sites More sharing options...
glenelkins Posted February 3, 2009 Author Share Posted February 3, 2009 bump Quote Link to comment https://forums.phpfreaks.com/topic/143581-paypal-annoyance/#findComment-753402 Share on other sites More sharing options...
Mikedean Posted February 3, 2009 Share Posted February 3, 2009 Isn't the URL supposed to be: https://www.paypal.com/cgi-bin/webscr Basically removing the 'UK' from yours. Quote Link to comment https://forums.phpfreaks.com/topic/143581-paypal-annoyance/#findComment-753491 Share on other sites More sharing options...
glenelkins Posted February 3, 2009 Author Share Posted February 3, 2009 no that one doesnt work either, im still getting : The link you have used to enter the PayPal system is invalid. Please review the link and try again. Quote Link to comment https://forums.phpfreaks.com/topic/143581-paypal-annoyance/#findComment-753544 Share on other sites More sharing options...
JonnoTheDev Posted February 3, 2009 Share Posted February 3, 2009 I agree with Mikedean. That POST URL I have never seen. Why not call PayPal tech support? Quote Link to comment https://forums.phpfreaks.com/topic/143581-paypal-annoyance/#findComment-753551 Share on other sites More sharing options...
glenelkins Posted February 3, 2009 Author Share Posted February 3, 2009 its ok i found out that paypal has changed some of the variables you need to send over...works ok now cheers !! Quote Link to comment https://forums.phpfreaks.com/topic/143581-paypal-annoyance/#findComment-753595 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.