Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in
  • Welcome
    • Guidelines
    • News and Events
    • Suggestions for PayPal
    • General Discussions
  • PayPal Help Community
    • Managing Account
    • Transactions
    • Wallet
    • Security and Fraud
    • Products & Services
    • Reporting
  • MTS Community
    • PayPal Upgrade Community
    • PayPal Payments Standard
    • REST APIs
    • NVP/SOAP APIs
    • SDKs
    • Sandbox Environment
    • PayPal Reporting
    • Payflow
    • Ideas for MTS
    • Client-side Integration
    • Server-side Integration
  • The Archives
    • PayPal Help Community Archives
      • Managing Account Archives
      • Transactions Archives
      • Wallet Archives
      • Security and Fraud Archives
      • Products & Services Archives
      • Reporting Archives
    • Help Community
      • PayPal Basics Archives
      • Payments Archives
      • My Money Archives
      • My Account Archives
      • Disputes and Limitations Archives
      • Products and Services Archives
      • PayPal Credit Archives
    • Merchant Community
      • Merchant Products
      • Business Tools Archives
      • Reporting Archives
      • Managing Risk and Fraud Archives
    • Help Archives
      • About Business (Archive)
      • About Payments (Archive)
      • About Settings (Archive)
      • About eBay (Archive)
      • About Protections (Archive)
      • About Products (Archive)
    • Social and Your Voice Archives
      • Off Topic (Archive)
      • My Feedback for PayPal (Archive)
    • About PayPal Archives
      • Watercooler (Archive)
      • Tax Information (Archive)
      • Fees (Archive)
      • eBay and PayPal (Archive)
      • Coupons and promotions (Archive)
    • My Account Archives
      • My account settings (Archive)
      • Account limits and verification (Archive)
      • Account balance (Archive)
      • Bank accounts and credit cards (Archive)
    • Payments Archives
      • Sending money (Archive)
      • Receiving money (Archive)
      • Refunds (Archive)
      • Donations and Fundraising (Archive)
    • Disputes and Security Archives
      • Disputes and claims (Archive)
      • Fraud, phishing and spoof (Archive)
    • My Business Archives
      • Merchant services (Archive)
      • Reporting and tracking (Archive)
      • Shipping (Archive)
    • PayPal Products Archives
      • PayPal Debit Mastercard (Archive)
      • PayPal Extras MasterCard (Archive)
      • PayPal Mobile & Other Services (Archive)
      • Student Accounts (Archive)
      • Bill Me Later (Archive)
    • Getting to know PayPal
      • My PayPal account
      • Security and protection
    • Receiving and sending money
      • Buying with PayPal
      • Selling with PayPal
    • PayPal Here UK
      • PayPal Here News and Events
      • PayPal Here Community
      • Chip and Pin Card Reader
      • PayPal Here App

The Community Forum is not available for new posts or responses; previous posts remain available to review. For comprehensive support options, please visit PayPal.com/HelpCenter
Merchant Technical Support: For technical support and related questions, please visit our Technical Support Help Center or Developer Central

If you want to report illegal content under the EU Digital Services Act, please do so here

since ‎Nov-22-2012
madein83
madein83 Contributor
Contributor
4
Posts
0
Kudos
0
Solutions
Your 3rd PayPal Anniversary
Your PayPal Anniversary
Your 5th PayPal Anniversary
The Return
Organized
Ice Breaker
Active
View all
Latest Contributions by madein83
  • Topics madein83 has Participated In
  • Latest Contributions by madein83

Re: paypal IPN not returning VALID or INVALID

by madein83 Contributor in Selling on your website
‎Nov-28-2012 07:13 AM
‎Nov-28-2012 07:13 AM
Hi, i think i may have it sorted, just checking now. ... View more

Re: paypal IPN not returning VALID or INVALID

