Create woocommerce booking in php and link order to it [closed]

Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange.

Closed 8 days ago.

I have created a function that on submit of my form I pay for my product using stripe and then it creates a WooCommerce order. is it possible to create a blank WooCommerce booking (bookings extension) and then link that order to it without needing a bookable product etc etc.