Title: IPN Callback Function Not Being Called
Last modified: November 12, 2020

---

# IPN Callback Function Not Being Called

 *  Resolved [lahiru](https://wordpress.org/support/users/lahiru/)
 * (@lahiru)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/ipn-callback-function-not-being-called/)
 * Hi Noor,
 * I’m using the IPN callback function to do post-transaction operations like updating
   the database, sending emails etc. but looks like the function is not getting 
   called at all.
 * I have the IPN callback on functions.php
 *     ```
       function my_callback_function($ipn_response) {
          // do stuff
       }
       add_action('wp_paypal_ipn_processed', 'my_callback_function');
       ```
   
 * – I don’t see any errors on the server error_log
    – Transaction is updated on
   the WP PayPal dashboard and no errors reported on the debug – I also used the
   IPN Simulator on PayPal to send to [https://mydomain.com/?wp_paypal_ipn=1](https://mydomain.com/?wp_paypal_ipn=1)
   and it was successful – WordPress v5.5.3 and WP PayPal v1.2.2.5
 * Any pointers is greatly appreciated.
 * Thanks in advanced!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [lahiru](https://wordpress.org/support/users/lahiru/)
 * (@lahiru)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ipn-callback-function-not-being-called/#post-13665638)
 * Found the issue. Closing this.
 *  [jimrowebot](https://wordpress.org/support/users/jimrowebot/)
 * (@jimrowebot)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ipn-callback-function-not-being-called/#post-13765098)
 * [@lahiru](https://wordpress.org/support/users/lahiru/) how did you solve this
   as I’m having an issue too?
 * I need the IPN to trigger a zap in zapier so that someone is added to an automation
   in Active Campaign. I can do it with a paypal button, but not with a purchase
   made using WP Paypal.
 * any ideas?
 *  Thread Starter [lahiru](https://wordpress.org/support/users/lahiru/)
 * (@lahiru)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ipn-callback-function-not-being-called/#post-13765616)
 * [@jimrowebot](https://wordpress.org/support/users/jimrowebot/) Mine was an incorrect
   shortcode variable combination. Check the same. You can also paste your shortcode
   here so I can check if that’s what’s causing the issue.
 *  [jimrowebot](https://wordpress.org/support/users/jimrowebot/)
 * (@jimrowebot)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ipn-callback-function-not-being-called/#post-13765639)
 * Can I place a ipn in the shortcode?
 *  Thread Starter [lahiru](https://wordpress.org/support/users/lahiru/)
 * (@lahiru)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ipn-callback-function-not-being-called/#post-13767796)
 * [@jimrowebot](https://wordpress.org/support/users/jimrowebot/) I’m not sure what
   you mean by place a ipn in the shortcode but the shortcode should be added only
   with the supported variables. You can add a ‘custom’ variable to send something
   like a unique ID to PayPal.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘IPN Callback Function Not Being Called’ is closed to new replies.

 * ![](https://ps.w.org/wp-paypal/assets/icon-128x128.png?rev=2722398)
 * [Payment Button for PayPal](https://wordpress.org/plugins/wp-paypal/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-paypal/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-paypal/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-paypal/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-paypal/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-paypal/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [lahiru](https://wordpress.org/support/users/lahiru/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/ipn-callback-function-not-being-called/#post-13767796)
 * Status: resolved