Support

Home Forums Event Espresso Premium Need hook for charity receipt in Paypal Standard

Need hook for charity receipt in Paypal Standard

Posted: September 27, 2012 at 9:13 am


Charles St-Pierre

September 27, 2012 at 9:13 am

Hello,

I need to hook at the exact moment when the IPN get confirmation of a ticket sale. My callback function needs the payer’s contact information in order to produce a charity receipt.

Could you point me in the right direction please.

Thanks


Sidney Harrell

September 27, 2012 at 11:20 am

In gateways/paypal/paypal_ipn.php line 28 is where the payment is confirmed and EE’s payment status is switched to “Completed”. You could put a hook in there. do_action(‘espresso_paypal_payment_completed’);


Charles St-Pierre

September 27, 2012 at 11:23 am

Could there be a hook inside the function where the EE’s payment status is switched to “Completed”? It would then not be gateway dependant?


Charles St-Pierre

September 28, 2012 at 6:21 am

Could you confirm the following:

The hook action_hook_espresso_email_after_payment inside the function event_espresso_txn() in event-espresso/gateways/process_payments.php:162.

Does this hook get systematically processed at every and all transactions? Because the function seems to be a Shortcode Callback. I hesitate a little to use it, if the shortcode is missed in any way.

The support post ‘Need hook for charity receipt in Paypal Standard’ 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