[ABD] Donation MOD with Multiple Payment Options and IPN

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20890
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by RMcGirr83 » Thu May 23, 2013 6:58 pm

Try purging the cache
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

ultimateguy
Registered User
Posts: 48
Joined: Tue Mar 26, 2013 11:53 pm

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by ultimateguy » Thu May 23, 2013 10:50 pm

I did. But even then I see no difference. :|

User avatar
Fr3eMan
Registered User
Posts: 32
Joined: Tue Jul 02, 2013 12:49 am

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Fr3eMan » Fri Jul 05, 2013 12:46 am

Hello I install this mod without problems but when I enable I see this in the forum:

Image

What's I miss? :roll:

User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Siropu » Fri Jul 05, 2013 7:56 am

Open: language/en/common.php

Find:

Code: Select all

?>
Add before:

Code: Select all

// Begin Donation MOD with MPO
$lang = array_merge($lang, array(
	'DONATE'                    => 'Donate',
	'DONATE_EXPLAIN'            => 'Support us by making a donation.',
	'DONORLIST'                 => 'Donors',
	'DONORLIST_EXPLAIN'         => 'View the donors list.',
));
// END Donation MOD with MPO
Check out my MODs.

User avatar
Fr3eMan
Registered User
Posts: 32
Joined: Tue Jul 02, 2013 12:49 am

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Fr3eMan » Fri Jul 05, 2013 9:43 pm

Now working nice!
Thanks!! :D

User avatar
Fr3eMan
Registered User
Posts: 32
Joined: Tue Jul 02, 2013 12:49 am

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Fr3eMan » Sat Jul 06, 2013 12:46 am

new problem... :shock:
now all the icons and bar disappears...

update:

problem solved :)

Cyb_
Registered User
Posts: 4
Joined: Sat Aug 24, 2013 8:15 pm

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Cyb_ » Tue Aug 27, 2013 11:20 pm

Siropu, thanks for this mod :D

It's possible to add fields in ACP that :

if a user donate 1€ to forum add this user to donors group only 1 month, after this return old group automatically ? ; if a user donate 10€ to forum add this user to donors group only 1 year, after this return old group automatically ? , etc....
sorry for my bad english

User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Siropu » Wed Aug 28, 2013 7:00 am

It's possible but I'm not adding any new functionality at this point.
Check out my MODs.

Drakken
Registered User
Posts: 144
Joined: Thu Jun 12, 2003 6:59 pm
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Drakken » Wed Aug 28, 2013 6:12 pm

This is working great on my website. Love the IPN abilities, Thanks!

Cyb_
Registered User
Posts: 4
Joined: Sat Aug 24, 2013 8:15 pm

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Cyb_ » Wed Aug 28, 2013 8:27 pm

Siropu wrote:It's possible but I'm not adding any new functionality at this point.
Thanks, Siropu ;)

Could you give me some ideas for make this or an example, please.


Thanks in advance
sorry for my bad english

User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Siropu » Wed Aug 28, 2013 8:46 pm

There are many changes that needs to be done so if you don't know PHP, you can't do this.
Check out my MODs.

User avatar
Raul [ThE KuKa]
Jr. Extension Validator
Posts: 4409
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Raul [ThE KuKa] » Thu Sep 12, 2013 4:40 pm

PayPal wrote:In a bulletin dated the 18th of October, 2011, we announced that we were going to expand the number of IP addresses for http://www.paypal.com to improve our site’s performance, scalability and availability. As part of this transition, we planned to discontinue support for HTTP 1.0 protocol starting the 7th of October, 2013.

We have recently identified that this change may impact the ability of some of our merchants to perform IPN (Instant Payment Notification) post-back validation or PDT (Payment Data Transfer) posts to http://www.paypal.com and ipnpb.paypal.com. This happens when the IPN or PDT scripts use HTTP 1.0 protocol and do not include the “Host: http://www.paypal.com” or “Host: ipnpb.paypal.com” header in the HTTP request.

Additional Details

Starting the 7th of October, 2013, we will require all incoming requests to have a “Host” header which complies with HTTP 1.1 Specifications. This header was not required under HTTP 1.0. IPN and PDT scripts using HTTP 1.0 may start failing with “HTTP/1.0 400 Bad Request” errors after the 7th of October, 2013, which will result in IPN messages not being validated successfully, or PDT scripts not being able to retrieve transaction information.

