I want to create an order using API in magento.
I have already create an api as following:
So quote is generated in magento when customer called API from android while product add to cart. Now next thing is to create an order of this quote.
Description More about query : we place an order in magento by following way :
- Add product to cart
- Select shipping method (but here not because I am using downlodable product)
- Select payment method
- Place order
Now see how I maintain above steps between android app and magento
- Customer add product to cart in application (service is called to magento this time and I am adding products to cart with method “cart.create”)
- Customer select payment method Paypal. This time any service is not called but as we have paypal sdk,customer redirect to paypal from app to gateway.there he pay amount and come back to application.
- Now when he come back to application,service is called. And on this call I have to create an order.
May be this is more easy to understand my query.
Here I am confused, how to create an order in Magento after success/canceled transaction response, sent from App to Magento.