• I am testing using the “Local testing” method (html forms).

    and for a basic test i just send mail to me with the $posted array.

    For (unknown to me) reason when i use some set of details i get the $posted details with a IPN_status var in (with the value “Invalid” of course) and when i use another set of details i don’t get this var at all in the $posted array.

    So i want to ask:

    1) Does the plugin itself add this var after checking with PayPal?

    2) Why wouldn’t it be available in the #posted array.

    3) Is it a problem or it is ok and i can use the if ($posted[‘IPN_status’] == ‘Verified’) condition anyway?

    Thank you very much! a great plugin! very very helpful!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor angelleye

    (@angelleye)

    1) Yes, our plugin adds the IPN_status variable. That is not something included with the IPN POST by default. It gets populated based on the verification call back to PayPal.

    2) That’s a good question. It should be. Can you post a sample of the IPN record you show in WP when submitting your local test? I just did one of these myself and I see IPN_status=Invalid as expected.

    3) That would be fine, but if you aren’t getting the IPN_status variable at all then you’d end up with a PHP notice about an undefined index. You may want to do something like this instead.

    if(!empty($posted['IPN_status']) && strtolower($posted['IPN_status']) == 'verified')
    {
        // IPN status is available and verified
    }
    Thread Starter Begin

    (@bentalgad)

    Thanks for the reply.

    Here is my code:

    <form target="_new" method="post" action="<?php echo site_url(); ?>/?AngellEYE_Paypal_Ipn_For_Wordpress&action=ipn_handler">
    <input type="hidden" name="transaction_subject" value="the title" />
    <input type="hidden" name="time_created" value="<?php echo date('H:i:s M j, Y'); ?> PDT" />
    <input type="hidden" name="subscr_id" value="I-PAPPDK1E31LA" />
    <input type="hidden" name="last_name" value="miller" />
    <input type="hidden" name="residence_country" value="IL" />
    <input type="hidden" name="item_name" value="the title" />
    <input type="hidden" name="mc_currency" value="ILS" />
    <input type="hidden" name="business" value="[email protected]" />
    <input type="hidden" name="payment_type" value="instant" />
    <input type="hidden" name="protection_eligibility" value="Eligible" />
    <input type="hidden" name="verify_sign" value="AlAAWrhhKrG3YfPe4U2uTHMEofRoAxKLCpzaiv.pMmJY4Oz9AEV8Poxo" />
    <input type="hidden" name="payer_status" value="unverified" />
    <input type="hidden" name="payer_email" value="[email protected]" />
    <input type="hidden" name="txn_id" value="0XG35260C17879441" />
    <input type="hidden" name="receiver_email" value="[email protected]" />
    <input type="hidden" name="first_name" value="john" />
    <input type="hidden" name="payer_id" value="3HMDJA96TEQN4" />
    <input type="hidden" name="receiver_id" value="ATSCG2QMC9KAU" />
    <input type="hidden" name="payment_status" value="Completed" />
    <input type="hidden" name="mc_fee" value="1.00" />
    <input type="hidden" name="mc_gross" value="1.00" />
    <input type="hidden" name="custom" value="012069823049875098748948509874" />
    <input type="hidden" name="charset" value="UTF-8" />
    <input type="hidden" name="notify_version" value="3.8" />
    <input type="hidden" name="ipn_track_id" value="fjlefj39939j" />
    <!-- <input type="hidden" name="test_ipn" value="1" /> -->
    
    <input type="submit" value="submit?"/></form>

    And here is what i get:

    Array
    (
        [transaction_subject] => the title
        [time_created] => 06:07:59 Jul 28, 2017 PDT
        [subscr_id] => I-PAPPDK1E31LA
        [last_name] => miller
        [residence_country] => IL
        [item_name] => the title
        [mc_currency] => ILS
        [business] => [email protected]
        [payment_type] => instant
        [protection_eligibility] => Eligible
        [verify_sign] => AlAAWrhhKrG3YfPe4U2uTHMEofRoAxKLCpzaiv.pMmJY4Oz9AEV8Poxo
        [payer_status] => unverified
        [payer_email] => [email protected]
        [txn_id] => 0XG35260C17879441
        [receiver_email] => [email protected]
        [first_name] => john
        [payer_id] => 3HMDJA96TEQN4
        [receiver_id] => ATSCG2QMC9KAU
        [payment_status] => Completed
        [mc_fee] => 1.00
        [mc_gross] => 1.00
        [custom] => 012069823049875098748948509874
        [charset] => UTF-8
        [notify_version] => 3.8
        [ipn_track_id] => fjlefj39939j
    )
    • This reply was modified 7 years, 7 months ago by Begin.
    Thread Starter Begin

    (@bentalgad)

    Actually now i’m testing. even with a real PayPal purchase i don’t get the “IPN_status”.

    Plugin Contributor angelleye

    (@angelleye)

    So that result is from you dumping out the $posted array? Or are you just dumping out $_POST?

    Thread Starter Begin

    (@bentalgad)

    Yes, dumping out $posted.

    Thread Starter Begin

    (@bentalgad)

    Any ideas why would it be missing?

    Plugin Contributor angelleye

    (@angelleye)

    That’s very odd. We don’t have any other reports of this and I’m not able to reproduce it myself. I’ll have my lead developer take a look at this thread and see if he can offer any guidance.

    Thread Starter Begin

    (@bentalgad)

    Great! thank you very much. So just to be clear: if you try the same html form as i posted you get the same $posted array just with the “IPN_status” variable?

    Plugin Contributor angelleye

    (@angelleye)

    Yes, the IPN_status variable is added by our plugin. Here is what we get:

    https://snag.gy/MohSTE.jpg

    We are simply unable to reproduce what you are saying. There must be something unique going on there causing this. If you’d like us to troubleshoot directly on your server you can submit an order for premium support. If it turns out to be a bug in our plugin we’d refund that.

    Thread Starter Begin

    (@bentalgad)

    Thanks. so i see i am also not getting the “ipn_url_name” you are getting. i will try and see what can it be in my part, and if i can’t find something i will use the permium support.

    I will be happy if you can try and give me general ideas or direction to what can i look for…

    Any way thank you very much!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘IPN tester doesn’t have a IPN_status var’ is closed to new replies.