• Resolved denz73

    (@denz73)


    Hi,

    I’m a newbie when it comes to WP plugins. Kudos for the plugin as it makes the integration to PayPal quite simple.

    I understand that I need my_callback_function to process my backend transactions. What I’d like to know is where do I put add_action so it would be safe and not be erased in case the plugin is updated?

    The my_callback_function can exist as a separate php, right?

    Thank you.

    Denz

    function my_callback_function($ipn_response) {
    // do stuff
    }
    add_action(‘wp_paypal_ipn_processed’, ‘my_callback_function’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Noor Alam

    (@naa986)

    @denz73, You can create a custom plugin for it or add it to your theme’s functions.php file.

    Thread Starter denz73

    (@denz73)

    Thank you. I have a follow-up question.

    I created a PayPal subscription for a digital subscription for a monthly/yearly payment. Your plugin does work for this purpose but it seems like the IPN I’ve set inside PayPal’s notifications isn’t being called. Or am I’m doing something wrong?

    How do I set up an IPN being called every time a payment is made?

    Cheers!

    Denz

    • This reply was modified 5 years, 6 months ago by denz73.
Viewing 2 replies - 1 through 2 (of 2 total)

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