Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11860
Latest: landyvlad
New This Month: 12
New This Week: 1
New Today: 1
Stats
Total Posts: 37450
Total Topics: 6594
Most Online Today: 91
Most Online Ever: 2482
(April 09, 2011, 06: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 11832 times)

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 13850
    • 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
3162 Views
Last post April 06, 2008, 05:32:47 pm
by SMFHacks
2 Replies
3522 Views
Last post August 22, 2008, 10:36:23 am
by Bar Nuthin
2 Replies
8683 Views
Last post March 17, 2009, 08:07:48 am
by knat
2 Replies
1918 Views
Last post February 03, 2013, 12:13:10 pm
by amwebby
6 Replies
6436 Views
Last post March 16, 2016, 06:54:58 am
by SMFHacks

+- Recent Topics

Auto-resize? by landyvlad
January 23, 2017, 09:48:42 pm

Download mod - importing from tinyportal problem by landyvlad
January 23, 2017, 09:47:23 pm

Nochex by shuban
January 22, 2017, 09:43:25 pm

smf Gallery pro and video Plugin upload from Iphone by SMFHacks
January 20, 2017, 09:22:50 am

Download link doesn't work on Ipads by shuban
January 17, 2017, 11:15:23 am

Font Size In Latest Badges Awarded On Main Index by SMFHacks
January 12, 2017, 07:12:38 pm

Tracking members by SMFHacks
January 12, 2017, 09:56:50 am

How much does it cost to get an upgrade for this Mod? by shuban
January 11, 2017, 04:06:30 pm

Complicated MySQL Query by shuban
January 11, 2017, 02:52:03 pm

How do I make the product description PHP ready? by shuban
January 10, 2017, 07:14:39 pm

Powered by EzPortal