Need a little PHP help - New Paypal validation.
#5
That would have been far more amusing for someone...

Though it's funny. The script I posted (theirs) contains a typo, and It took me putting it in dreamweaver and the page going full red before I noticed. I e-mailed them about it, and asked if it was just a missing " instead of a ;, and they argued with me until about 90 minutes ago via e-mail that I was wrong, and that it didn't have an error.

Their final email:

Quote:Recently you requested assistance from PayPal Merchant Technical Services. Below is a summary of your request and our response.

We will assume your issue has been resolved if we do not hear from you within 7 days.

Thank you for allowing us to be of service to you.

----------------------------

You are correct, there are a couple typos in the email. The correct header information you should be using is below:
// post back to PayPal system to validate
$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";

You can copy the above directly into your integration if you'd like.

Thank you for your patience.

Sincerely,
XXXX

Finally. Someone who would just look at it!
nobody ever slaughtered an entire school with a smart phone and a twitter account – they have, however, toppled governments. - Jim Wright
Reply


Messages In This Thread
RE: Need a little PHP help - New Paypal validation. - by shoju - 09-14-2012, 08:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)