This is a prototype Node.js application that integrates with Stripe using their API hosted on Cyclic. The app retrieves a fresh list of customers and payment intents from Stripe with each reload. It provides a simple web interface to display the data.
-
Clone the repository:
git clone https://github.com/your-username/stripe-integration-nodejs-app.git
-
Navigate to the project directory:
cd stripe-integration
- Install the dependencies:
npm install
- Set up the environment variables:
-
Create a .env file in the root directory of the project.
-
Add the following variables to the .env file:
STRIPE_API_KEY=your_stripe_api_key
PORT=80
- Replace your_stripe_api_key with your actual Stripe API key. You can obtain the API key from your Stripe account dashboard.
- Start the application:
npm start
- Open your web browser and visit http://localhost to see the app in action.
The app automatically fetches the list of customers and payment intents from Stripe using the provided API key. On the home page, you will see two tables displaying the customer data and payment intent data. The tables are updated with fresh data each time you reload the page.
This project is licensed under the MIT License.