Support

Home Forums Event Espresso Premium Point in code where successful ticket is bought

Point in code where successful ticket is bought

Posted: May 1, 2016 at 2:57 am

Viewing 4 reply threads


Lucy K

May 1, 2016 at 2:57 am

Hi Event Espresso team,

Would it be possible to tell me the exact line number in the code base where an email confirmation is being sent after a successful payment has been made.

Basically I need to make an API call after a successful ticket has been bought.

Many thanks Lucy


Lorenzo Orlando Caum

  • Support Staff

May 2, 2016 at 9:05 am

Hello,

You could try this:

AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed

You can see an example (EED_Mailchimp.module.php) of how its used within the MailChimp add-on for Event Espresso 4 which defaults to starting the opt-in process after a successful registration. That add-on is included in your support license.


Lorenzo


Josh

  • Support Staff

May 2, 2016 at 9:54 am

Hi Lucy,

I can recommend adding your API call to the
AHEE__EE_Transaction_Processor__update_transaction_and_registrations_after_checkout_or_payment

hook. It fires when the messages are sent and you’ll have access to the $transaction object.


Lucy K

May 2, 2016 at 2:25 pm

Thank you Josh and Lorenzo for the quick turn around time on this…I’ll give it a shot and if I have any questions I’ll come back to you.

thanks again Lucy


Lucy K

May 5, 2016 at 7:43 am

thanks guys, this worked great. Having the transaction object helped a lot. You can close this ticket.

Viewing 4 reply threads

The support post ‘Point in code where successful ticket is bought’ 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