iOS - 集成信用卡付款

发布于 2024-12-25 05:04:39 字数 92 浏览 2 评论 0原文

我知道我们可以将应用内购买与 storekit 集成。但我想使用信用卡整合付款。苹果会允许集成这样的库吗?是否有任何此类库可供用户使用信用卡在我的应用程序中支付产品费用?

I'm aware that we can integrate in-app purchases with storekit. but i want to integrate payments using credit card. will apple allow to integrate such libraries? Are there any such libraries available where users can use their credit card for payment of products with in my app?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

风吹雪碎 2025-01-01 05:04:39

根据用户购买的内容*,您应该可以在应用程序中接受付款。我建议使用可以减轻工作负担的支付 API,而不是尝试将某种类型的支付库合并到应用程序中。请查看 http://stripe.com/,了解专为轻松集成而设计的出色支付系统示例。他们的 API 参考甚至提到与 iPhone 应用程序的集成

*如果您试图销售应用程序本身的功能或服务,您几乎肯定会违反苹果的指导方针,但基于您所说的“产品”这一事实,我认为情况并非如此。事实上,虽然您必须使用应用程序内购买系统来购买“应用程序中的内容、功能或服务”,但您被明确禁止将其用于“应用程序外部使用的实体商品或商品和服务”(《应用程序中的内容、功能或服务》第 11.3 条)。 Apple 的应用程序商店审查指南)。

Depending on what users are purchasing*, you should be just fine accepting payments in your app. Instead of trying to incorporate some type of payment library into the app I would recommend using a payment API that offloads the work. Take a look at http://stripe.com/ for an example of an excellent payment system designed for ease of integration. Their API reference even mentions integration with iPhone apps.

*If you are trying to sell features or services of the app itself you will almost definitely be running afoul of Apple's guidelines, but based on the fact that you said "products" I am assuming this is not the case. In fact, while you must use the in-app purchase system for "content, functionality, or services in an app" you are specifically forbidden from using it for "physical goods or goods and services used outside of the application" (item 11.3 of Apple's App Store Review Guidelines).

三生一梦 2025-01-01 05:04:39

Apple 不允许不允许针对上述未在手机中消费的商品(数字内容)使用 Apple 的 IAP 应用内付款。
请参阅以下已批准应用程序的示例,该应用程序使用外部库在其应用程序中接受信用卡:
iStash

在我看来Stripe 是一个很好的解决方案,但不是应用内的理想解决方案,因为它是一个基于 Web 的解决方案,并且专注于 Web 体验。

如果您想要真正的移动应用内体验,我建议您查看 PayPal 库或我的公司 ZooZ,它接受 PayPal和信用卡合二为一。

Apple does allow not Apple's IAP in-app payments for goods not consumed in the phone (Digital content) as stated above.
See this example of an approved app that use external library for accepting credit cards in their app:
iStash

In my opinion Stripe is good solution but not the ideal for in-app as it is a web based solution and focuses on web experience.

If you want a true mobile in-app experience I suggest you check out PayPal library or my company, ZooZ, which accepts both PayPal and Credit Cards in one integration.

深居我梦 2025-01-01 05:04:39

工作项目可以在 此处 github stripe 示例中找到。

working project can be find here on github stripe example.

黄昏下泛黄的笔记 2025-01-01 05:04:39

作为一名 iOS 开发者,您最好仔细阅读本文。与您特别相关的是第 11.2 节:

11.2 使用应用内购买 API (IAP) 以外的系统购买应用中的内容、功能或服务的应用将被拒绝

他们想要利润,如果您使用应用内购买 API。希望能解决任何问题。

编辑:根据您问题的措辞,我假设付款将解锁应用程序中暂时的某些内容。 IAP 仅适用于购买数字产品。 如果您所销售的产品在物理上是可行的,那么您不应该,而且事实上也不允许使用 IAP API。在这种情况下,类似于 Stripe 或基于网络的版本 Paypal 的 API 可以使用。

As an iOS dev you'd best have a good read through this. Specifically pertinent to you is section 11.2:

11.2 Apps utilizing a system other than the In App Purchase API (IAP) to purchase content, functionality, or services in an app will be rejected

They want the profit, and they get their cut if you use the IAP API. Hope that clears up any issues.

EDIT: I am assuming based on the wording of your question that the payment will unlock something transitory in the app. IAP are only appropriate when purchasing something digital. If what you are selling is physically tenable, then you shouldn't, and in fact are not allowed, to use the IAP API. In that case, something along the lines of Stripe or a web-based version of Paypal's API would work.

哭泣的笑容 2025-01-01 05:04:39

为了支持 David 的 答案,我想添加这一点,使用通过您的应用程序接受产品/捐赠付款的支付 API 将是理想的选择。

Apple Pay 现已(截至今天)在 iPhone 6 和 6 Plus 上可用,并且仅在美国可用。

但如果您仍想在应用中添加对无法使用 Apple Pay 的设备的支持,Authorize.Net 现在有一个 iOS SDK,您可以使用它来集成和启用信用卡支付。

In support of David's answer, I would like to add that, using a payment API to accept payments for products/donation through your app would be ideal.

Apple Pay is now available (as of today) on iPhone 6 and 6 Plus, and active only in US.

But if you still want to add support in your app for devices that cannot use Apple Pay, Authorize.Net now has an iOS SDK which you can use to integrate and enable credit card payments.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文