Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Amazon
show cart or checkout0 items
Cart Value: 0.00

Forums » DragonflyCMS Projects » Treasury and Supporters » PayPal Update Required?
PayPal Update Required?
For managing donations, site expenses and supporters - further enhancements only in the Donations Pro version.
Topic initiation via Bugger.

Go to page 1, 2  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index »  eCommerce » Treasury and Supporters

View previous topic :: View next topic  
Author Message
Kinsman
Nice Poster
Nice Poster

Offline Offline
Joined: Mar 20, 2010
Posts: 17

PostPosted: Wed Aug 07, 2013 5:19 am
Post subject: PayPal Update Required?

I got this email from Paypal today, so just passing it along.

Quote::
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 www.paypal.com (please make necessary changes if you are using ipnpb.paypal.com):

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

Perl
$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
// 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: www.paypal.com\r\n";
$header .="Connection: close\r\n\r\n";

Java
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 www.paypal.com/pdt and www.paypal.com/ipn. For additional information or questions about this change, please contact PayPal's Merchant Technical Support team via www.paypal.com/mts.


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache2/MySQL5/PHP5/9..3.3.0
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Aug 07, 2013 6:30 am
Post subject: Re: PayPal Update Required?

Thanks - there's a bit more to it than that, but no problem. I also have to update Storez.

I modified the SMF versions last year and updated them again last month, and they work fine. Just a matter of getting to the DF, VB and MYBB versions, soon.

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Kinsman
Nice Poster
Nice Poster

Offline Offline
Joined: Mar 20, 2010
Posts: 17

PostPosted: Sat Sep 21, 2013 1:06 pm
Post subject: Re: PayPal Update Required?

Any news?


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache2/MySQL5/PHP5/9..3.3.0
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Sat Sep 21, 2013 7:28 pm
Post subject: Re: PayPal Update Required?

Updates are in downloads section.

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Witewolf
New Poster
New Poster

Offline Offline
Joined: Aug 18, 2013
Posts: 1
Location: US
PostPosted: Sun Sep 22, 2013 8:29 am
Post subject: Re: PayPal Update Required?

Thanks Phoenix! This update work on Dragonfly v9.2.1?


Witewolf's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
OS Unix/Apache 2/MySQL 5/PHP 5/CMS 9.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Sun Sep 22, 2013 9:11 am
Post subject: Re: PayPal Update Required?

Treasury will, for now, but Storez won't.

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Kinsman
Nice Poster
Nice Poster

Offline Offline
Joined: Mar 20, 2010
Posts: 17

PostPosted: Tue Oct 22, 2013 11:22 am
Post subject: Re: PayPal Update Required?

Thanks! Great news.


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache2/MySQL5/PHP5/9..3.3.0
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Tue Oct 22, 2013 11:31 am
Post subject: Re: PayPal Update Required?

@Witewolf - I may have misled you regarding Storez and DF 9.2.1.

The ipnstorez.php file itself should work for all versions of Storez and DF - as I recall, it isn't using a language file.

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Kinsman
Nice Poster
Nice Poster

Offline Offline
Joined: Mar 20, 2010
Posts: 17

PostPosted: Tue Oct 22, 2013 5:46 pm
Post subject: Re: PayPal Update Required?

Is there a language file missing for supporters? Or did i just do something horribly wrong like usual???

www.junglewraiths.net/...Supporters


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache2/MySQL5/PHP5/9..3.3.0
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Tue Oct 22, 2013 6:32 pm
Post subject: Re: PayPal Update Required?

hmm, not something you did - looks like something I did.

For some reason, I had upgraded Supporters language to DF 9.3 style i.e. the lang file is now within modules/Supporters/l10n/

You will need to delete the file language/english/supporters.php

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Kinsman
Nice Poster
Nice Poster

Offline Offline
Joined: Mar 20, 2010
Posts: 17

PostPosted: Wed Oct 23, 2013 12:09 pm
Post subject: Re: PayPal Update Required?

All fixed, thanks. Smile


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache2/MySQL5/PHP5/9..3.3.0
Back to top
View user's profile Visit poster's website
Kinsman
Nice Poster
Nice Poster

Offline Offline
Joined: Mar 20, 2010
Posts: 17

PostPosted: Fri Nov 01, 2013 3:28 pm
Post subject: Re: PayPal Update Required?

Bummer, someone just used it for the first time, the payment worked, and is in our account, but treasury shows no record, of anything!?

so of course he sees nothing in his profile, or block etc etc.

any thoughts on what I might have screwed up there? I pretty much just uploaded the files, disabled treasury, updated, then re-enabled it again.


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache2/MySQL5/PHP5/9..3.3.0
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Fri Nov 01, 2013 3:40 pm
Post subject: Re: PayPal Update Required?

Was it just delayed (can happen sometimes) or did you add that (poogs) manually?

Your ipntreas.php debug link works fine.

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Kinsman
Nice Poster
Nice Poster

Offline Offline
Joined: Mar 20, 2010
Posts: 17

PostPosted: Sat Nov 02, 2013 4:44 am
Post subject: Re: PayPal Update Required?

Mmm, I didn't think about it being delayed, so added him manually.

I will leave the next one overnight and see what happens.

Also we don't have this in the footer, is it needed?

require_once('modules/Treasury/update.inc');


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache2/MySQL5/PHP5/9..3.3.0
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Sat Nov 02, 2013 6:37 am
Post subject: Re: PayPal Update Required?

If you check the log section, any PayPal visit should be there.

Somewhere in your PayPal account is an area that lets you know of any return IPN issues - if it can't reach your site for whatever reason, it pauses and comes back several times. Mind you, if that becomes a frequent occurrence, PayPal gets a little testy and lets you know.

Basically update.inc monitors elapsed subscribers, so it won't affect your IPN.

Since I had already tested the changes on SMF, vB and MyBB sites, I didn't run a sandbox test on DF - looks like I'll have to do it after all.

Edit: hmm, just did a test and got this - you have an extra url in your return address - not sure yet whether this arises from you or me, though I don't get it on my site, albeit the DonationsPro version.
PHP:
	<div style="text-align:center; margin-top:5px;">
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="cn" value="Comments" />
<input type="hidden" name="image_url" value="http://junglewraiths.net/images/http://www.junglewraiths.net/images/logo.gif" />
<input type="hidden" name="notify_url" value="http://junglewraiths.net/http://www.junglewraiths.net/ipntreas.php" />
<input type="hidden" name="cancel_return" value="http://junglewraiths.net/http://www.junglewraiths.net/index.php?name=Treasury" />
<input type="hidden" name="return" value="http://junglewraiths.net/http://www.junglewraiths.net/index.php?name=Treasury&file=thanks" />
<
input type="image" src="modules/Treasury/images/x-click-but04.gif" name="I1" style="border:0; width:62px; height:31px;" />
</
div>


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index »  eCommerce » Treasury and Supporters
Page 1 of 2
All times are GMT + 9.5 Hours
Go to page 1, 2  Next



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum