Skip to content

[OrderRefactor][Order][Checkout] Fulfill Checkout information #1110

Open
@nashtech-vietvuhoang1

Description

After creating the Checkout object (ticket #1105),
The Storefront will:

  • Get all payment methods from Payment Service
    • Service: Payment Service
    • API GET /methods
  • Get all shipment methods from Delivery Service
    • Service: Delivery Service
    • API GET /providers
  • Get Customer Addresses from Customer Service
    • Service: Customer Service
    • API GET /profile/addresses

The Storefront will display on UI and The Customer will use Storefront to enter following information:

  • Payment methods to Checkout Object PUT /order/checkouts/{checkout_id}/payment { payment_method }
  • Promotion Code to apply to the Checkout PUT /order/checkouts/{checkout_id}/promocode { promocode }
  • When receiving the Promotion Code, Order Service will call to Promotion Service to verify the Promotion Code
  • Delivery method to Checkout Object PUT /order/checkouts/{checkout_id}/shipment { shipment_provider }
  • Shipping Address to Checkout Object PUT /order/checkouts/{checkout_id}/address { shipment_address }
    • When Delivery method and Shipping Address are fulfilled, Order Service will call to Delivery Service to update Shipping Cost to update to Checkout Items
  • Storefront will call API GET /order/checkouts/{checkout_id} to get Checkout Information, if Product Price, Tax, Shipment fee, discount are fulfilled, Storefront will display "Proceed to Payment" button

Checkout Flow

Checkout Flow

Metadata

Assignees

Type

No type

Projects

  • Status

    🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions