Buy Tickets on Eventbrite var exampleCallback = function() { console.log('Order complete!'); }; window.EBWidgets.createWidget({ widgetType: 'checkout', eventId: '79620548203', modal: true, modalTriggerElementId: 'eventbrite-widget-modal-trigger-79620548203', onOrderComplete: exampleCallback });