Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11932
Latest: maxanthony1976
New This Month: 16
New This Week: 2
New Today: 0
Stats
Total Posts: 37952
Total Topics: 6680
Most Online Today: 77
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 57
Total: 58

Author Topic: Important Changes for SMF Store, SMF Classifieds, Downloads Pro, Adseller Pro  (Read 12156 times)

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14055
    • View Profile
PayPal is doing a change to IPN taking affect February 1, 2013 which affects SMF Store, SMF Classifieds, Downloads Pro,  Adseller Pro.
These products must be updated with the fix.

We have updated all our products with the latest fix and also below included a hotfix for each product affected.


SMF Store Changes in storeipn.php, storeipn2.php
Find
Code: [Select]
$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";

Change to
Code: [Select]
$header ="POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .="Content-Type: application/x-www-form-urlencoded\r\n";
if ($modSettings['store_sandbox'] == 0)
    $header .="Host: www.paypal.com\r\n";
else
    $header .="Host: www.sandbox.paypal.com\r\n";
   
$header .= "Content-Length: " . strlen($req) . "\r\n";
$header .="Connection: close\r\n\r\n";



SMF Classifieds Changes in classifiedsipn.php and classifiedsipn2.php
Code: [Select]
$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";

Change to
Code: [Select]
$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 .= "Content-Length: " . strlen($req) . "\r\n";
$header .="Connection: close\r\n\r\n";


Ad Seller Pro changes in adselleripn.php and adselleripn2.php

Code: [Select]
$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";
Change to
Code: [Select]
$header ="POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .="Content-Type: application/x-www-form-urlencoded\r\n";
if ($AdSellerSettings['seller_sandbox'] == 0)
    $header .="Host: www.paypal.com\r\n";
else
    $header .="Host: www.sandbox.paypal.com\r\n";
   
$header .= "Content-Length: " . strlen($req) . "\r\n";
$header .="Connection: close\r\n\r\n";



Downloads Pro changes in downloadsipn.php and downloadsipn2.php
Code: [Select]
$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";
Change to
Code: [Select]
$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 .= "Content-Length: " . strlen($req) . "\r\n";
$header .="Connection: close\r\n\r\n";


If you have any questions let us know
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3259 Views
Last post April 06, 2008, 06:32:47 pm
by SMFHacks
2 Replies
3694 Views
Last post August 22, 2008, 11:36:23 am
by Bar Nuthin
2 Replies
9084 Views
Last post March 17, 2009, 09:07:48 am
by knat
2 Replies
2094 Views
Last post February 03, 2013, 12:13:10 pm
by amwebby
6 Replies
8207 Views
Last post March 16, 2016, 07:54:58 am
by SMFHacks

+- Recent Topics

Are you killing your forum? by shuban
May 25, 2017, 01:26:02 pm

[Mod]Unofficial SMF 1.1.23 for PHP7 by shuban
May 25, 2017, 01:15:53 pm

Bulk Upload Option? by SMFHacks
May 25, 2017, 01:07:41 pm

nCode Image Resizer ssl sertifika ? by sempatiko
May 23, 2017, 02:50:28 pm

seo4smf_lite-3.2.0-2.1.x by sempatiko
May 23, 2017, 02:34:10 pm

SMF Staff mod button image by SMFHacks
May 22, 2017, 06:50:40 pm

License Key by SMFHacks
May 21, 2017, 08:57:45 am

BadgeAwards2 Does not work with PHP7 / SMF 2.0.14 by balon
May 18, 2017, 02:58:25 pm

SMF 2.0.14 Released with PHP 7 Support and Unofficial SMF 1.1.23 by SMFHacks
May 14, 2017, 11:49:58 pm

Error when trying to open gallery after upgrading from Gallery Lite to Pro by SMFHacks
May 04, 2017, 03:30:12 pm

Powered by EzPortal