ordercloud-api/headstart

Order Submit Issue

venkatesh-dotnet opened this issue · 2 comments

Hi @crhistianramirez, please suggest how to place test order in development environment. we tried with dummy credit card and got "Order.CannotSubmitWithUnaccceptedPayments: Cannot submit an order with payments that have not been Accepted." error in await _oc.Orders.ValidateAsync(OrderDirection.Incoming, worksheet.Order.ID);

This error is expected, but should be caught and ignored as shown in the code snippet here

OrderCloud does require that payment.Accepted be true before an order submitted. Here, we're validating everything except that because later in the submit endpoint we set Accepted to true. Here is where that happens

Do you have the most recent code? Not sure how that error is bubbling up. It shouldn't be