Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Setting the Shipment Method via API does not correctly set the order state #1594
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
radar
May 25, 2012
Member
Can you please show us what the API is returning for you as the response for this request?
Can you please show us what the API is returning for you as the response for this request? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
himanshumohan
Jul 13, 2012
I am also facing the same problem as after creating order and filling all shipping_details and billing_details when i am sending request for shipment_method_id ,the state is not changing from "delivery" state to "payment" state(even on server). I m sending PUT request as
"curl -X PUT -d '{"shipping_method_id":"123456"}' http://localhost:3000/api/orders/R12345?token= -H "Content-Type:application/json""
And the response i got is same as we got when we send GET request "http://localhost:3000//api/orders/R1234567?token=" i.e.response which contain all detail after the filling address request with status same as "status=>delivery" , while it should be in "status=>payment" .
himanshumohan
commented
Jul 13, 2012
I am also facing the same problem as after creating order and filling all shipping_details and billing_details when i am sending request for shipment_method_id ,the state is not changing from "delivery" state to "payment" state(even on server). I m sending PUT request as |
rottmanj commentedMay 24, 2012
While using the order api, when you set the shipment method the state of the order does not correctly update. The state of the order remains in the delivery state. This also causes another issue where the shipment_state is not correctly set to pending
Spree Version: 1-1-stable
Ruby Version: 1.9.2p290
Rails Version: 3.2.3
Here is some sample code