In this section, you will be instructed on how to set this service up before we start coding the main elements. Setting up this service is a good bit easier than the previous service, the UMS. We are sending emails, but we are not issuing JWTs. What we will do is basically the following:
- Take in orders from the user: The service needs to take in orders that are coming from the user, usually through your app or frontend. The order requests contain the items the user wants to buy along with shipping and billing information.
- Verify the prices in the orders: In microservices, the databases are not shared. So the OMS does not know the prices of the products since they are in the PMS. In order to verify an order, we have to connect to the PMS and get the price list after an order was received.
- Wait for payments to come in: After an order is taken, we need to wait for...