close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

IPN Verification Postback to HTTPS

Thread began 2/21/2017 4:16 pm by Dave Buchholz | Last modified 2/28/2017 11:50 am by Ray Borduin | 80 views | 3 replies |

Dave BuchholzBeta Tester

IPN Verification Postback to HTTPS

See https://www.paypal-knowledge.com/infocenter/index?page=content&id=FAQ1916&expand=true&locale=en_US

PayPal will be requiring post backs, which are controlled by the WA_isValidPayPal function to be to https from 30th June.

I am assuming that this part off the function:

$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\r\n";
$fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);

Will need to be changed accordingly and from the url I posted I assume it will look like this ?

$header = "POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Host: ipnpb.paypal.com\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
$fp = fsockopen ('ipnpb.paypal.com', 443, $errno, $errstr, 30);

I am working with a live site so I want to make sure I get this right 1st time!

Thanks,

Dave Buchholz
I-CRE8 Limited

Sign in to reply to this post

Ray BorduinWebAssist

It looks like you need to add "ssl://" to the front of the url to use ssl for an fsockopen call. Other than that it looks correct.

I think you can still use www.paypal.com but if you read you should use ipnpb.paypal.com then that should work as well.

Sign in to reply to this post

Dave BuchholzBeta Tester

Thanks Ray, that advice is exactly why I ask here first before blundering in !

Sign in to reply to this post

Dave BuchholzBeta Tester

Just to follow up on this after testing changing the code to this worked:

$header = "POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n";
$header .= "Host: www.paypal.com\r\n";
$header .= "Connection: close\r\n\r\n";
$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);

for some reason no version of the code using the ipnpb.paypal.com domain would work

Regards,

Dave Buchholz
I-CRE8 Limited

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...