Home TheRandomizer Forum Index Log in Register FAQ Search
TheRandomizer Forum Index » Bug Reports » Paypal problem Goto page Previous  1, 2
Post new topic  Reply to topic View previous topic :: View next topic 
PostPosted: Mon Apr 25, 2005 4:14 pm Reply with quote
turk
Newbie
Joined: 03 Apr 2005
Posts: 5




OK Manish... haha bare with me please...

I have no clue to where this goes... I have basically looked the payments.php up and down and the only code that looks somewhat similiar to
Code:
<input type=\"hidden\" name=\"rm\" value=\"2\">

was the stats code not the payment gateway.

is there any way you can post the script in place or where it would go for me? Thanks a lot....


Turk
[/code]
PostPosted: Mon Apr 25, 2005 4:24 pm Reply with quote
createasite4u
Newbie
Joined: 28 Feb 2005
Posts: 7




has the old version 2.4 been updated as well

as this has the same problem?

Paul
PostPosted: Mon May 09, 2005 2:49 am Reply with quote
turk
Newbie
Joined: 03 Apr 2005
Posts: 5




Hey manish thanks for everything thus far... but I have basically looked the payments.php up and down and the only code that looks somewhat similiar to the previously used was the stats code not the payment gateway.

is there any way you can post the script in place or where it would go for me? Thanks a lot....
PostPosted: Wed May 25, 2005 10:37 pm Reply with quote
turk
Newbie
Joined: 03 Apr 2005
Posts: 5




I have noticed that there are two payments.php files. one in the admin and one in the users folders. So I don't have a payments.php in the lib folder
PostPosted: Wed May 25, 2005 11:44 pm Reply with quote
manish
Site Admin
Joined: 12 Apr 2004
Posts: 561
Location: India




Ok that fix will work for older version upto 3.0

For v2.x

Goto "lib" directory. Look for file genlib.php

Move to line number 116 approx.

Find the code
Code:
$text="
<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">
<input type=\"hidden\" name=\"cmd\" value=\"_xclick\">
<input type=\"hidden\" name=\"business\" value=\"$ce\">
<input type=\"hidden\" name=\"item_name\" value=\"$CONFIG->paymentnote\">
<input type=\"hidden\" name=\"item_number\" value=\"\">
<input type=\"hidden\" name=\"amount\" value=\"$cat\">
<input type=\"hidden\" name=\"return\" value=\"$inapoi\">
<input type=\"hidden\" name=\"cancel_return\" value=\"$CONFIG->siteurl\">
<input type=\"hidden\" name=\"no_note\" value=\"1\">
<input type=\"hidden\" name=\"currency_code\" value=\"USD\">
<input type=\"image\" src=\"https://www.paypal.com/en_US/i/btn/x-click-but02.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">
</form>
";


Replace the above with
Code:
$text="
<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">
<input type=\"hidden\" name=\"cmd\" value=\"_xclick\">
<input type=\"hidden\" name=\"business\" value=\"$ce\">
<input type=\"hidden\" name=\"item_name\" value=\"$CONFIG->paymentnote\">
<input type=\"hidden\" name=\"item_number\" value=\"\">
<input type=\"hidden\" name=\"amount\" value=\"$cat\">
<input type=\"hidden\" name=\"return\" value=\"$inapoi\">
<input type=\"hidden\" name=\"cancel_return\" value=\"$CONFIG->siteurl\">
<input type=\"hidden\" name=\"no_note\" value=\"1\">
<input type=\"hidden\" name=\"rm\" value=\"2\">
<input type=\"hidden\" name=\"currency_code\" value=\"USD\">
<input type=\"image\" src=\"https://www.paypal.com/en_US/i/btn/x-click-but02.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">
</form>
";


Best regards
Manish
 Paypal problem 
 TheRandomizer Forum Index » Bug Reports
All times are GMT  
Page 2 of 2  
Goto page Previous  1, 2
  
  
 Post new topic  Reply to topic  


Powered by phpBB© 2001-2006 phpBB Group |Randomizer Script | Web Hosting | phpBB Skin by Vjacheslav Trushkin