Hello, I am working on the development of a marketplace for my app and using nopcommerce web api plugin. I am able to create customer, vendor, and all general requests, but am unable to place the order. I can add products to the shopping cart but don't know how flow works after that. Whenever i try to send request "Create order", it gives me error:500. Can anyone kindly guide me through this. I am using the latest version.
Hi. Please specify which method you are using to place an order.
Jennifer.pagarba wrote:
Hello, I am working on the development of a marketplace for my app and using nopcommerce web api plugin. I am able to create customer, vendor, and all general requests, but am unable to place the order. I can add products to the shopping cart but don't know how flow works after that. Whenever i try to send request "Create order", it gives me error:500. Can anyone kindly guide me through this. I am using the latest version.
I am using api-backend/Order/Create. There is one closest to it is api-backend/OrderProcessing/PlaceOrder. Both give me error:500. I use them directly after add to cart. Don't know how to tackle this.
Could you please provide us with a snippet of the OrderDto or Process PaymentRequest to preparation code that you pass when you call Create or PlaceOrder for analysis
Jennifer.pagarba wrote:
I am using api-backend/Order/Create. There is one closest to it is api-backend/OrderProcessing/PlaceOrder. Both give me error:500. I use them directly after add to cart. Don't know how to tackle this.
Well, earlier I was getting error 500 but just now I am able to successfully create order through API plugin. But when I try to see details on my web dashboard, I get an error, I have attached the images links along with this post.
Unfortunately, I do not see all the data that you insert into the order, according to the error text, I can only assume that the data in the CheckoutAttributesXml or CustomValuesXml field is entered in the wrong format
Jennifer.pagarba wrote:
Well, earlier I was getting error 500 but just now I am able to successfully create order through API plugin. But when I try to see details on my web dashboard, I get an error, I have attached the images links along with this post.