https://github.com/morishin/payme
Example web application to receive money built with Stripe + Firebase
https://github.com/morishin/payme
firebase stripe
Last synced: about 1 year ago
JSON representation
Example web application to receive money built with Stripe + Firebase
- Host: GitHub
- URL: https://github.com/morishin/payme
- Owner: morishin
- License: mit
- Created: 2018-10-27T14:52:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-13T13:57:39.000Z (over 7 years ago)
- Last Synced: 2025-04-01T05:41:25.375Z (about 1 year ago)
- Topics: firebase, stripe
- Language: HTML
- Homepage:
- Size: 44.9 KB
- Stars: 8
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Payme
Example web application to receive money built with Stripe + Firebase
(inspired by [gordonnl/firebase-stripe](https://github.com/gordonnl/firebase-stripe))

## Features
You can create your link and start receiving any amount of money spacified as URL.
`https://.firebaseapp.com/`


## Deploy and test payment
1. Create a Firebase Project using the [Firebase Developer Console](https://console.firebase.google.com)
1. Enable billing on your project by switching to the **Blaze** (or Flame) plan. See [pricing](https://firebase.google.com/pricing/) for more details. This is required to be able to do requests to non-Google services.
1. Install [Firebase CLI Tools](https://github.com/firebase/firebase-tools) if you have not already and log in with `firebase login`.
1. Configure this sample to use your project using `firebase use --add` and select your project.
1. Install dependencies locally by running: `cd functions; npm install; cd -`
1. [Add your Stripe API Secret Key](https://dashboard.stripe.com/account/apikeys) to firebase config:
```bash
firebase functions:config:set stripe.token=
```
1. Pass your [Stripe publishable key](https://dashboard.stripe.com/account/apikeys) to the `STRIPE_PUBLIC_KEY` variable in `public/index.html` (like `pk_test_*****************`)
1. Deploy your function using `firebase deploy --only functions`
1. Pass your new [Firebase Function URL](https://firebase.google.com/docs/functions/http-events) to the `CHARGE_CLOUD_FUNCTION_TRIGGER_URL` variable in `public/index.html` (like `https://us-central1-***.cloudfunctions.net/charge`)
1. Deploy your hosting using `firebase deploy --only hosting`
1. Test your Stripe integration by viewing your deployed site `firebase open hosting:site`