Hello there,
I created a custom flow using wix bookings api to book services. It was working perfectly until 3-4 days ago. I followed this example https://support.wix.com/en/article/corvid-tutorial-creating-a-custom-bookings-experience .
Now when I try to call checkoutBooking() api it throws error which goes into catch block i.e
(code: -10010 message: “Over Capacity” ).
This is my site https://madhu57.wixsite.com/ssdev6 . You can click “Book Now” on first service and test it. You can find log data in the console.
If you want further code please let me know in the comment section.
I would be very glad if you can help me solve this issue.
As it comes up with the Wix bookings API error about checkoutBooking().
Then check your code and payment setups as it needs to be able to go and pay for the booking.
See here for info about the Wix Bookings API and see the checkoutBooking() function info. https://www.wix.com/corvid/forum/corvid-tips-and-updates/new-bookings-api
checkoutBooking( ) - Use this function once users have selected one of the available slots you presented to them. This function will book the selected service and process payments for the service if necessary.
Also have a good read of the Wix Bookings API reference for checkoutBooking() here.
https://www.wix.com/corvid/reference/wix-bookings.html#checkoutBooking
If the service being checked out is not a free service, you also need to pass a PaymentOptions object containing information about the method of payment and any coupon codes. If an online method of payment is specified, a payment popup is presented for the user to input payment information, such as credit card information. The function’s returned Promise resolves after the user finishes entering the payment information and the service has been successfully booked. If no payment or an offline method of payment is specified, the payment popup is not presented and the Promise resolves when the service has been successfully booked.
If a service is configured as a paid service in the Dashboard , attempting to perform a checkout as if it is a free service results in an error.
For payment options see the reference here.
https://www.wix.com/corvid/reference/wix-bookings.html#PaymentOptions