Support

Home Forums Event Espresso Premium EE4 webhook

EE4 webhook

Posted: November 2, 2016 at 6:15 am

Viewing 5 reply threads


Ray

November 2, 2016 at 6:15 am

Hi

I need to pass registration data (name, email, phone, course, course date) on to another application like Zapier from ee4 and I see 3 options. What I like to know is your opinion on it. The best case would be if the registration process is completed.

  • Trigger javascript on the user registration page on click. That would feed directly into an app. Code is available, but I need to know the variables on the registration page.
  • Using webhooks with Hookpress Plugin. When triggered?
  • Webhooks in general, but how. When triggered?
  • Since I haven’t found an example on how webhooks could be implemented with EE4, I want to get your opinion what makes sense.
    And if you could add some tipps to it, they are very welcome.

    Thanks
    Ray


    Josh

    • Support Staff

    November 3, 2016 at 12:44 pm

    Option 2 seems like a viable option. That way you’ll be able to use any of the available action hooks from EE4.

    There are a number of different hooks you may want to use depending on your specific use case, including but not limited to:

    AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed
    AHEE__EE_Transaction_Processor__update_transaction_and_registrations_after_checkout_or_payment
    AHEE__EE_Payment_Processor__update_txn_based_on_payment


    Ray

    November 9, 2016 at 3:44 pm

    Hi Josh

    Thanks for your message.

    I was trying to find the right hooks, but the link above just shows best practices.

    Where do I find a list of available hooks, or can you tell me which hooks I need to get registrants data incl. the course registered to?

    Thanks
    Ray


    Josh

    • Support Staff

    November 9, 2016 at 8:04 pm

    There isn’t actually a list of available hooks somewhere (there are thousands of hooks, and I’m afraid that a hook taken out of the context of its code would be meaningless). So you can browse through the core code, and the above linked documentation shows the naming conventions of hooks. The naming convention of those hooks help identify where they’re located and what they do.

    I also mentioned a few examples of hooks that might work for you, and I’ll list them in this reply again too:

    AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed
    AHEE__EE_Transaction_Processor__update_transaction_and_registrations_after_checkout_or_payment
    AHEE__EE_Payment_Processor__update_txn_based_on_payment


    Ray

    November 20, 2016 at 3:42 pm

    Hi

    My knowledge is not good enough to get these lines of codes done.

    I tried to get a developer through your list, but either they’re not responding or have no time.

    Can you show me an example to get client data with a webhook or can I book some of you guys to support me in this case.

    Thanks
    Ray


    Josh

    • Support Staff

    November 21, 2016 at 4:49 pm

    Hi Ray,

    I’m afraid that custom development is not included in the support license. Have you tried contacting some of the other developers listed on the pro’s page? If you’re not getting a response from them, you could also post a job ad on the job boards that advertise work opportunities for WordPress developers. A few that come to mind are:

    http://jobs.wordpress.net
    http://www.wphired.com
    https://www.flexjobs.com

    Viewing 5 reply threads

    The support post ‘EE4 webhook’ is closed to new replies.

    Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

    Event Espresso