In our mobile app , we have embedded the checkout widgets as below. We see that there is a callback function which will be called when order is completed . Now the question is – is there any callback function that will provide the Order Id?
<button id="example-widget-trigger" type="button">Buy Tickets</button>
<script src="https://www.eventbrite.com/static/widgets/eb_widgets.js"></script>
<script type="text/javascript">
var exampleCallback = function() {
console.log("Order complete!");
};
window.EBWidgets.createWidget({
widgetType: "checkout",
eventId: "52766401728",
modal: true,
modalTriggerElementId: "example-widget-trigger",
onOrderComplete: exampleCallback
});
</script>