Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12387
Latest: Altha
New This Month: 11
New This Week: 3
New Today: 1
Stats
Total Posts: 39888
Total Topics: 7022
Most Online Today: 65
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 19
Total: 19

Author Topic: Any changes in Paypal IPN ?  (Read 3672 times)

0 Members and 1 Guest are viewing this topic.

Offline diegolyanky

  • SMF Store Customer
  • Newbie
  • *****
  • Posts: 42
    • View Profile
Any changes in Paypal IPN ?
« on: October 04, 2013, 01:03:06 pm »
Hi:

I received a notification from Paypal, say:

Quote
Action Required before October 7, 2013
Merchants need to update their scripts IPN and PDT to use HTTP 1.1 and include the HTTP header "Host" and "Connection: close" in the script IPN ​​return shipping.

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

ASP
//Establezca los valores para la solicitud de regreso
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
// envío de regreso al sistema PayPal para que lo valide
$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 Sandbox environment is configured to reject HTTP requests that do not have the header "Host" HTTP 400 error with. Businesses can use the PayPal Sandbox environment to certify the changes made to your scripts IPN and PDT.

For more information about PDT and IPN, see http://www.paypal.com/pdt and http://www.paypal.com/ipn. For additional information or have any questions about this change, please contact the Technical Support team to trade through https://www.paypal.com/mts PayPal.

Sincerely,

PayPal

I'm using version 1.3.8 ... I can´t upgrade, because I have a lot of modifications... so, just tell me if I must change anything...

Thanks a lot !

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14953
    • View Profile
Re: Any changes in Paypal IPN ?
« Reply #1 on: October 04, 2013, 01:11:17 pm »
A while back yes there was it was a must fix update.
Here is patch changes to fix
http://www.smfhacks.com/index.php/topic,7099.0.html
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline diegolyanky

  • SMF Store Customer
  • Newbie
  • *****
  • Posts: 42
    • View Profile
Re: Any changes in Paypal IPN ?
« Reply #2 on: October 04, 2013, 01:14:32 pm »
Thanks to your reply...

Great !!... I'll make that changes.

But, where is located the file " storeipn2.php " ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14953
    • View Profile
Re: Any changes in Paypal IPN ?
« Reply #3 on: October 04, 2013, 01:16:25 pm »
If you have 2.0 found in the root directory of your forum if SMF 1.1.x you have storeipn.php
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline diegolyanky

  • SMF Store Customer
  • Newbie
  • *****
  • Posts: 42
    • View Profile
Re: Any changes in Paypal IPN ?
« Reply #4 on: October 04, 2013, 01:23:05 pm »
Many thanks...

Making the changes.

Regards !!

Offline diegolyanky

  • SMF Store Customer
  • Newbie
  • *****
  • Posts: 42
    • View Profile
Re: Any changes in Paypal IPN ?
« Reply #5 on: October 04, 2013, 01:30:38 pm »
And, where is located storeipn.php in smf 1.1.x ?

Sorry... I found it. Is in root lol
« Last Edit: October 04, 2013, 01:33:19 pm by diegolyanky »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14953
    • View Profile
Re: Any changes in Paypal IPN ?
« Reply #6 on: October 04, 2013, 01:31:51 pm »
Same main root directory of your SMF forum.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
4591 Views
Last post May 27, 2009, 03:01:02 pm
by Paddleducks Forum - Damien
6 Replies
5704 Views
Last post May 27, 2010, 04:22:18 pm
by Wegg
1 Replies
3294 Views
Last post May 20, 2010, 10:26:32 am
by SMFHacks
1 Replies
2480 Views
Last post September 27, 2011, 08:40:29 pm
by SMFHacks
2 Replies
3262 Views
Last post July 16, 2013, 10:10:30 am
by mrbig

+- Recent Topics

prettyurls - TroubleShooting.wiki by Rock Lee
October 10, 2019, 11:37:09 am

Some issues with adding and editing a listing by ajac63
October 07, 2019, 04:16:40 am

Problem update 1.1.21 to 2.0.15 by Rock Lee
October 06, 2019, 06:09:16 pm

[Mod]SMF 2.0.x PHP 7.2 Support by sah62
October 04, 2019, 01:46:00 pm

Ideas by shuban
October 03, 2019, 10:19:06 pm

How to space icons and multiple reacts? by shadav
October 03, 2019, 04:20:07 pm

PrettyUrls SEO Pro by Rock Lee
October 01, 2019, 09:09:38 am

How to get search preciser by SMFHacks
September 23, 2019, 10:09:56 am

How to AVOID SEO Hit when Implementing PrettyURLs by SMFHacks
September 12, 2019, 08:50:42 pm

theme by SMFHacks
September 12, 2019, 07:10:51 am

Powered by EzPortal