Firebase payment gateways?

15,266

Firebase is a real-time data store, focused on lightning-fast, scalable solutions for sharing data between hundreds to millions of clients simultaneously. It does not offer any payment processing solutions internally.

A third party service like Stripe will integrate quite easily with Firebase, and tools like Zapier can help with pushing data from Stripe back into Firebase upon completion of transactions.

Generally, the process looks something like this:

  1. User initiates transaction on your site
  2. Client code sends them to Stripe to enter their CC info
  3. Client code obtains a token representing the secure transaction
  4. A server process is notified by stripe when the transaction is validated
  5. The sever submits the payment authorization with the token
  6. Stripe sends a transaction receipt to the server process or Zapier, which would be stored back in Firebase

An advantage of this approach is that your are not storing any credit card or sensitive data and therefore are not subject to PCI compliance and stringent bank/e-commerce regulations.

Share:
15,266

Related videos on Youtube

user3500802
Author by

user3500802

Updated on June 01, 2022

Comments

  • user3500802
    user3500802 about 2 years

    I'm currently evaluating whether Firebase will be suitable for an app I am making. The only potential sticking point I have found is taking payments - what are the options currently available?

  • windchime
    windchime over 9 years
    In 4) you mentioned a server process is notified by stripe when the transaction is validated. Where does the server process run?
  • Kato
    Kato over 9 years
    This is your purview. Suggestions in my personal order of preference: Google Compute, Heroku, Amazon S3, Nodejitsu. Generally I just fire up a node.js script for speed and convenience, and utilize a queue strategy
  • Nikhil
    Nikhil about 8 years
    @Kato I came across a major drawback while using Stripe.js for my payments in mobile app. Stripe.js has to be loaded via CDN and is essential for bootstraping an angular based mobile app like ionic. If the network connectivity breaks or is slow the app freezes during the launch. Braintree is a much better option if used with a queue strategy
  • Jacob Phillips
    Jacob Phillips almost 8 years
    Stripe requires using a secret key associated with your account and Braintree requires generating a token server-side (using a private key) for transactions. As far as I can tell there is no way to achieve this without a setting up a server for that purpose. I am also talking about user to user transactions (Stripe connect or Braintree marketplace). I believe people giving you money can be done but I'm not sure.
  • NaturalDevCR
    NaturalDevCR almost 4 years
    There is now an option called firestripe... check the link firebase.google.com/docs/use-cases/payments?hl=es