

iKeirNez wrote:maclane wrote:Fixes
Here is some help for all of you helpless Googlers. As many have experienced, using Google Chrome presents a big problem... it doesn't work. The fix in the first post fixes this problem for the most part, but not entirely. If you change the url to https, the mod will fail when Paypal tries to verify the payment using IPN.
Here is the fix from the first post:Q. There is an error when attempting to access the sandbox, or when using Google Chrome to donate. Submit brings you to the PayPal home page instead of the correct page.
A. The PayPal URL is set to port 80 (http), but PayPal redirects to port 443 (https), but for some reason, Google Chrome does not handle that correctly.
in functions_paypal.php
FIND:
- Code: Select all
$this->u_paypal = ($config['paypal_sandbox'] || PAYPAL_DEBUG) ? 'http://www.sandbox.paypal.com/cgi-bin/webscr' : 'http://www.paypal.com/cgi-bin/webscr';
REPLACE, WITH:
- Code: Select all
$this->u_paypal = ($config['paypal_sandbox'] || PAYPAL_DEBUG) ? 'https://www.sandbox.paypal.com/cgi-bin/webscr' : 'https://www.paypal.com/cgi-bin/webscr';
The problem lies in that the verification function uses the same variable "$this->u_paypal". When Paypal tries to verify the payment and the https address is used, there is an error. This will cause Paypal's IPN to fail.
Here is the fix:
Go into functions_paypal.php
Find the function "public function validate_data($data = array())"
Inside of that function there is the following line "$parse_url = parse_url($this->u_paypal);"
Change "$this->u_paypal" to "$this->u_paypal_ver" in that line.
Then add this line
- Code: Select all
$this->u_paypal_ver = ($config['paypal_sandbox'] || PAYPAL_DEBUG) ? 'http://www.sandbox.paypal.com/cgi-bin/webscr' : 'http://www.paypal.com/cgi-bin/webscr';
after this line
- Code: Select all
$this->u_paypal = ($config['paypal_sandbox'] || PAYPAL_DEBUG) ? 'https://www.sandbox.paypal.com/cgi-bin/webscr' : 'https://www.paypal.com/cgi-bin/webscr';
All done!
Thanks I will try this later!




daneh wrote:I have fixed the issue with multiple pm's. Attached is functions_paypal.php just replace your existing one with this one in the donate folder. The problem was with the original code it never checked whether the donation already existed in the database and sometimes paypal sends multiple IPN's and those multiple IPN's were triggering the pm's to be sent each time.


Rodolphe wrote:Lot of private messages sent to founders because of the lack of validation.
Ok now I think for new donations, bu PM are still posted every 10 minutes![]()
Can I stop this ?
Sorry for my bad English...
Rodolphe




kryp2nite26 wrote:Could someone please help me install this using a theme other than prosilver?


neuropass wrote:kryp2nite26 wrote:Could someone please help me install this using a theme other than prosilver?
what style are you using?






Return to phpBB3 Customizations
Users browsing this forum: No registered users and 12 guests