How Bookings Are Confirmed or Declined
The following flow presents how confirmOrDeclineBooking()
determines the booking status.
Calling a checkout after creating a booking, is optional, confirmOrDeclineBooking()
can be called after createBooking()
- Whether the availability check is required If
skipAvailability
istrue
, it will skip the check and it will never be adoublebooking
. - Whether the booking is paid for.If the payment status is
PAID
orPARTIALLY_PAID
, the booking is confirmed regardless of thedoubleBooking
parameter. - Wether the booking requires business confirmation. Instead of
CONFIRMED
the status is set toPENDING
. This happens since it needs to always be manually approved by the owner. You can bypass the confirmation check by setting theskipBusinessConfirmation
property totrue
when creating a booking.
Was this helpful?