how to update order payment status - CreateOrder() wix velo

Is there a way to update payment status from UNPAID to PAID for an order using wix velo ?

I’m calling createOrder() function before payment is being processed in the cart page, and after successful payment confirmation , I want to update order status to PAID without going to the dashboard.

Is there a way to update the status programmatically?