docs: added dividers + see also section (#2899)
This commit is contained in:
@@ -17,6 +17,8 @@ It’s recommended to go through the [Shipping Architecture Overview](../backend
|
||||
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## Prerequisites
|
||||
|
||||
### Medusa Components
|
||||
@@ -37,6 +39,8 @@ This document assumes you’ve already taken care of the add-to-cart flow. So, y
|
||||
|
||||
You can learn how to implement the cart flow using [this documentation](../../guides/carts-in-medusa.mdx).
|
||||
|
||||
---
|
||||
|
||||
## Shipping Step
|
||||
|
||||
In this step, the customer generally enters their shipping info, then chooses the available shipping option based on the entered info.
|
||||
@@ -106,6 +110,8 @@ This request accepts the ID of the cart as a path parameter and the new shipping
|
||||
|
||||
The request returns the updated cart, with the new shipping address available in `cart.shipping_address`.
|
||||
|
||||
---
|
||||
|
||||
### List Shipping Options
|
||||
|
||||
After updating the cart with the customer’s address, the list of available [shipping options](../backend/shipping/overview.md#shipping-option) for that cart might change. So, you should retrieve the updated list of options.
|
||||
@@ -183,6 +189,8 @@ The request accepts the ID of the cart as a path parameter and its body the ID o
|
||||
|
||||
It returns the updated cart, with the created shipping method available in the array `cart.shipping_methods`.
|
||||
|
||||
---
|
||||
|
||||
## Payment Step
|
||||
|
||||
In this step, the customer generally chooses a payment method to complete their purchase. The implementation of payment providers is done differently for each provider, so this section will just show the general steps you should follow when implementing this step.
|
||||
@@ -366,8 +374,11 @@ The request returns two properties: `type` and `data`. If the order was placed s
|
||||
|
||||
If an error occurred while placing the order, `type` will be `cart` and `data` will be the cart's data.
|
||||
|
||||
## What’s Next
|
||||
---
|
||||
|
||||
- Learn more about the [JS Client and how to use it](../../js-client/overview.md).
|
||||
## See Also
|
||||
|
||||
- [Medusa JS Client Overview](../../js-client/overview.md).
|
||||
- Check out available plugins for popular payment providers such as [Stripe](../../add-plugins/stripe.md) and [PayPal](/add-plugins/paypal.md).
|
||||
- Learn more about the [Payment](../backend/payment/overview.md) and [Shipping](../backend/shipping/overview.md) Architectures.
|
||||
- [Payment Architecture](../backend/payment/overview.md)
|
||||
- [Shipping Architecture](../backend/shipping/overview.md)
|
||||
|
||||
Reference in New Issue
Block a user