ordercloud-api / headstart

A complete and opinionated eCommerce solution using OrderCloud as the backbone - built with .NET Core and Angular
MIT License
31 stars 74 forks source link

Issue with the estimate shipping step #250

Closed phamtheanhphu closed 3 years ago

phamtheanhphu commented 3 years ago

Hi,

Currently I have set up the headstart on my local and I have been stuck with the estimate shipping step when calling to the order cloud instance (at URL: https://sandboxapi.ordercloud.io/v1/orders/Outgoing/mehRROcgQEeiVI08U-iaIA/estimateshipping). The attached images described my problem.

image

image

image

Thank.

djsteinmetz commented 3 years ago

Hello Phu, Do you have an integration event set up and assigned to the API client that you are using for your buyer application? This is the most common cause of this error message. This action can be performed from the Integration Event and API Client interfaces of the OrderCloud Portal.

phamtheanhphu commented 3 years ago

Dear @djsteinmetz ,

Thank you so much for your supports, you have really saved my life 👯 - I have updated the CustomImplementationUrl value of my integration events and the shipping step has been successfully process. image

However, I have still stuck to another issue of shipping selection step with a error message (as attached images below). I'll really appreciated if you can provide any hint for coping with this issue. Thank you so much & have a nice day.

image image

djsteinmetz commented 3 years ago

Great, I'm glad that step moved us forward. This new error you are seeing is actually still just an error surrounding estimating shipping/the checkout integration. It just displays this generic message to change your shipping address in an attempt to give the user direction after the error.

I have visited the URL that you have assigned to the Integration Event's "CustomImplementationUrl" to see if I could load the Swagger Spec for your middleware, and noticed that I was redirected to the homepage of the buyer application. Then I realized that the URL you used for the "CustomImplementationUrl" is a URL for the buyer application's checkout page. The URL that needs to be assigned to "CustomImplementationUrl" on your Integration Event needs to be the base URL for your middleware (the .NET Core C# solution, located in the /src/UI/Middleware directory of the codebase). Do you have a hosted instance of your middleware? If so, use that URL for the "CustomImplementationUrl".

phamtheanhphu commented 3 years ago

Dear @djsteinmetz ,

Awesome, I have comprehensively understood the core mechanism right now - I have change the configurations again and everything is working already.

Now, I can place the order successfully. Thank you so much for your whole-hearted supports 👯‍♂️ .

I also attached my configurations in appSettings.json of my middleware below for other people can refer easily. Again thank you so much.

image Inked131705513-039f2dbc-6faa-4bb5-a8db-d0824e2815bf_LI image

Edit: Edited to remove sensitive information