I'm currently looking for a way to redirect directly to the checkout with a button click in an order. First, I've followed this question here to programmatically create orders for my customers with my custom order status pending-payment
:
Programmatically creating new order in Woocommerce
After that I'm creating a programmatically product and adding it to the order.
Important to know is, that these orders are not paid yet.
Now I've a button <a class"button">Select and pay</a>
in my order (Account -> Orders -> View Order Page).
When I click the button, I want to get redirected to the checkout to let the customer perform the normal checkout process with payment selection and all that stuff. So what kind of button do I need to perform this?