gordonnl / firebase-stripe

Headless Stripe Payments Using Firebase Functions
MIT License
76 stars 24 forks source link
firebase stripe

Headless Stripe Payments Using Firebase Functions

The simplest possible payment implementation - for static websites.

Implementation of Stripe's Direct Charge payment using all 3 available methods. Any one would suffice, however all are included to demonstrate. These include:

Secure, back-end communication to stripe performed in a Firebase Function, implemented using a http trigger.

Example front-end code uses Firebase Hosting, but can be hosted anywhere.

Further reading:

Front-end Code

See file public/index.html for all html and js code.

Functions Code

See file functions/index.js for the code.

The dependencies are listed in functions/package.json.

Deploy and test

To test this integration: