Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12263
Latest: alma422
New This Month: 14
New This Week: 6
New Today: 1
Stats
Total Posts: 39423
Total Topics: 6947
Most Online Today: 52
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 30
Total: 30

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

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14734
    • 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 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
1 Replies
3585 Views
Last post April 06, 2008, 06:32:47 pm
by SMFHacks
2 Replies
4078 Views
Last post August 22, 2008, 11:36:23 am
by Bar Nuthin
2 Replies
9776 Views
Last post March 17, 2009, 09:07:48 am
by knat
2 Replies
2660 Views
Last post February 03, 2013, 12:13:10 pm
by amwebby
9 Replies
13282 Views
Last post June 01, 2018, 08:39:36 pm
by Nicole

+- Recent Topics

[Mod]Push Notifications by SMFHacks
January 18, 2019, 11:10:41 pm

Invitation System Query by SMFHacks
January 14, 2019, 07:36:06 pm

Transactions stopped working! Help! by Hurkulez
January 14, 2019, 10:08:41 am

[Solved]Credit Transactions not working by Hurkulez
January 14, 2019, 09:45:27 am

COMMUNITY SUITE BRANDING REMOVED by SMFHacks
January 14, 2019, 07:10:14 am

Members Can't create a Category to upload photos to by SMFHacks
January 13, 2019, 09:34:31 am

Tinyportal and Mkportal.Which is better? by SMFHacks
January 08, 2019, 02:16:22 pm

8: Undefined index: shortcuts_mac by marcimila
January 05, 2019, 08:06:57 pm

Category by SMFHacks
January 03, 2019, 11:37:44 pm

Community Suite On Sale $200 by SMFHacks
January 02, 2019, 04:12:12 pm

Powered by EzPortal