An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

![image](https://user-images.githubusercontent.com/87586713/225868531-a169d811-deeb-4816-b8d5-0e1c0834ef34.png)

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:


  1. Clone the repository to your local machine.

  2. Install the dependencies.

  3. Set up your Stripe account and obtain your API keys.

  4. Update the `.env` file with your API keys.

  5. 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

![image](https://user-images.githubusercontent.com/87586713/225868195-6ab7ceb2-7465-4ab1-b4d7-387ba1fc24da.png)