by madein83 Contributor in Selling on your website
‎Nov-26-2012 04:18 AM
‎Nov-26-2012 04:18 AM
Hi,   I've rang support and was told that theres about a 3 week response time with MTS....im sorry but i cant wait 3 weeks to hear a response on a technical question.....im getting closer through trial and error so if some one could answer me on this questions i would greatly appreciate it.   I am emailing myself the $res variable after the strcmp function checks for VERIFIED or INVALID.....but each time it loops through i am also putting $res into a new variable like so $newres=$newres.$res along with the strcmp result.   Now my email containts the following.   Res: VERIFIED New Res: HTTP/1.0 200 OK (-14) X-Frame-Options: SAMEORIGIN (2) Strict-Transport-Security: max-age=14400 (-3) Content-Type: text/html; charset=UTF-8 (-19) Date: Mon, 26 Nov 2012 11:46:29 GMT (-18) Content-Length: 8 (-19) Connection: close (-19) Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=SQms2OmWjtZJgiXRa7nbgPf0NvIT_OaaVjgHZoc_dpkvUXsC9_lIgxEsc52KoCURQU9rtVCXRyyDpJL-Bfjn4iu3puouvJuVPbCEPVNHQ1TsxPm8qqL7Z7xyJ5HykYS_aYaOAW%7c_6Tmgke76Nr4yHIVQG8vY-cl75QIh9Px_Fdj2-hfdHejAHBCSW0JBmIqkdv87a9d99Uatm%7cuv98AlMvEZ1yh4zrP-ivzJTrNYJJiR6-CylO7gJpFY6cJYc1Ei00KwJm1mGt7yFuMm0AM0%7c1353930389; domain=.paypal.com; path=/; Secure; HttpOnly (-3) Set-Cookie: cookie_check=yes; expires=Thu, 24-Nov-2022 11:46:29 GMT; domain=.paypal.com; path=/; Secure; HttpOnly (-3) Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly (-3) Set-Cookie: navlns=0.0; expires=Sun, 21-Nov-2032 11:46:29 GMT; domain=.paypal.com; path=/; Secure; HttpOnly (-3) Set-Cookie: TSd78272=8e29c5728b513f4ed1998b625ef093ea9e546f2e28af491a50b35694a0e24589ef5956ad634137d16081497ffaa6df6385ae782bba64fcf83ecccf34b4608ba71e873c42; Path=/ (-3) Set-Cookie: aksession=1353930689~id=cookieC4Bd+Hk8wStNxlCAhTxA+GFDewf91zzC33Zq337NzCiG6M8pq0f0ezcV+IO6ysBLznl6r7v9v3To4F4Y+vE0lhq2vVrTkzKyRYWlHm3bMvvrAtDkb+e5TluoPCH9iiAo; expires=Mon, 26-Nov-2012 11:51:29 GMT; path=/; domain=.paypal.com (-3) (-73)  So $res is VERIFIED but when i do strcmp and add $res to a new variable it seems to be missing.   the reason i appended $res to $newres with the result of the strcmp was i thought the strcmp wasn't returning 0 as it should have been but as its not returning VERIFIED in my $newres so i cant check it.   Please help!! ... View more

Re: paypal IPN not returning VALID or INVALID

by madein83 Contributor in Selling on your website
‎Nov-23-2012 08:25 AM
‎Nov-23-2012 08:25 AM
Hi,   I also submitted a support request on the link you suggested but havent had a response.   Im wondering about the first LIVE payment i tested which was an actual payment using a real paypal account.....when i log into the paypal account and check IPN history and view the IPN message...in the message it doesn't say anything about VERIFIED or INVALID.....am i wrong in assuming that the VERIFIED or INVALID is posted with this message?   I just re-ran a test on the sandbox mode and managed to get VERIFIED but when i tried to re-send the LIVE IPN message i didnt get an email at all which suggests that it didnt return VERIFIED OR INVALID?     ... View more

paypal IPN not returning VALID or INVALID

by madein83 Contributor in Selling on your website
‎Nov-22-2012 07:58 AM
‎Nov-22-2012 07:58 AM
Hi,   Im implementing a paypal IPn script on a new website and im basically using one that i already have working for another customer on a different server.   But on both sandbox test payments and also live payments i cant get a valid or invalid response.   After the IPN script runs im emailing myself the $res and $req variables.   Im not an expert at this but from the documentation etc the string is supposed to contain either the word VALID or INVALID.   When i look through both $resand $req they are nowhere.   As i say the script runs fine and reports valid on another server just not this new one.   i've tried 15+ possible fixes but some report to work for some but not others...i have also tried live payments and tried re-sending the IPjn notification but am geting nowhere.   Here is a simplified version of my script;   // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // 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 .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30); if (!$fp) { // HTTP ERROR } else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets($fp, 1024); if (strcmp(trim($res), "VERIFIED") == 0) { //update order and send emails etc } // if the IPN POST was 'INVALID'...do this else if (strcmp(trim($res), "INVALID") == 0) { // log and send email for manaul investigation }else{ $newres=$newres.$res; } } //email myself $newres for review }   ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros
Welcome to the PayPal Community!