Comments (12)
charges is double quotes, you probably have an error in your firebase reference
from functions-samples.
This is the code I got from the repository.
Do you think, there is a mistake in it ?
from functions-samples.
Maybe you got that reversed but how the sample works is that, to trigger a charge you must write to the DB under the path /users/{userId}/charges/{id}
with an amount. The write to /users/{userId}/charges/{id}
will trigger the Firebase Function called createStripeCharge
and use the Stripe API to charge the user.
from functions-samples.
As you can see. There is no "charge directory" in my user tree. I tried everything but /charges/{id} is not present in the user profile. Please help.
from functions-samples.
It's not present because you have to create it. Every new entry under .../charge/{id}
will be a new charge that you invoke on the customer. You need to create a new entry under .../charge/
and this will start a Stripe charge. You can see #56 on how to write to the DB at that path.
@jamesdaniels I guess we could document this a little bit better in the README :)
from functions-samples.
Thanks @nicolasgarnier . You are the best.
from functions-samples.
I'll put up a web front end for the Stripe example today, that way people can see it in action without knowing how to use the database console. I'll leave this Issue open for this purpose.
from functions-samples.
The front end for the Stripe example is located in the index.js file ?
from functions-samples.
Not yet, I have a Vue.js front end I've made which will use Firebase Hosting. I'll have it up soon. Just need to clean it up + write instructions.
from functions-samples.
@jamesdaniels You are great Sir. I will be around to check if you can put stripe connect together to pay users. That will awesomely great.
Thanks Sir :)
from functions-samples.
Hello,
@jamesdaniels thanks for you work. Have you estimate for write in instruction?
Thanks
from functions-samples.
@jamesdaniels Hi Sir,
Do you already did web front end with Stripe ? Thanks
from functions-samples.
Related Issues (20)
- [BUG] in sample:
- [BUG] in sample:
- LGTM
- [DOCS] Example app in readme.md does not work HOT 1
- [DOCS] for sample: taskqueues-backup-images, not clear how to set up "impersonation" permission HOT 2
- [BUG] in sample: alert
- DisplayUnlockCaptcha
- [BUG] in sample:
- [DOCS] for sample: taskqueues-backup-images, it simply doesn't work with tasks_fn.on_task_dispatched function, only with http_fn.on_request function HOT 5
- onTaskDispatched when region is set the function don't deploy to the region in sample:
- [BUG] Some phone numbers do not receive OTP SMS messages with Firebase phone auth: HOT 5
- Problems with sending push notifications
- functions predeploy error: Command terminated with non-zero exit code 2 HOT 1
- functions predeploy error: Command terminated with non-zero exit code 2 HOT 1
- [DOCS] for sample: python callable functions
- How is this still a problem 2 years later? I am running into this now.
- [BUG] in sample: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/v2/providers/scheduler' is not defined HOT 1
- [BUG] in sample:
- [DOCS] for sample: auth-blocking-functions | Cannot extract event_type HOT 1
- [DOCS] for sample: monitor-cloud-logging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from functions-samples.