I’ve seen tutorials with stripe checkout but not with COD. I’m not sure how I can convert a current user’s list of orders into a new data type for confirmed orders. Should I even have a new data type for processed orders?
The data types I have are Orders and Users. Users thus have a field for a list of Orders.
How can I do a workflow that converts “current user’s list of orders” into current users list of processed orders" with a new data type called “processed orders” containing product details + user details e.g name, shipping address etc…
Any guidance on this topic or link to relevant materials would be much appreciated!