[BETA] Advanced PayPal Donation MOD

MODs and Styles for phpBB3.

To post your MOD or style, go to the STG MOD Manager
Forum rules
Go to http://startrekguide.com/mods to submit your MOD or style

Re: [BETA] Advanced PayPal Donation MOD

Postby Jaftica » 13 Jul 2011, 21:31

Thanks!! It's much appreciated coming from a pro. I'll make the changes and see what gives. Thanks again.
________________________
Ed
"Be kinder than necessary for everyone
you meet is fighting some kind of battle."
________________________
IndexWa.org
User avatar
Jaftica    
Supporter
Supporter
 
Posts: 90
Joined: 03 Oct 2010, 13:55
Location: Index, WA. or the State of shock most of the time.
Favorite Team: Seahawks
Gender: Male
phpBB Knowledge: 5


Re: [BETA] Advanced PayPal Donation MOD

Postby Rodolphe » 14 Jul 2011, 06:49

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!


Great, many thanks !

Rodolphe
Rodolphe
Supporter
Supporter
 
Posts: 3
Joined: 17 Apr 2008, 15:39
Gender: Male
phpBB Knowledge: 5

Re: [BETA] Advanced PayPal Donation MOD

Postby Rodolphe » 14 Jul 2011, 07:11

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 :shock:
Can I stop this ?
Sorry for my bad English...

Rodolphe
Rodolphe
Supporter
Supporter
 
Posts: 3
Joined: 17 Apr 2008, 15:39
Gender: Male
phpBB Knowledge: 5

Re: [BETA] Advanced PayPal Donation MOD

Postby Rodolphe » 14 Jul 2011, 07:33

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.


Great, thank you very much.
Rodolphe
Supporter
Supporter
 
Posts: 3
Joined: 17 Apr 2008, 15:39
Gender: Male
phpBB Knowledge: 5

Re: [BETA] Advanced PayPal Donation MOD

Postby neuropass » 22 Jul 2011, 10:35

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 :shock:
Can I stop this ?
Sorry for my bad English...

Rodolphe


the first post tells you how to fix that.
User avatar
neuropass
Supporter
Supporter
 
Posts: 36
Joined: 27 Nov 2009, 07:38
Gender: Male
phpBB Knowledge: 2

Re: [BETA] Advanced PayPal Donation MOD

Postby kryp2nite26 » 11 Sep 2011, 21:13

Could someone please help me install this using a theme other than prosilver?
kryp2nite26
Crewman
Crewman
 
Posts: 4
Joined: 14 Nov 2010, 22:25
Gender: Male
phpBB Knowledge: 6

Re: [BETA] Advanced PayPal Donation MOD

Postby neuropass » 12 Sep 2011, 17:11

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


what style are you using?
User avatar
neuropass
Supporter
Supporter
 
Posts: 36
Joined: 27 Nov 2009, 07:38
Gender: Male
phpBB Knowledge: 2

Re: [BETA] Advanced PayPal Donation MOD

Postby kryp2nite26 » 12 Sep 2011, 19:34

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


what style are you using?



I got it to work . ProSkater helped me out. But thank you for your offer of assistance. Does anyone know if the donation bar/monthly goals feature was ever implemented?
kryp2nite26
Crewman
Crewman
 
Posts: 4
Joined: 14 Nov 2010, 22:25
Gender: Male
phpBB Knowledge: 6

Re: [BETA] Advanced PayPal Donation MOD

Postby Jaftica » 13 Sep 2011, 09:44

Somebody created one. It's in this forum a page or two or three back.
User avatar
Jaftica    
Supporter
Supporter
 
Posts: 90
Joined: 03 Oct 2010, 13:55
Location: Index, WA. or the State of shock most of the time.
Favorite Team: Seahawks
Gender: Male
phpBB Knowledge: 5

Re: [BETA] Advanced PayPal Donation MOD

Postby bravoleader » 15 Sep 2011, 02:51

Hi, i've just donated cause i use this mod and i think it is good to support devs.
But i do not see my name in orange as a supporter.
What should i do/ who should i contact?

edit: while this situation gets sorted, i'd love to ask some questions about the mod.
After every payment i'm getting one pm per user that made the payment (so multiple pms fixed) but in every pm there's written that the transaction is unconfirmed and i have to click a link to confirm it.
I click it and i get redirected to the donate page. After some php code inspection i noticed that i have to send the index.php page 2 parameters (action and transaction id) but even if i put those 2 manually i get an error of Transaction Verification Failed.
so in the end 3 problems
1) in every pm i recieve there's written that the transaction is not confirmed (but every donator gets added to the right group)
2) the link of this confirmation page is blank
3) if i try to go manually to transaction confirmation page i get the error.
Thanks for any help

F
bravoleader    
Supporter
Supporter
 
Posts: 10
Joined: 15 Sep 2011, 02:36
Gender: Male
phpBB Knowledge: 7

PreviousNext

Return to phpBB3 Customizations

Who is online

Users browsing this forum: Ezooms Bot and 12 guests