Skip to content

yokwejuste/stripe-payment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Making Stripe Payments with Python and React in 2024

This project contains the code for a simple purchase flow using Stripe Checkout. The backend is built with Python and Flask, and the frontend is built with React.

Simple Project Structure

For the sake of simplicity we provided a simple structure for the project. The project is divided into two main directories: server and frontend. The server directory contains the Flask app that serves the API, and the frontend directory contains the React app that serves the frontend.

Project structure

Running the Project

We provided a docker-compose.yml file that allows you to run the project with a single command. To run the project, make sure you have Docker installed on your machine, and then run the following command:

# copy the .env files
cp frontend/.env.example frontend/.env

cp server/.env.example server/.env

# run the project using docker-compose
docker compose up

Note: The secret keys in the .env files are for testing purposes only They are publicly available on the stripe documentation.

Contributing

If you have any suggestions or improvements, feel free to open an issue or create a pull request. We welcome contributions from the community.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published