Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niteshthori24198/_stripe_
This project implements backend APIs for Stripe Payment Gateway integration. It provides functionality to create payment intents, capture intents, create refunds, and get a list of all intents using the Stripe API.
https://github.com/niteshthori24198/_stripe_
express-js nodejs stripe
Last synced: 14 days ago
JSON representation
This project implements backend APIs for Stripe Payment Gateway integration. It provides functionality to create payment intents, capture intents, create refunds, and get a list of all intents using the Stripe API.
- Host: GitHub
- URL: https://github.com/niteshthori24198/_stripe_
- Owner: Niteshthori24198
- Created: 2024-01-27T16:30:12.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-28T06:25:04.000Z (10 months ago)
- Last Synced: 2024-10-11T04:25:17.944Z (about 1 month ago)
- Topics: express-js, nodejs, stripe
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Portone_Stripe_Assignment
## Description
This project implements backend APIs for Stripe Payment Gateway integration. It provides functionality to create payment intents, capture intents, create refunds, and get a list of all intents using the Stripe API.
## Installation
1. Clone the github repository :
git clone https://github.com/Niteshthori24198/portone_stripe_assignment
cd your-repo
2. Install dependencies :
npm install
3. Set up Stripe Sandbox Account :
- Create an account on [Stripe Dashboard](https://dashboard.stripe.com/register).
- Obtain your Stripe Access Keys and Secret Keys.
4. Create a `.env` file in the root directory :
PORT = 3000
STRIPE_PUBLIC_KEY = add your-stripe-public-key
STRIPE_SECRET_KEY = add your-stripe-secret-key
## Usage
1. Run the application using one of mentioned command :
```bash
npm run start
npm run server
```2. APIs Documentation :
| API Endpoint | HTTP Method | Description |
| -----------------------------------|-------------|--------------------------------------------------|
| `/payment/api/v1/create-payment_intent` | POST | Create Intent for Payment |
| `/payment/api/v1/capture-payment_intent/:id` | POST | Capture Payment Intent with specified ID |
| `/payment/api/v1/create-refund/:id` | POST | Create Refund for Payment with specified ID |
| `/payment/api/v1/list-payment_intent` | GET | Get List of Payment Intents |## Testing
1. Run unit tests:
```bash
npm test
```## References
- [Stripe API Docs](https://stripe.com/docs/api/payment_intents)
## Contributors
- Nitesh Kumar
Thank You 💖