Giter VIP home page Giter VIP logo

Comments (12)

MarkHoath avatar MarkHoath commented on July 4, 2024

charges is double quotes, you probably have an error in your firebase reference

from functions-samples.

fxo140130 avatar fxo140130 commented on July 4, 2024

@MarkHoath

This is the code I got from the repository.

image

Do you think, there is a mistake in it ?

from functions-samples.

nicolasgarnier avatar nicolasgarnier commented on July 4, 2024

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.

fxo140130 avatar fxo140130 commented on July 4, 2024

@nicolasgarnier ,

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.

nicolasgarnier avatar nicolasgarnier commented on July 4, 2024

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.

fxo140130 avatar fxo140130 commented on July 4, 2024

Thanks @nicolasgarnier . You are the best.

from functions-samples.

jamesdaniels avatar jamesdaniels commented on July 4, 2024

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.

fxo140130 avatar fxo140130 commented on July 4, 2024

@jamesdaniels

The front end for the Stripe example is located in the index.js file ?

from functions-samples.

jamesdaniels avatar jamesdaniels commented on July 4, 2024

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.

fxo140130 avatar fxo140130 commented on July 4, 2024

@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.

iThinkersTeam avatar iThinkersTeam commented on July 4, 2024

Hello,

@jamesdaniels thanks for you work. Have you estimate for write in instruction?

Thanks

from functions-samples.

fxo140130 avatar fxo140130 commented on July 4, 2024

@jamesdaniels Hi Sir,
Do you already did web front end with Stripe ? Thanks

from functions-samples.

Related Issues (20)

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.