The following flow presents how
confirmOrDeclineBooking() determines the booking status.
Calling a checkout after creating a booking, is optional,
confirmOrDeclineBooking() can be called after
- Whether the availability check is required If
true, it will skip the check and it will never be a
- Whether the booking is paid for.If the payment status is
PARTIALLY_PAID, the booking is confirmed regardless of the
- Wether the booking requires business confirmation. Instead of
CONFIRMEDthe status is set to
PENDING. This happens since it needs to always be manually approved by the owner. You can bypass the confirmation check by setting the
truewhen creating a booking.
Was this helpful?