Jump to content

PayPal Annoyance!


glenelkins

Recommended Posts

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="[email protected]">
<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>';

Link to comment
https://forums.phpfreaks.com/topic/143581-paypal-annoyance/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.