Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11873
Latest: Herry Lewis
New This Month: 10
New This Week: 0
New Today: 0
Stats
Total Posts: 37597
Total Topics: 6619
Most Online Today: 87
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 59
Total: 60

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

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

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

+- Recent Topics

Size of Image inserted into Forum Topic by scalesusa
February 18, 2017, 07:28:38 pm

Is it possible to not send email notification on sendpm function? by SMFHacks
February 16, 2017, 12:46:02 pm

Create One New Forum Topic with Batch Upload by SMFHacks
February 15, 2017, 09:46:26 pm

Looking for a mod that helps use include image in the post by DenDen60
February 13, 2017, 02:04:07 pm

Issue with resizing of images by SMFHacks
February 12, 2017, 07:30:16 am

Unable to upload MP4 video by landyvlad
February 12, 2017, 07:25:05 am

need help with Trader System 1.7 by snowball
February 11, 2017, 10:18:41 am

In a source file, how do I prompt guests that they are not allowed to enter by shuban
February 10, 2017, 01:35:29 pm

Do not run a query Mysql by GeorG
February 10, 2017, 08:56:57 am

Banned!!! by GeorG
February 10, 2017, 07:55:05 am

Powered by EzPortal