I've been querying on Google on how to do this - iOS to Stripe. I got a project that uses an online database and I've been doing it solo (it's almost done) so I used Firebase. I was so lucky to find this BaaS and time passed, I only need to integrate a payment feature to this iOS app and I am done. I am not a web developer/backend dev and I only focus on iOS development, so the problem is that I can't start implementing a payment feature.
I didn't consider using Braintree, for I know that it requires a server, so I chose Stripe since it's much simpler, and little did I know that it also requires a server.
Here's what I did so far in my research:
I found a tutorial on Raywenderlich.com - iOS to Strip using Python, but it doesn't teach how to setup the server and coding python itself.
I found this StripeFire Node.js library on GitHub - but its last commit was 2 years ago, so I believe it's dead?
I read about using herokuapps to host my backend stuff for this project, so I began signing up on that site, and so far I can't use it because I'm still figuring out the whole process of hooking up to stripe from iOS.
I read about the Zapier to integrate FIREBASE + Stripe, it's not free, but I'm still considering it even though I got no idea yet how to use it for iOS.
Lastly, this is by far, the best tutorial I found - APP CODE Tutorial - iOS to Web Server and To Stripe --- this is my last hope but I posted this question first before I proceed because I am using Firebase and I thought there might be easy ways to hookup Firebase to Sripe, and this tutorial doesn't use Firebase. This tutorial is really understandable and it's using PHP for the server side, I somehow have the knowledge in deploying PHP files to free hosting servers on the web ---- Do you think this way is okay?
So... the main purpose of this question is for me to know the best way and easy way for an iOS person who doesn't know much about server side stuff (I only know PHP and hosting files on some hosting sites) how to put a payment functionality to my app and at the same time the record of the payment/orders will be saved to Firebase.
Thanks.
You can implement entirely in Firebase without a server now that Cloud Functions for Firebase has launched. There's a Stripe example up on Github.
I had the same question. Looked for solutions in every forum. I started a post in Reddit and got a solution. I haven't implemented it.
firebase -> auth0 -> webtask -> stripe is one way to implement a true serverless
Reddit post of true serverless payment implementation
Also, @user5156051, I have a question on how did you implement PayPal serverless solution. I couldn't find the way. When I checked with the PayPal engineer's they mentioned you need to have your backend to perform the payment.
You can take a look at this organization. We are creating an iOS app that works on firebase and we make the app and the cloud functions (Firebase Functions/Google Cloud Functions) open tool. IamGoogBad
来源:https://stackoverflow.com/questions/38386361/is-it-possible-to-integrate-stripe-with-firebase-and-with-ios