Custom booking flow - payment status

I’m currently building a custom booking flow and have run into a problem during the cart and checkout process. The payment status of the booking is not PAID after the flow.

On add to cart it creates the booking and add it to lineItem and then add to cart. and after onOrderPaid run a automation to confirm booking and payment status PAID.

wixEcom_onOrderPaid

After the flow its making the booking item attendance as BOOKED but the payment status is still unavailable

Do you have a link so we can test this out and can you share the code as well so it’s easier to see? I’m also curious if you’re seeing the appropriate console error. I like breaking down the code and adding console logs to see if things are running and executing correctly.