GithubHelp home page GithubHelp logo

lgs / stripe-subscriptions-sca Goto Github PK

View Code? Open in Web Editor NEW

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

0.0 2.0 0.0 23 KB

Create recurring subscriptions with built-in SCA support (Node v8+ & Stripe)

Home Page: https://codenebula.io/node.js/stripe/sca/2020/03/03/how-to-use-stripes-new-payment-intents-api-with-node-js-to-create-subscriptions-with-built-in-sca/

JavaScript 32.97% CSS 19.85% HTML 47.19%

stripe-subscriptions-sca's Introduction

stripe-subscriptions-sca

This repository shows you how to use Node (version 8+) and Stripe to create recurring subscriptions with built-in SCA support. It is an updated version of stripe-recurring-subscriptions.

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

Tutorial

We’ve written 2 detailed tutorials about this code on the 🌟 CodeNebula blog:

🌟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

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/register.html file, replace var stripe = Stripe("pk_test_************************") with your Stripe Publishable Key
  6. Run the app via npm run start
  7. Navigate to localhost:3000

Demo Workflow

What's changed from the last time we set up subscriptions

stripe-subscriptions-sca's People

Contributors

code-nebula avatar

Watchers

James Cloos 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.