Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 authored Mar 25, 2021
1 parent 7d79be6 commit 4d9d410
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,23 @@ We have launched an online demo for this module: [https://eshop.samples.easyabp.

* Place an Order
* We have not yet provided relevant UI for this action.
* Use the API `/api/eShop/orders/order` (POST) to create a new order.
* Use the API `/api/e-shop/orders/order` (POST) to create a new order.

* Pay for the Order
* We have not yet provided relevant UI for this action.
* Use the API `/api/eShop/payments/payment` (POST) to create a pending new payment for your order.
* Use the API `/api/e-shop/payments/payment` (POST) to create a pending new payment for your order.
* You can pay for multiple orders at once.
* You need to decide one of the payment methods provided by the [EasyAbp.PaymentService](https://easyabp.io/modules/PaymentService/) module.
* Use the API `/api/eShop/orders/order/{id}` (GET) get the order, then you can get the "paymentId" in the result.
* Use the API `/api/paymentService/payment/{id}/pay` (POST) to complete the payment.
* Use the API `/api/e-shop/orders/order/{id}` (GET) get the order, then you can get the "paymentId" in the result.
* Use the API `/api/payment-service/payment/{id}/pay` (POST) to complete the payment.
* "id" is the "paymentId" we got above.
* Different payment methods require different "extraProperties" for this API. Read the [document](https://easyabp.io/modules/PaymentService/) of the EasyAbp.PaymentService module to learn more.

* Complete the Order
* We have not yet provided relevant UI for this action.
* Use the API `/api/paymentService/payment/{id}/pay` (POST) to complete the payment.
* Use the API `/api/e-shop/orders/order/{id}/complete` (POST) to complete the order.
* The customer should have permission to complete the order himself.
* For some product group, you may want to prohibit users from completing orders themselves, and automatically complete orders through some system rules.
* You need to override the "CompleteAsync" method of the "OrderAppService" if you want to prohibit users from completing orders themselves for some specific product groups but complete them through automated processes.

## Advanced Usages

Expand Down

0 comments on commit 4d9d410

Please sign in to comment.