GithubHelp home page GithubHelp logo

lgs / stripe-recurring-subscriptions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from code-nebula/stripe-recurring-subscriptions

0.0 2.0 0.0 65 KB

Create Recurring Subscriptions in Stripe using Node

Home Page: https://codenebula.io/stripe/node.js/2019/04/11/creating-monthly-recurring-subscriptions-in-stripe-using-node-js-part-1/

JavaScript 25.48% CSS 18.00% HTML 56.52%

stripe-recurring-subscriptions's Introduction

stripe-recurring-subscriptions

Important Note πŸ“Œ

An updated version of this codebase is available here: stripe-subscriptions-sca

The updated version shows you how to set up recurring subscriptions that support SCA (Strong Customer Authentication).

We recommend checking out the following tutorials, which complement the new codebase:

🌟How to Set up a Basic Node Application with Stripe

🌟How to use Stripe’s new Payment Intents API with Node.js to create subscriptions with built-in SCA

Overview

This repository shows you how to create recurring subscriptions with Stripe and Node.js.

It uses Express for creating a simple server, Nunjucks for templating, and the Stripe API.

It features

  1. An Admin View when you can create Stripe Products and Plans via the Stripe API.
  2. A Client View where your users can view and pay for your subscription plans.

Demo Video

Tutorial

We’ve written a detailed, 3-part tutorial about this code on the 🌟 CodeNebula blog: Creating Monthly Recurring Subscriptions in Stripe using Node.js

Instructions

  1. Clone this repository
  2. Run npm install to install all dependencies
  3. Create a .env file to house your Stripe Secret Key (this repo includes .env in its .gitignore)
  4. In the .env file, set your secret key as STRIPE_API_KEY (STRIPE_API_KEY="sk_test_************************")
  5. In the Javascript section of the views/signUp.html file, replace var stripe = Stripe("pk_test_************************") with your Stripe Publishable Key
  6. Run the app via npm start
  7. Navigate to localhost:3000

stripe-recurring-subscriptions's People

Contributors

asitwala avatar code-nebula avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.