Action Required before the 7th of October, 2013

Merchants need to update their IPN and/or PDT scripts to use HTTP 1.1, and include the “Host” and “Connection: close” HTTP header in the IPN postback script.

Example with Host as http://www.paypal.com (please make necessary changes if you are using ipnpb.paypal.com):

ASP

Code: Select all

//Set values for the request back 
req.Method="POST"; 
req.Host="'www.paypal.com'"; 
req.ContentType="application/x-www-form-urlencoded";
Perl

Code: Select all

$req=HTTP::Request->new('POST', 'https://www.paypal.com/cgi-bin/webscr');
$req->content_type('application/x-www-form-urlencoded');
$req->header(Host=> 'www.paypal.com');
$req->header(Connection=> 'close');
PHP

Code: Select all

// post back to PayPal system to validate
$header="POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .="Content-Type: application/x-www-form-urlencoded\r\n";
$header .="Host: http://www.paypal.com\r\n"; 
$header .="Connection: close\r\n\r\n";
Java

Code: Select all

HttpsURLConnection  uc=(HttpsURLConnection) u.openConnection();
uc.setDoOutput(true);
uc.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
uc.setRequestProperty("Host", "www.paypal.com");
uc.setRequestProperty("Connection", "Close");
The PayPal Sandbox has been configured to reject any HTTP requests without the “Host” header with HTTP 400 error. Merchants can use the Sandbox environment to certify the changes to their IPN and PDT scripts.

For more information on PDT and IPN, please refer to http://www.paypal.com/pdt and http://www.paypal.com/ipn. For additional information or questions about this change, please contact PayPal's Merchant Technical Support team via https://www.paypal.com/mts.

Sincerely,
PayPal
To FIX this...

OPEN /root/donation/ipn.php file

FIND:

Code: Select all

        // post back to PayPal system to validate
        $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
        $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
        $header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
        $fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);
REPLACE WITH:

Code: Select all

        // post back to PayPal system to validate
        $header .= "POST /cgi-bin/webscr HTTP/1.1\r\n";
        $header .= "Host: http://www.paypal.com\r\n";
        $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
        $header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
        $header .= "Connection: Close\r\n\r\n";
        $fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);
Thanks Dugi by the solution in another MOD and other file, but also applies to this MOD.
Last edited by Raul [ThE KuKa] on Fri Sep 13, 2013 4:15 pm, edited 1 time in total.
If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
phpBB International Support Team (Spanish - Español) :flag_es: Online Since 2003 - 15th anniversary
🎨phpBB Professional Premium Themes🔥
Author Translations (Spanish - Spain) :two_hearts:

:warning: I don't support those without the copyright Spanish translation. :warning:

FoulFoot
Registered User
Posts: 261
Joined: Mon Jun 23, 2003 1:04 am
Location: Honolulu, HI
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by FoulFoot » Thu Sep 12, 2013 7:25 pm

This isn't going to require the "Host:" and "Connection:" strings from above, too?

Code: Select all

$header .="Host: http://www.paypal.com\r\n"; 
$header .="Connection: close\r\n\r\n";
Foul

User avatar
Raul [ThE KuKa]
Jr. Extension Validator
Posts: 4409
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Raul [ThE KuKa] » Fri Sep 13, 2013 4:17 pm

Yes, sorry Foul. :oops:

Edits changed, I think it should work properly, but Siropu should tell us something... ;)

Regards.
If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
phpBB International Support Team (Spanish - Español) :flag_es: Online Since 2003 - 15th anniversary
🎨phpBB Professional Premium Themes🔥
Author Translations (Spanish - Spain) :two_hearts:

:warning: I don't support those without the copyright Spanish translation. :warning:

Cyb_
Registered User
Posts: 4
Joined: Sat Aug 24, 2013 8:15 pm

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Post by Cyb_ » Sat Sep 14, 2013 9:12 pm

Siropu wrote:There are many changes that needs to be done so if you don't know PHP, you can't do this.
ok, thanks ;)
I know basics of php and a few things javascript, jquery, etc...
but don't have time to dedicate for this.

Edit:
I found a mod that made some things that I need :) : viewtopic.php?f=70&t=2126610
sorry for my bad english

Locked

Return to “[3.0.x] Abandoned MODs”

Who is online

Users browsing this forum: Tbot [Bot] and 24 guests