Learn how to intercept a booking to introduce your custom flow and then submit the booking.
interceptBooking
function that will be passed to the Booker atom handleCreateBooking
hook. See Booker atom docs on how to use it - in this tutorial
we focus on the handleCreateBooking
hook.
interceptBooking
function will be called and will receive all the booking data.interceptBooking
and make a POST request to
create booking endpoint to actually create the booking.