www.webdeveloper.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 25

Thread: PayPal IPN Response Blank

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    92

    PayPal IPN Response Blank

    I am having trouble getting my PayPal Gateway php script to update my database automatically after successful payment. Currently testing in sandbox mode. IPN is enabled.

    Anyone have any idea what would be causing the database to not update automatically as shown in paypal_ipn.php?

    I noticed that the IPN response from gateway server is blank......


    log file....
    Code:
    [04/25/2012 8:22 AM]
    FAIL: fsockopen error no. 0: 
    php_network_getaddresses: getaddrinfo failed: Name or service not known
    IPN POST Vars from gateway:
    mc_gross=0.99, 
    protection_eligibility=Eligible, 
    address_status=confirmed, 
    payer_id=C2F3NJ48W5LMA, 
    tax=0.00, 
    address_street=1 Main St, 
    payment_date=08:22:11 Apr 25, 2012 PDT, 
    payment_status=Completed, 
    charset=windows-1252, 
    address_zip=95131, 
    first_name=Test, 
    mc_fee=0.33, 
    address_country_code=US, 
    address_name=Test User, 
    notify_version=3.4, 
    custom=2_1, 
    payer_status=verified, 
    business=seller_1316790187_biz@yahoo.com, 
    address_country=United States, 
    address_city=San Jose, 
    quantity=1, verify_sign=A1RtNIP4pI0KEZl1HI0lniHIM6H3AtXKfPsh.8V8J2r92kAfIqvOPfzX, payer_email=japani_1316789859_per@yahoo.com, txn_id=8TE62355N9983493W, 
    payment_type=instant, 
    last_name=User, 
    address_state=CA, 
    receiver_email=seller_1316790187_biz@yahoo.com, 
    payment_fee=0.33, receiver_id=NNWHFKJGP9B22, 
    txn_type=web_accept, 
    item_name= Premium Account (1 day), 
    mc_currency=USD, 
    item_number=1, 
    residence_country=US, 
    test_ipn=1, 
    handling_amount=0.00, 
    transaction_subject=2_1, 
    payment_gross=0.99, 
    shipping=0.00, 
    ipn_track_id=3ce09ffe5591d, 
    IPN Response from gateway Server:
    PaymentGateway.php

    PHP Code:
    <?php

    /**
     * Payment Gateway
     *
     * This library provides generic payment gateway handling functionlity
     * to the other payment gateway classes in an uniform way. Please have
     * a look on them for the implementation details.
     *
     * @package     Payment Gateway
     * @category    Library
     * @author      Md Emran Hasan <phpfour@gmail.com>
     * @link        http://www.phpfour.com
     */

    abstract class PaymentGateway
    {
        
    /**
         * Holds the last error encountered
         *
         * @var string
         */
        
    public $lastError;

        
    /**
         * Do we need to log IPN results ?
         *
         * @var boolean
         */
        
    public $logIpn;

        
    /**
         * File to log IPN results
         *
         * @var string
         */
        
    public $ipnLogFile;

        
    /**
         * Payment gateway IPN response
         *
         * @var string
         */
        
    public $ipnResponse;

        
    /**
         * Are we in test mode ?
         *
         * @var boolean
         */
        
    public $testMode;

        
    /**
         * Field array to submit to gateway
         *
         * @var array
         */
        
    public $fields = array();

        
    /**
         * IPN post values as array
         *
         * @var array
         */
        
    public $ipnData = array();

        
    /**
         * Payment gateway URL
         *
         * @var string
         */
        
    public $gatewayUrl;

        
    /**
         * Initialization constructor
         *
         * @param none
         * @return void
         */
        
    public function __construct()
        {
            
    // Some default values of the class
            
    $this->lastError '';
            
    $this->logIpn TRUE;
            
    $this->ipnResponse '';
            
    $this->testMode FALSE;
        }

        
    /**
         * Adds a key=>value pair to the fields array
         *
         * @param string key of field
         * @param string value of field
         * @return
         */
        
    public function addField($field$value)
        {
            
    $this->fields["$field"] = $value;
        }

        
    /**
         * Submit Payment Request
         *
         * Generates a form with hidden elements from the fields array
         * and submits it to the payment gateway URL. The user is presented
         * a redirecting message along with a button to click.
         *
         * @param none
         * @return void
         */
        
    public function submitPayment()
        {

            
    $this->prepareSubmit();

            echo 
    "<html>\n";
            echo 
    "<head><title>Processing Payment...</title></head>\n";
            echo 
    "<body onLoad=\"document.forms['gateway_form'].submit();\">\n";
            echo 
    "<p style=\"text-align:center;\"><h2>Please wait, your order is being processed and you";
            echo 
    " will be redirected to the payment website.</h2></p>\n";
            echo 
    "<form method=\"POST\" name=\"gateway_form\" ";
            echo 
    "action=\"" $this->gatewayUrl "\">\n";

            foreach (
    $this->fields as $name => $value)
            {
                 echo 
    "<input type=\"hidden\" name=\"$name\" value=\"$value\"/>\n";
            }


            echo 
    "<p style=\"text-align:center;\"><br/><br/>If you are not automatically redirected to ";
            echo 
    "payment website within 5 seconds...<br/><br/>\n";
            echo 
    "<input type=\"submit\" value=\"Click Here\"></p>\n";

            echo 
    "</form>\n";
            echo 
    "</body></html>\n";
        }

        
    /**
         * Perform any pre-posting actions
         *
         * @param none
         * @return none
         */
        
    protected function prepareSubmit()
        {
            
    // Fill if needed
        
    }

        
    /**
         * Enables the test mode
         *
         * @param none
         * @return none
         */
        
    abstract protected function enableTestMode();

        
    /**
         * Validate the IPN notification
         *
         * @param none
         * @return boolean
         */
        
    abstract protected function validateIpn();

        
    /**
         * Logs the IPN results
         *
         * @param boolean IPN result
         * @return void
         */
        
    public function logResults($success)
        {

            if (!
    $this->logIpn) return;

            
    // Timestamp
            
    $text '[' date('m/d/Y g:i A').'] - ';

            
    // Success or failure being logged?
            
    $text .= ($success) ? "SUCCESS!\n" 'FAIL: ' $this->lastError "\n";

            
    // Log the POST variables
            
    $text .= "IPN POST Vars from gateway:\n";
            foreach (
    $this->ipnData as $key=>$value)
            {
                
    $text .= "$key=$value, ";
            }

            
    // Log the response from the paypal server
            
    $text .= "\nIPN Response from gateway Server:\n " $this->ipnResponse;

            
    // Write to log
            
    $fp fopen($this->ipnLogFile,'a');
            
    fwrite($fp$text "\n\n");
            
    fclose($fp);
        }
    }


    ?>
    PayPal.php

    PHP Code:
    <?php

    /**
     * Paypal Class
     *
     * Integrate the Paypal payment gateway in your site using this easy
     * to use library. Just see the example code to know how you should
     * proceed. Btw, this library does not support the recurring payment
     * system. If you need that, drop me a note and I will send to you.
     *
     * @package        Payment Gateway
     * @category    Library
     * @author      Md Emran Hasan <phpfour@gmail.com>
     * @link        http://www.phpfour.com
     */

    include_once ('../PaymentGateway.php');

    class 
    Paypal extends PaymentGateway
    {

        
    /**
         * Initialize the Paypal gateway
         *
         * @param none
         * @return void
         */
        
    public function __construct()
        {
            
    parent::__construct();

            
    // Some default values of the class
            
    $this->gatewayUrl 'https://www.paypal.com/cgi-bin/webscr';
            
    $this->ipnLogFile 'paypal.ipn_results.log';

            
    // Populate $fields array with a few default
            
    $this->addField('rm''2');           // Return method = POST
            
    $this->addField('cmd''_xclick');
        }

        
    /**
         * Enables the test mode
         *
         * @param none
         * @return none
         */
        
    public function enableTestMode()
        {
            
    $this->testMode TRUE;
            
    $this->gatewayUrl 'https://www.sandbox.paypal.com/cgi-bin/webscr';
        }

        
    /**
         * Validate the IPN notification
         *
         * @param none
         * @return boolean
         */
        
    public function validateIpn()
        {
            
    // parse the paypal URL
            
    $urlParsed parse_url($this->gatewayUrl);

            
    // generate the post string from the _POST vars
            
    $postString '';

            foreach (
    $_POST as $field=>$value)
            {
                
    $this->ipnData["$field"] = $value;
                
    $postString .= $field .'=' urlencode(stripslashes($value)) . '&';
            }

            
    $postString .="cmd=_notify-validate"// append ipn command

            // open the connection to paypal
            
    $fp fsockopen($urlParsed[host], "80"$errNum$errStr30);

            if(!
    $fp)
            {
                
    // Could not open the connection, log error if enabled
                
    $this->lastError "fsockopen error no. $errNum$errStr";
                
    $this->logResults(false);

                return 
    false;
            }
            else
            {
                
    // Post the data back to paypal

                
    fputs($fp"POST $urlParsed[path] HTTP/1.1\r\n");
                
    fputs($fp"Host: $urlParsed[host]\r\n");
                
    fputs($fp"Content-type: application/x-www-form-urlencoded\r\n");
                
    fputs($fp"Content-length: " strlen($postString) . "\r\n");
                
    fputs($fp"Connection: close\r\n\r\n");
                
    fputs($fp$postString "\r\n\r\n");

                
    // loop through the response from the server and append to variable
                
    while(!feof($fp))
                {
                    
    $this->ipnResponse .= fgets($fp1024);
                }

                 
    fclose($fp); // close connection
            
    }

            if (
    eregi("VERIFIED"$this->ipnResponse))
            {
                 
    // Valid IPN transaction.
                 
    $this->logResults(true);
                 return 
    true;
            }
            else
            {
                 
    // Invalid IPN transaction.  Check the log for details.
                
    $this->lastError "IPN Validation Failed . $urlParsed[path] : $urlParsed[host]";
                
    $this->logResults(false);
                return 
    false;
            }
        }
    }

    ?>

  2. #2
    Join Date
    Apr 2005
    Posts
    92
    paypal_start.php

    PHP Code:
    <?php

    // include header
    include("../../header.php");

    // include the paypal library
    include_once("Paypal.php");

    // create an instance of the paypal library
    $p = new Paypal();

    // get package details
    $package mysql_fetch_assoc(mysql_query("SELECT * FROM packages WHERE package_id = '".$_POST['p']."' LIMIT 1"));

    // set paypal post fields
    $p->addField('business'$config['paypal_email']);
    $p->addField('currency_code'$config['currency_code']);
    $p->addField('return'$config['site_url'] . '/premium/payment/paypal/success');
    $p->addField('cancel_return'$config['site_url'] . '/premium/payment/paypal/fail');
    $p->addField('notify_url'$config['site_url'] . '/premium/payment/paypal/ipn');
    $p->addField('item_name'$config['site_name'] . ' Premium Account ('.$package['package_length'].' day)');
    $p->addField('amount'$package['package_price']);
    $p->addField('item_number'$package['package_id']);
    $p->addField('custom'$user->user_info['user_id']."_".$package['package_id']);

    // enable test mode if needed
    if($config['paypal_test'] == 'true'){ $p->enableTestMode(); }

    // let's start the train!
    $p->submitPayment();

    ?>
    paypal_ipn.php

    PHP Code:
    <?php

    // include header
    include("../../header.php");

    // include the paypal library
    include_once("Paypal.php");

    // create an instance of the paypal library
    $p = new Paypal();

    // check validity and write down it
    if($p->validateIpn())
    {
        if(
    $p->ipnData['payment_status'] == 'Completed')
        {
            
    // get package id and user id from custom var
            
    list($user_id$package_id) = explode("_"$p->ipnData['custom']);
            
            
    // get package details
            
    $package mysql_fetch_assoc(mysql_query("SELECT * FROM packages WHERE package_id = '".$package_id."' LIMIT 1"));
            
            
    // update users fields
            
    mysql_query("UPDATE members SET premium = '1', premium_active = '1', premium_start = '".time()."', premium_end = '".strtotime("+" $package['package_length'] . "days")."' WHERE user_id = '".$user_id."'");
            
            
    // update sales log
            
    mysql_query("INSERT INTO sales_log (payer_id,
                                                payment_date,
                                                trans_id,
                                                first_name,
                                                last_name,
                                                payer_email,
                                                payer_status,
                                                payment_type,
                                                memo,
                                                item_name,
                                                item_number,
                                                quantity,
                                                mc_gross,
                                                mc_currency,
                                                address_name,
                                                address_street,
                                                address_city,
                                                address_state,
                                                address_zip,
                                                address_country,
                                                address_status,
                                                payer_business_name,
                                                payment_status,
                                                pending_reason,
                                                reason_code,
                                                txn_type
                                                )VALUES(
                                                '"
    .$p->ipnData['payer_id']."', 
                                                '"
    .$p->ipnData['payment_date']."', 
                                                '"
    .$p->ipnData['txn_id']."', 
                                                '"
    .$p->ipnData['first_name']."', 
                                                '"
    .$p->ipnData['last_name']."', 
                                                '"
    .$p->ipnData['payer_email']."', 
                                                '"
    .$p->ipnData['payer_status']."', 
                                                '"
    .$p->ipnData['payment_type']."', 
                                                '"
    .$p->ipnData['memo']."', 
                                                '"
    .$p->ipnData['item_name']."', 
                                                '"
    .$p->ipnData['item_number']."', 
                                                '"
    .$p->ipnData['quantity']."', 
                                                '"
    .$p->ipnData['mc_gross']."', 
                                                '"
    .$p->ipnData['mc_currency']."', 
                                                '"
    .$p->ipnData['address_name']."', 
                                                '"
    .nl2br($p->ipnData['address_street'])."', 
                                                '"
    .$p->ipnData['address_city']."', 
                                                '"
    .$p->ipnData['address_state']."', 
                                                '"
    .$p->ipnData['address_zip']."', 
                                                '"
    .$p->ipnData['address_country']."', 
                                                '"
    .$p->ipnData['address_status']."', 
                                                '"
    .$p->ipnData['payer_business_name']."', 
                                                '"
    .$p->ipnData['payment_status']."', 
                                                '"
    .$p->ipnData['pending_reason']."', 
                                                '"
    .$p->ipnData['reason_code']."', 
                                                '"
    .$p->ipnData['txn_type']."')");
        }
    }

    ?>
    paypal_success.php

    PHP Code:
    <?php

    // include header
    include("../../header.php");

    // set page name & page title
    $page "paypal_success";
    $page_title "Payment Success";

    // include footer
    include("../../footer.php");

    ?>

  3. #3
    Join Date
    Dec 2005
    Posts
    2,984
    Looks to me like the following line (in PayPal.php):

    PHP Code:
    $fp fsockopen($urlParsed[host], "80"$errNum$errStr30); 
    Should be this:
    PHP Code:
    $fp fsockopen($urlParsed['host'], "80"$errNum$errStr30); 
    Note the quotes (') around the 'host' key in the $urlParsed array

    EDIT: Really good job for posting all the code and the log file, by the way. That will definitely help you to an answer faster! Also, for the record, the IPN response is only blank because the initial request to PayPal with the payment information failed. PayPal can't IPN if it wasn't N'ed about the payment itself!
    Last edited by aj_nsc; 04-25-2012 at 12:04 PM.
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

  4. #4
    Join Date
    Apr 2005
    Posts
    92
    Thanks for the response.

    So, I made the change you suggested but the database is still not updating.

    Here is the log from after the change....

    Code:
    [04/25/2012 11:07 AM] - FAIL: IPN Validation Failed . /cgi-bin/webscr : www.paypal.com
    IPN POST Vars from gateway:
    mc_gross=0.99, protection_eligibility=Eligible, address_status=confirmed, payer_id=C2F3NJ48W5LMA, tax=0.00, address_street=1 Main St, payment_date=11:07:27 Apr 25, 2012 PDT, payment_status=Completed, charset=windows-1252, address_zip=95131, first_name=Test, mc_fee=0.33, address_country_code=US, address_name=Test User, notify_version=3.4, custom=2_1, payer_status=verified, business=seller_1316790187_biz@yahoo.com, address_country=United States, address_city=San Jose, quantity=1, verify_sign=AZfTMhHnVJDHpCUWVvlq8KHPff3jA.ex4qAMAFrY34nHrTa3s2Nz5Ne8, payer_email=japani_1316789859_per@yahoo.com, txn_id=3V188956W9851472V, payment_type=instant, last_name=User, address_state=CA, receiver_email=seller_1316790187_biz@yahoo.com, payment_fee=0.33, receiver_id=NNWHFKJGP9B22, txn_type=web_accept, item_name=OxiShare Premium Account (1 day), mc_currency=USD, item_number=1, residence_country=US, test_ipn=1, handling_amount=0.00, transaction_subject=2_1, payment_gross=0.99, shipping=0.00, ipn_track_id=da6cb786d1eeb, 
    IPN Response from gateway Server:
     HTTP/1.1 200 OK
    Date: Wed, 25 Apr 2012 18:07:31 GMT
    Server: Apache
    X-Frame-Options: SAMEORIGIN
    Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=5tv1OvAHP-T0NGJfzuWXW5UbH_labNqchEA3fd3SzRAHOTaVtRxVHFZ1hST7JS32bU33WKJzOX5lTqA3N0d6aXRQ97HnX64J44evnaIzh7pjX4XLMDEhULTVPoSLs2iskEMPCG&#37;7cUfPmWx6xuv1fBLQbsHpimvLr755vM0LTAA1epvqzgoDhEwG_tzycq-PDKyoomhVr89CUhW%7cGjvfyCa61dfuyxwvobLL-0wvFx05AfjFocLp2UVkt2uxzlU3B_gmI_wbaNZSYXWfkFSkXG%7c1335377252; domain=.paypal.com; path=/; HttpOnly
    Set-Cookie: cookie_check=yes; expires=Sat, 23-Apr-2022 18:07:32 GMT; domain=.paypal.com; path=/; HttpOnly
    Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; HttpOnly
    Set-Cookie: navlns=0.0; expires=Tue, 20-Apr-2032 18:07:32 GMT; domain=.paypal.com; path=/; HttpOnly
    Vary: Accept-Encoding
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=UTF-8
    
    7
    INVALID
    0

  5. #5
    Join Date
    Nov 2011
    Posts
    64
    I don't think sandbox is working for ipn. You got to try with real cash.

  6. #6
    Join Date
    Dec 2005
    Posts
    2,984
    Quote Originally Posted by stevengoh View Post
    I don't think sandbox is working for ipn. You got to try with real cash.
    This is incorrect. Sandbox works fine for IPN. PayPal has numerous code samples on it's site showing you how to use IPN during live transactions and in the sandbox.

    e.g.
    https://www.paypal.com/us/cgi-bin/we...es-pop-outside
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

  7. #7
    Join Date
    Nov 2011
    Posts
    64
    I tried the ipn before. Real cash do get the ipn to work but not the sandbox if I am not wrong. Why not you try a small amount and test it out ?

  8. #8
    Join Date
    Dec 2005
    Posts
    2,984
    Ok, so the request went through. But I've got my money on the fact that you want this request to be made to the paypal sandbox (looking at your first request with the _biz@yahoo.com which looks like something generated in the PayPal sandbox). You're actually making you're request to the 'live' PayPal API and it's returning that the request was invalid because you're supposed to be checking it via the sandbox URL. Hopefully that wasn't too repetitive.

    The solution is built into your class so you can do that easily by adding this line:

    PHP Code:
    $config['paypal_test'] = true
    right above this:
    PHP Code:
    // enable test mode if needed
    if($config['paypal_test'] == 'true'){ $p->enableTestMode(); } 
    in paypal_start.php

    It's important to keep in mind if you are testing in the sandbox, or are performing live transactions and make the changes to your script accordingly.

    Good luck.
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

  9. #9
    Join Date
    Apr 2005
    Posts
    92
    I have a config file that controls whether or not paypal test mode is enabled and it is already set to true.

    I even tried adding the code you suggested and got the same results.

    Something else is causing the IPN to fail but I;m not sure what. Any other ideas?

    I have PayPal IPN settings pointing to paypal_ipn.php, is that correct?

  10. #10
    Join Date
    Apr 2005
    Posts
    92
    Could it possible have something to do with this?

    http://www.acoolsip.com/a-cool-blog/...ipn-fails.html

  11. #11
    Join Date
    Dec 2005
    Posts
    2,984
    You are correct, and you are initially posting to the sandbox, that was my bad.


    However, in paypal_ipn.php, you are need to enable test-mode again to validate the IPN received. If not, then it tries to validate the IPN received against the 'live' server.

    In paypal_ipn.php

    1. Include the paypal configuration file in the header of this file and
    2. add this line:

    PHP Code:
    if($config['paypal_test'] == 'true'){ $p->enableTestMode(); } 
    before this:
    PHP Code:
    // check validity and write down it
    if($p->validateIpn()) 
    If you don't do this, then PayPal's sandbox sends you out an IPN and you go and ask www.paypal.com if they sent you the request and they will give you a FAILED result (which they did). What you need to do is go and ask www.sandbox.paypal.com to validate the request that they sent you and you will see a valid request, I am positive.
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

  12. #12
    Join Date
    Apr 2005
    Posts
    92
    Quote Originally Posted by aj_nsc View Post

    In paypal_ipn.php

    1. Include the paypal configuration file in the header of this file and
    2. add this line:

    PHP Code:
    if($config['paypal_test'] == 'true'){ $p->enableTestMode(); } 
    before this:
    PHP Code:
    // check validity and write down it
    if($p->validateIpn()) 

    Still no luck

    Code:
    [04/25/2012 11:22 AM] - FAIL: IPN Validation Failed . /cgi-bin/webscr : www.paypal.com
    IPN POST Vars from gateway:
    mc_gross=0.99, protection_eligibility=Eligible, address_status=confirmed, payer_id=C2F3NJ48W5LMA, tax=0.00, address_street=1 Main St, payment_date=11:22:31 Apr 25, 2012 PDT, payment_status=Completed, charset=windows-1252, address_zip=95131, first_name=Test, mc_fee=0.33, address_country_code=US, address_name=Test User, notify_version=3.4, custom=2_1, payer_status=verified, business=seller_1316790187_biz@yahoo.com, address_country=United States, address_city=San Jose, quantity=1, verify_sign=AFcWxV21C7fd0v3bYYYRCpSSRl31Axpz5f2oQK8M9VbqpuqhbjDPIelm, payer_email=japani_1316789859_per@yahoo.com, txn_id=5KV00220GP5026011, payment_type=instant, last_name=User, address_state=CA, receiver_email=seller_1316790187_biz@yahoo.com, payment_fee=0.33, receiver_id=NNWHFKJGP9B22, txn_type=web_accept, item_name=OxiShare Premium Account (1 day), mc_currency=USD, item_number=1, residence_country=US, test_ipn=1, handling_amount=0.00, transaction_subject=2_1, payment_gross=0.99, shipping=0.00, ipn_track_id=5691cd9f40103, 
    IPN Response from gateway Server:
     HTTP/1.1 200 OK
    Date: Wed, 25 Apr 2012 18:22:35 GMT
    Server: Apache
    X-Frame-Options: SAMEORIGIN
    Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=Jm4dFg4nGc4WTZgz6NNwmPlpqPPRSUGgKfBCBkHyT0xg7OlZbVzIk8Dp1_piAMcVHWqV2wWWkgB4Qh6T5YMnEoeGNXTXF5HXhG5xjbJK5Q6G3THtnzTZXc6iUHwL8P8L4s9ufG%7cWdMOofwvKWo9PqMtYF6QLx-NXyiakGJPyrEqL8Sp-tfdUr-HWchk3xfiU7q6KucaWcCBsG%7cZ2Nm9lwQYy0R1_fMx-1T_93C__g1xmCVVjJcfHXmAcJjKWN-3GVnMuMJ7s7WBQuQ9cfUMW%7c1335378156; domain=.paypal.com; path=/; HttpOnly
    Set-Cookie: cookie_check=yes; expires=Sat, 23-Apr-2022 18:22:36 GMT; domain=.paypal.com; path=/; HttpOnly
    Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; HttpOnly
    Set-Cookie: navlns=0.0; expires=Tue, 20-Apr-2032 18:22:36 GMT; domain=.paypal.com; path=/; HttpOnly
    Vary: Accept-Encoding
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=UTF-8
    
    7
    INVALID
    0

  13. #13
    Join Date
    Nov 2011
    Posts
    64
    I don't know about that, merely share with you my experience.

  14. #14
    Join Date
    Dec 2005
    Posts
    2,984
    You're still not requesting sandbox.paypal.com to validate your IPN. I know this because of this line in your log file:

    Code:
    [04/25/2012 11:22 AM] - FAIL: IPN Validation Failed . /cgi-bin/webscr : www.paypal.com
    Post the code for paypal_ipn.php
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

  15. #15
    Join Date
    Apr 2005
    Posts
    92
    I can see that.

    But it's enabled and I am initially taken to the sandbox page during payment. Somewhere along the line it goes to paypal.com instead. I cant figure out where or why that is happening........

    paypal_ipn.php is already posted above in the second post

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles