{"id":23605951,"url":"https://github.com/ulisses22/stripe-payment-in-nodejs","last_synced_at":"2026-06-20T04:31:05.338Z","repository":{"id":239335034,"uuid":"792109975","full_name":"Ulisses22/stripe-payment-in-nodejs","owner":"Ulisses22","description":"How to Integrate Stripe Payment Gateway in Node.js App","archived":false,"fork":false,"pushed_at":"2024-04-26T23:08:40.000Z","size":2712,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T19:50:08.633Z","etag":null,"topics":["api","backend","javascript","nodejs","payment-gateway","stripe"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ulisses22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-26T02:02:22.000Z","updated_at":"2025-01-27T17:12:13.000Z","dependencies_parsed_at":"2024-05-11T16:48:53.488Z","dependency_job_id":null,"html_url":"https://github.com/Ulisses22/stripe-payment-in-nodejs","commit_stats":null,"previous_names":["ulisses22/stripe-payment-in-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ulisses22/stripe-payment-in-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulisses22%2Fstripe-payment-in-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulisses22%2Fstripe-payment-in-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulisses22%2Fstripe-payment-in-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulisses22%2Fstripe-payment-in-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ulisses22","download_url":"https://codeload.github.com/Ulisses22/stripe-payment-in-nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulisses22%2Fstripe-payment-in-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34557551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","backend","javascript","nodejs","payment-gateway","stripe"],"created_at":"2024-12-27T13:14:08.877Z","updated_at":"2026-06-20T04:31:05.308Z","avatar_url":"https://github.com/Ulisses22.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stripe Payment Integration in Node.js - [demo](#demo)\n\nThis project demonstrates how to integrate the Stripe payment gateway into a Node.js application. With this setup, you can securely process payments for goods or services on your website.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following:\n\n- Node.js installed on your system.\n- A Stripe account. If you don't have one, you can sign up [here](https://dashboard.stripe.com/register).\n\n## Installation\n\n1. Clone or download this repository to your local machine.\n2. Navigate to the project directory in your terminal.\n3. Install the dependencies by running:\n    ```bash\n    npm install\n    ```\n\n## Configuration\n\n1. Create a `.env` file in the root directory of your project.\n2. Add your Stripe API keys to the `.env` file:\n    ```plaintext\n    STRIPE_SECRET_KEY=your_stripe_secret_key\n    PUBLISHABLE_KEY=your_stripe_publishable_key\n    PORT=3000\n    ```\n    Replace `your_stripe_secret_key` and `your_stripe_publishable_key` with your actual Stripe API keys.\n\n## Usage\n\nTo start the server, run the following command in your terminal:\n\n```bash\nnode --env-file=.env  app.js\n```\n\nThis will start the server at http://localhost:3000 by default.\nEndpoints\n\n    GET /: Renders the home page with a Stripe payment form.\n    POST /payment: Handles the payment processing.\n\nCode Overview\nDependencies\n\n    express: Web application framework for Node.js.\n    body-parser: Middleware to parse incoming request bodies.\n    ejs: Template engine for rendering views.\n    stripe: Stripe Node.js library for interacting with the Stripe API.\n\n\n### Demo\n![demo](https://github.com/Ulisses22/stripe-pyment-in-nodejs/blob/main/586b36f9-8038-407b-a198-8049fcc8c5c2.gif)\n\napp.js\n\nThis file contains the main application logic. It sets up the Express server, configures middleware, defines routes, and handles payment processing.\nviews/Home.ejs\n\nThis EJS template renders the home page with a Stripe payment form. It includes the Stripe.js script to securely handle payment information.\npackage.json\n\nContains metadata about the project and its dependencies.\nLicense\n\nThis project is licensed under the ISC License. See the LICENSE file for details.\n\nFeel free to customize this README to fit your project's specific needs. Happy coding! 🚀\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulisses22%2Fstripe-payment-in-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulisses22%2Fstripe-payment-in-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulisses22%2Fstripe-payment-in-nodejs/lists"}