在 iOS swift 中使用 Apple Pay

Working of Apple Pay in iOS swift

我已根据 Apple 提供的文档在我的应用程序中集成了 Apple Pay 所需的代码。 但是,作为一个初学者,我有一个疑问。

我们没有使用任何第三方支付处理器,如 PayPal、Stripe 等。 是否必须使用第三方处理器?我们可以只使用代码和 passbook/wallet 进行交易吗?

注意:商户ID、支付凭证在开发者账户中创建。

基于 Apple documentation 推荐使用支付提供商,但不是强制性的。

Using one of these SDKs or hosted solutions is highly recommended

关于开发自己的支付流程...

The alternative is to provide your own server-side solution to receive payments from your app or website, decrypt payment tokens and interface with the payment provider to process the authorization. Handling credit and debit card payments can be complicated and unless you already have the expertise and systems in place, an Apple Pay SDK or JS API from a payment provider is the quickest and most reliable way to support Apple Pay in your app or website.

在我看来,使用支付提供商比开发自己的更好。您正在处理金钱、信用卡号码...