AOEpeople / Aoe_CartApi

More resources for Magento's Api2 (REST)
Open Software License 3.0
37 stars 6 forks source link

Question about the Checkout workflow #14

Open azngeek opened 7 years ago

azngeek commented 7 years ago

Hello,

i am very interested about implementing an "Magento Headless" project based on the cart api. Is there a recommended workflow, so in which order to run the call. I was thinking about that:

  1. Get the current quote GET /api/rest/cart
  2. Let the user enter email and shipping / billing address and update the information with PUT/POST /api/rest/cart/billing_address|shipping_address
  3. Request the updated cart with GET /api/rest/cart
  4. Request available shipping methods and payment methods with GET /api/rest/cart/shipping_methods|payment_methods
  5. User selects shipping or payment method. Cart quote might change so update cart quote again. And here is the question: Where will the shipping and payment methods be submitted.

And finally: I have got every information and want to run the checkout. Would it be enough to extend the OnestepController, add some JSON responses etc. and run the submit method?

Would be very interesting to see how you guys implement this.

LeeSaferite commented 7 years ago

If you want to email me I can provide a site using the API as a reference you can review.

azngeek commented 7 years ago

Sure. What's your email.

LeeSaferite commented 7 years ago

Check my profile

Bits101 commented 7 years ago

Hello,

Much appreciate If you can share a reference site for reviewing. Email sent already.

Thanks.