简体   繁体   English

是否可以将Stripe与Firebase和iOS集成?

[英]Is it possible to integrate Stripe With Firebase and with iOS?

I've been querying on Google on how to do this - iOS to Stripe. 我一直在谷歌上询问如何做到这一点 - 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. 我有一个使用在线数据库的项目,我一直在做它(它几乎已经完成)所以我使用了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. 我很幸运能找到这个BaaS并且时间过去了,我只需要将支付功能集成到这个iOS应用程序中,我就完成了。 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. 我不是一个Web开发人员/后端开发人员,我只专注于iOS开发,所以问题是我无法开始实现付款功能。

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. 我没有考虑使用Braintree,因为我知道它需要一台服务器,所以我选择了Stripe,因为它更简单,我也不知道它还需要一台服务器。

Here's what I did so far in my research: 这是我迄今为止在研究中所做的事情:

  1. 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. 在Raywenderlich.com上找到了一个教程 - 使用Python来剥离iOS,但它没有教授如何设置服务器和编写python本身。

  2. I found this StripeFire Node.js library on GitHub - but its last commit was 2 years ago, so I believe it's dead? 我在GitHub上找到了这个StripeFire Node.js库 - 但它的最后一次提交是在2年前,所以我相信它已经死了?

  3. 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. 我读到了使用herokuapps来托管这个项目的后端内容,所以我开始在该网站上注册,到目前为止我无法使用它,因为我还在搞清楚从iOS连接条纹的整个过程。

  4. 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. 我读到关于整合FIREBASE + Stripe的Zapier,它不是免费的,但即使我不知道如何在iOS上使用它,我仍然在考虑它。

  5. 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. 最后,到目前为止,这是我找到的最好的教程 - APP CODE Tutorial - iOS to Web Server和To Stripe ---这是我最后的希望,但是在我继续之前我先发布了这个问题,因为我使用的是Firebase,我想到了可能是将Firebase连接到Sripe的简单方法,本教程不使用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? 这个教程是真的可以理解,并且它在服务器端使用PHP,我在某种程度上具有部署PHP文件以在网络上免费托管服务器的知识----你认为这种方式是否可以?

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. 所以...这个问题的主要目的是让我知道一个对服务器端东西不太了解的iOS人的最好的方法和简单的方法(我只知道一些托管网站上的PHP和托管文件)如何将付款功能添加到我的应用中,同时付款/订单的记录将保存到Firebase。

Thanks. 谢谢。

You can implement entirely in Firebase without a server now that Cloud Functions for Firebase has launched. 现在, Firebase for Cloudbase已启动,您可以在没有服务器的情况下完全在Firebase中实施。 There's a Stripe example up on Github. 在Github上有一个Stripe示例。

I had the same question. 我有同样的问题。 Looked for solutions in every forum. 在每个论坛中寻找解决方案。 I started a post in Reddit and got a solution. 我在Reddit开了一个帖子,得到了一个解决方案。 I haven't implemented it. 我没有实现它。

firebase -> auth0 -> webtask -> stripe is one way to implement a true serverless firebase - > auth0 - > webtask - > stripe是实现真正无服务器的一种方法

Reddit post of true serverless payment implementation 真正无服务器支付实施的Reddit帖子

Also, @user5156051, I have a question on how did you implement PayPal serverless solution. 另外,@ user5156051,我有一个关于如何实现PayPal无服务器解决方案的问题。 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. 当我向PayPal工程师检查时,他们提到你需要让你的后端来执行付款。

Email conversation with PayPal engineer 与PayPal工程师进行电子邮件对话

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. 我们正在创建一个适用于firebase的iOS应用程序,我们制作应用程序和云功能(Firebase功能/ Google云功能)打开工具。 IamGoogBad IamGoogBad

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM