Question

I am using the eventbrite API through the eventbrite client gem to generate concerts from my site.

On my concerts#show page I embed the ticket widget for users to buy tickets. From there, users will be led to eventbrite.com's concert page to complete the purchase. Then they get redirected to a return url on my site that I can define.

The question is: How do I know if someone bought a ticket? Or am I just blind and cannot find it in the documentation?

Était-ce utile?

La solution

Provided you have a specific event, you can use the event_list_attendees API to get all of the currently registered attendees.

What may work better is referenced here:

Pass Eventbrite attendee parameters to custom order confirmation page via redirect URL

When the order completes and the user is redirected, you can digest $event_id and $order_id to perform some action. All you'd need to do is put those in your redirect_url and then write your own logic to process those on your end.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top