What would be the best place to put (or use existing) hook, so that when event espresso has fully completed a sale, I can make a web request to another site (the software where our on-premise ticket sales and accounting takes place) and use that API to add the transaction? I already have the PHP to consume that API, I just need to know where/how the best place to implement the outside link. I anticipate it to be somewhere in the process_payments section, maybe at the end of espresso_email_after_payment (so it only records it once a payment has been made not when a transaction was created without payment)? I definitely want it to have access to the data of the transaction data itself, so I can repost some important data to the accounting system.
So hence, what would the best place be, so future upgrades don’t totally botch this addon code? (or does it with the least impact)
The support post ‘Suggested location to add a "post completed transction" action?’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.