Support

Home Forums Event Espresso Premium Infusionsoft Tagging after payment is complete

Infusionsoft Tagging after payment is complete

Posted: August 20, 2014 at 3:50 pm


Sean Verret

August 20, 2014 at 3:50 pm

Can some direct me to where to start looking at how to possibly add a way to let infusionsoft know that a contact has actually paid for their event.

Similar to Kamon in the two posts below, we don’t RSVP for our event, we just sell tickets. I’m fine with the contact being created in InfusionSoft when they register and tagged with the infusionsoft_tag_id.

I’m wondering if we can create an infusionsoft_rsvp_id and an infusionsoft_paid_id that will correspond with appropriate tags in InfusionSoft and then call the code to update InfusionSoft both after registration and after payment.

https://eventespresso.com/topic/infusionsoft-tagging-after-payment/
https://eventespresso.com/topic/dont-create-infusionsoft-record-until-payment-is-complete/

I assume the code from the espresso_save_infusionsoft_attendee($attendee_data) could be used from espresso-infusionsoft/index.php, but slightly modified to take a tag variable like the following espresso_save_infusionsoft_attendee($attendee_data, $infusionsoft_tag)

Then you could pass the infusionsoft_rsvp_id or infusionsoft_paid_id when calling either the registration or payment screens.

After all of this, my question becomes, where is espresso_save_infusionsoft_attendee() being called upon registration, and where would be the best place to call it once receiving notification from a successful payment gateway transaction?

I can attempt to play with code from there, just looking for a little bit of guidance.

Thanks


Sean Verret

August 20, 2014 at 4:05 pm

So a preliminary search of the files gives me the following.

In event-espresso/includes/process-registration/add_attendees_to_db.php there is a call to do_action('action_hook_espresso_save_attendee_data', $attendee_data);

This is how the call invokes the espresso_save_infusionsoft_attendee() in espresso-infusionsoft/index.php.

add_attendees_to_db.php also calls this action in another place, when there are multiple registrations with multiple registration information required.

So I assume we could place similar code in event-espresso/includes/process-registration/payment_page.php to look at $attendee and then call do_action('action_hook_espresso_save_attendee_data', $attendee_data); for a single or mulitple registration which will update the registration data for each attendee?

Perhaps this will affect other places that action_hook_espresso_save_attendee_data is being called, I’m not sure, so any guidance would be appreciated.

Thanks


Sean Verret

August 20, 2014 at 5:42 pm

Pinging to get email notification


Lorenzo Orlando Caum

  • Support Staff

August 21, 2014 at 12:09 pm

Hi,

Is the payment gateway for Infusionsoft enabled?

https://eventespresso.com/wiki/infusionsoft-integration/#gateway


Lorenzo


Sean Verret

August 21, 2014 at 7:37 pm

Hi Lorenzo,

No it is not, because I’m not using the InfusionSoft payment gateway. I’m using paypal via EventEspresso.

Sean


Sean Verret

August 21, 2014 at 7:48 pm

Hi Lorenzo,

I noticed the capability of EventEspresso to update a contact in InfusionSoft from the “Event Overview>View Attendees” screen by selecting the Delete Attendees button.

I wonder if as a quick fix we could add an update paid attendees button for InfusionSoft users? Would that be an easy way to get this done?


Lorenzo Orlando Caum

  • Support Staff

August 21, 2014 at 8:08 pm

Alright, that is needed to mark the attendees (contacts) as paid. I don’t have any other ideas on how to get those updated but another team member might.


Lorenzo


Sean Verret

August 21, 2014 at 9:04 pm

How is it done using the payment gateway? I don’t see any other possibilities in EventExpresso to add an additional tag id.


Sean Verret

August 21, 2014 at 9:13 pm

Hi Lorenzo,

I think I found a way to do it inside of InfusionSoft. Since EventEspresso updates InfusionSoft with payment details once a product has been purchased (even though it’s not tabulating correctly – link below) I can run a custom “Purchase Action” on that specific product that will tag someone once they’ve successfully paid for a product. This eliminates the need for this information to come from EventEspresso directly, even though it would be nice.

https://eventespresso.com/topic/infusionsoft-payment-details-not-updating-correctly-from-paypal-gateway/

The support post ‘Infusionsoft Tagging after payment is complete’ 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