Search⌘ K
AI Features

Setting Up the Server

Explore how to build the backend server for a complete checkout experience using Stripe API. Understand API authentication with middleware, retrieving product data from a mock store, and generating payment intents to process transactions securely.

In this chapter, we will learn about building a complete checkout journey for the customers. We will be using Fake Store API as a mock e-commerce store service. We will retrieve the products and cart details from the Fake Store API and process the payment using Stripe and Stripe Elements.

The application that we will be interacting with throughout this chapter consists of two components: a frontend and a backend. The directory structure of this application is given below:

├── backend
│   ├──
...