Thanks for your reply Sergei.
In every step of the checkout we receive the OK, and the next step to execute.
And if we select something wrong we receive the same step as next, to replicate the step and correct the problem.
At the moment we have problem with the selectshippingmethod call... becaose it reply OK, and tell us to move to the next step (paymentmethod) but we find, debugging, that the data saved is not the same as we make the checkout process via web....
We think that we are missing something to pass... or we pass the data in the wrong way... but without any kind of documentation... how we can know what to pass???
Sergei-k wrote:I'm sorry no one answered your question earlier. Unfortunately, I won’t help much either, because I don’t quite understand what kind of help you are waiting for. If you send the correct request to the server, it will be processed correctly. Try debugging through the entire checkout path, including making sure SelectShippingMethod is processing your data and saving it correctly. I would also like to note that we do not know how you pass data to EnterPaymentInfo and other calls. We are happy to help you identify specific method call issues, however, we cannot analyze your business solution as a whole.
Also, based on our development and the development of our partners, the current API does not allow to complete the order creating process without changes in the web API. We will add the necessary methods in future versions.
No one responding to this.... sorry guys.... we have payed for the API.... the swagger hub documentation tell us how many calls exist and the parameter... but no infos on what is mandatory and what procedure follow to use them... is a little confusing without any help....
NOP Version 4.50.3 API version 4.50.9
Another question regarding API and checkout.
We make the subsequent call chain to complete the checkout:
- Checkout/index
- Checkout/SelectBillingAddress
- Checkout/ShippingMethod
- Checkout/SelectShippingMethod
- Checkout/PaymentMethod
- Checkout/SlectPaymentMethod
- Checkout/PaymentInfo
- Checkout/EnterPaymentInfo
- Checkout/Confirm
- Checkout/ConfirmOrder
All works until the last call... but at the end we receive the warning: "Shipping total couldn't be calculated" and the order will not be confirmed.
(trying this with 4.50.4 we have the order confirmed, but seeing in the order details we have no shipping method selected)
Debugging the website we can see that in the OrderProcessingService.PreparePlaceOrderDetailsAsync we call the following code:
var shippingOption = await _genericAttributeService.GetAttributeAsync<ShippingOption>(details.Customer, NopCustomerDefaults.SelectedShippingOptionAttribute, processPaymentRequest.StoreId);
Debugging this function we can see that the customer attribute SelectedShippingOption is populated with a value that is different of the one we have when we make the checkout from the website....
We suppose that we could be in wrong with the way to call the Checkout/SelectShippingMethod API.
At the moment we are passing "shippingOption" query paramenter (with this value: Next Day Air___Shipping.FixedByWeightByTotal) and this in the body: {
"shippingoption":"Ground___Shipping.FixedByWeightByTotal",
"nextstep":""
}
is this the error???