Posted: September 9, 2020 at 1:27 pm
I am using the AHEE__EE_Payment_Processor__update_txn_based_on_payment__successful hook in order to do some custom coding with regards to events. What I ultimately need to do is to get the event id that the transaction/registration was done for; as I want to update the access list for the specific event page when a registration is done and paid for (there is already a page associated with the event, which is already coded and working fine). I can see in the source code for EE_Payment_Processor.core.php that it passes the payment and transaction objects to the hook. What I have so far: I have also tried using the passed parameters directly, which didn’t work: Please let me know if the data is structured differently, and if I should adapt my code in order to get the ID (or if there is an easier way to get the id). | |
The support post ‘One more long post’ 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.