Support

Home Forums Event Espresso Premium Getting payment and transaction objects from hook after payment is applied Reply To: Getting payment and transaction objects from hook after payment is applied

Reply To: Getting payment and transaction objects from hook after payment is applied

Author Replies
deon@dieselbrook.co.za # Posted on May 3, 2018 at 1:31 am

Thanks, but I only added that so that I can debug as I can’t use logs or the console to generate output. There is a lot of code after this section, but if it isn’t finding the data from the event, then the other code can’t work, so no point in including it really (it is custom code that doesn’t really have anything to do with the event espresso code, don’t expect you guys to help out with that 🙂 ) I just need the event id in order to proceed.

I opened a ticket earlier, in which someone told me that the format of the object data has changed from an example that I was working from (custom shortcode in the messages).

The example below is a snippet from a different function and a different hook, but perhaps the same happened here, that the format has changed and I thus cannot access the data.

is_array( $extra_data ) && !empty( $extra_data['data'] ) && $extra_data['data'] instanceof EE_Messages_Addressee ? $extra_data['data'] : null;

Do NOT follow this link or you will be banned from the site!