Getting IPN but $posted and $_POST are empty
-
I have this in my functions.php:
add_action('paypal_ipn_for_wordpress_ipn_response_handler', 'paymentfailed_todos', 10, 3); function paymentfailed_todos($posted) { wp_mail('[email protected]','test',print_r($posted)); }
and i’m sending fake IPN with this:
<form target="_new" method="post" action="https://mydomain.com/?AngellEYE_Paypal_Ipn_For_Wordpress&action=ipn_handler"> <input type="hidden" name="payment_cycle" value="every 4 Weeks"> <input type="hidden" name="txn_type" value="recurring_payment_failed"> <input type="hidden" name="last_name" value="Tester"> <input type="hidden" name="next_payment_date" value="03:00:00 Oct 03, 2013 PDT"> <input type="hidden" name="residence_country" value="US"> <input type="hidden" name="initial_payment_amount" value="0"> <input type="hidden" name="currency_code" value="JPY"> <input type="hidden" name="time_created" value="05:14:37 Aug 01, 2012 PDT"> <input type="hidden" name="verify_sign" value="AOTn5qT2D05NGLBeQowuGwhI5kTFAIPV01VWay1FayueRmXhAYd2KLZp"> <input type="hidden" name="period_type" value=" Regular"> <input type="hidden" name="payer_status" value="unverified"> <input type="hidden" name="test_ipn" value="1"> <input type="hidden" name="tax" value="0"> <input type="hidden" name="payer_email" value="[email protected]"> <input type="hidden" name="first_name" value="Ecaf"> <input type="hidden" name="receiver_email" value="[email protected]"> <input type="hidden" name="payer_id" value="VCLJR9E79V4KJ"> <input type="hidden" name="product_type" value="1"> <input type="hidden" name="shipping" value="0"> <input type="hidden" name="amount_per_cycle" value="1"> <input type="hidden" name="profile_status" value="Active"> <input type="hidden" name="charset" value="windows-1252"> <input type="hidden" name="notify_version" value="3.7"> <input type="hidden" name="amount" value="1"> <input type="hidden" name="outstanding_balance" value="1"> <input type="hidden" name="recurring_payment_id" value="I-P90BX92X15DR"> <input type="hidden" name="product_name" value="Welcome to the world of shopping where you get everything"> <input type="hidden" name="ipn_track_id" value="ab99ea6823e24"> <input type="submit" value="Send Payment Failed"> </form>
The action is triggered (i am getting a mail) and in the plugin’s page i see the IPN with all the data sent from this form. but my mail is empty (actually not completely empty, i get “1”). any ideas what to test to check what is the problem?
BTW – same thing if i do
print_r($_POST)
instead.Thanks!
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Getting IPN but $posted and $_POST are empty’ is closed to new replies.