You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var order = _umbracoCommerceApi.GetCurrentOrder(storeId)
.AsWritable(uow);
//Finalize order
order.InitializeTransaction();
order.Finalize(order.TotalPrice, Guid.NewGuid().ToString("N"), PaymentStatus.Authorized);
_umbracoCommerceApi.SaveOrder(order);
The order will recieve a status of 'Error' instead of 'New'.
We have to fetch the 'New' orderstatus set it and save the order again
var orderStatus = _umbracoCommerceApi.GetOrderStatus(storeId, "new");
order.SetOrderStatus(orderStatus, OrderStatusCode.Ok);
_umbracoCommerceApi.SaveOrder(order);
It just feels wrong that you have to save the order twice.
Umbraco 13.1.1
Umbraco Commerce 13.1.3
The text was updated successfully, but these errors were encountered:
When doing something like this
The order will recieve a status of 'Error' instead of 'New'.
We have to fetch the 'New' orderstatus set it and save the order again
It just feels wrong that you have to save the order twice.
Umbraco 13.1.1
Umbraco Commerce 13.1.3
The text was updated successfully, but these errors were encountered: