Skip to content

Sample application that implements Stripe with Firebase Functions

Notifications You must be signed in to change notification settings

monowar1993/StripeFirebaseAndroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StripeFirebaseAndroid

Sample application that implements Stripe with Firebase Functions

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:

  • Create a Firebase Project using the Firebase Developer Console
  • Enable billing on your project by switching to the Blaze or Flame plan. See pricing for more details. This is required to be able to do requests to non-Google services.
  • Install Firebase CLI Tools if you have not already and log in with firebase login.
  • Configure this sample to use your project using firebase use --add and select your project.
  • Install dependencies locally by running: cd functions; npm install; cd -
  • Add your Stripe API Secret Key to firebase config:
    firebase functions:config:set stripe.token=<YOUR STRIPE SECRET KEY>
  • Deploy your function using firebase deploy --only functions
  • Deploy your hosting using firebase deploy --only hosting
  • Test your Stripe integration by viewing your deployed site firebase open hosting:site

About

Sample application that implements Stripe with Firebase Functions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published