Getting started with FastAPI
Start accepting x402 payments in your FastAPI server in 2 minutes.You can find the full code for this example here.
Step 1: Install dependencies
Step 2: Set your environment variables
.env file should look like this:
Step 3: Create a new FastAPI app
main.py
Step 4: Run the server
Your server is now accepting x402 payments!

