Git Product home page Git Product logo

rwieruch / react-express-stripe Goto Github PK

View Code? Open in Web Editor NEW
236.0 9.0 67.0 200 KB

๐Ÿ’ฐ Minimal Boilerplate for Stripe used in React and Express. Charge payments from your customers with this project.

Home Page: https://www.robinwieruch.de

License: MIT License

HTML 24.59% JavaScript 75.41%
reactjs react stripe stripe-api stripe-checkout stripe-payments stripe-payment express express-js

react-express-stripe's Introduction

Stripe Server Checkout with React and Express

Build Status Slack

Screenshot 2019-09-07 at 11 35 07

Installation

Important: Setup works only with backend hosted somewhere reachable via an IP or domain. Stripe's Webhooks are not going to work on a localhost backend. The frontend application can run locally though.

Stripe Registration and API Keys

  • Register at Stripe and Setup a Payment Account to access the Dashboard
  • Find your API Keys:
  • Replace frontend
    • API keys: YOUR_STRIPE_PUBLIC_KEY
  • Replace backend

Frontend

Backend

Usage

When using it in production, you have to use a real credit card. Otherwise, in development mode, you can use a Stripe's test credit cards:

  • Email: Any Email
  • Number: 4242 4242 4242 4242
  • Date: Any Date in the Future
  • CVC: Any 3 Numbers

react-express-stripe's People

Contributors

ernoff avatar rwieruch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-express-stripe's Issues

Can't resolve 'child_process'

Hello, thanks for this tutorial.

When trying to install stripe for the server side code,

npm install --save stripe
npm run build:dll

I got this npm error :

ERROR in ./node_modules/stripe/lib/stripe.js
Module not found: Error: Can't resolve 'child_process' in '/home/louis/scotland2018/node_modules/stripe/lib'

Would you know what to do ? I searched all over the internet but there does not seem to be any solution. I checked the other opened issues about this subject but I did not find a solution. I want to use stripe-node server side only (I got that it should not be use client side and that Stripe.js is for client side). But still, why can't I build the dependencies ?

Note: I am using express with react (react-boilerplate) and webpack with dllPlugin. I added stripe to the excluded modules so that it excludes dependencies which are not intended for the browser

Thank you !

Upgrade to React 16

React 16 got released and there are practically no changes to the external API of React. Perhaps it would be an easy win to upgrade the project to React 16. Someone keen to do it?

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.