https://github.com/srijan-d/stripe-payment-gateway-nodejs
Stripe payment gateway
https://github.com/srijan-d/stripe-payment-gateway-nodejs
nodejs stripe stripe-checkout stripe-payments
Last synced: about 1 month ago
JSON representation
Stripe payment gateway
- Host: GitHub
- URL: https://github.com/srijan-d/stripe-payment-gateway-nodejs
- Owner: Srijan-D
- Created: 2022-10-12T19:06:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-17T09:39:55.000Z (about 2 years ago)
- Last Synced: 2025-02-18T04:57:26.049Z (3 months ago)
- Topics: nodejs, stripe, stripe-checkout, stripe-payments
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

Stripe Payment Gateway Backend in Node.js
This project provides a sample backend for processing payments using the Stripe Payment Gateway in Node.js. It includes sample code for creating a Stripe account, integration with stripe payment gateway, creating a checkout session for example in an ecommerce website, processing payments and vieewing it on stripe's admin dashboard using the Stripe API.
Prerequisites
To use this project, you will need to have the following installed:
- Node.js
- npm or yarn
- A Stripe account
Getting Started
To get started with this project, follow these steps:
- Clone the repository to your local machine.
- Install the dependencies.
- Set up your Stripe account and obtain your API keys.
- Update the `.env` file with your API keys.
- Run the server.
1. Clone the repository to your local machine.
git clone https://github.com/<your-username>/stripe-payment-gateway-backend.git
2. Install the dependencies.
cd stripe-payment-gateway-backend
npm install
php
Copy code
3. Set up your Stripe account and obtain your API keys.
You can find more information on how to set up a Stripe account and obtain your API keys here.
4. Update the `.env` file with your API keys.
STRIPE_API_KEY=sk_test_<your_secret_key>
STRIPE_PUBLIC_KEY=pk_test_
php
Copy code
5. Run the server.
npm start
