We have a need to recreate certain orders for our customers and then allow them to go directly to the checkout page where they can then pay for that order.
I can grab the previous order from the api and use that data to recreate the order, but how can I populate the cart on behalf of the customer so I can send them directly to a checkout page bypassing the cart stage?
my thought was to submit the cart via guzzle and then redirect to the checkout page, but that doesn't seem to work as the checkout is always empty.
is there a way I can make this happen? Basically we want an admin on our side to generate a new order and send a link to their customer, when the customer clicks the link, our logic populates the foxy cart with the order and redirects them to a checkout page where they can then pay for the order.
I'm sure I could send them to a custom form which they could review and click checkout which would then take them to the checkout form, but I'm trying to save a step and go directly to the prepopulated checkout form.
also I know I could do this with just a get request and a query string, but the URL will be ridiculously long in certain cases so I really want to do this with a post request if possible
thanks for any suggestions!