I want to place orders on behalf of a customer. I have an integration token for this. I have followed the below steps.
- Create Empty Cart = POST
/V1/carts
(Passing customer Id as param) - Add product to cart = POST
"/V1/carts/".$quote_id."/items"
(Passing product data) - Get Shipping methods = POST
"/V1/carts/".$quote_id."/estimate-shipping-methods"
- Set shipping and billing = POST
"V1/carts/".$quote_id."/shipping-information"
The above steps are working fine. Now I need to set the payment method and place the order. How can I do it?