问题标签 [applepay]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
1092 浏览

ios - 如何在 iOS App 中集成 PayPal/Apple Pay 支付模块?

我正在研究如何在 iOS 应用程序中集成 PayPal/Apple Pay 支付模块。

例如,在我的应用程序中,我想集成 PayPal/Apple pay for payment,那我该怎么办?流程是什么。

如果任何人都可以指导如何做到这一点。请建议我的步骤。然后也欢迎任何参考链接。

0 投票
0 回答
210 浏览

php - 如何在服务器端识别苹果耗材购买(PHP)

我的服务器上有简单的 API 门,在那里我从 iOS 客户端应用程序接收有关 inApps 的信息。

我验证了来自 APNC 的收据并尝试检测已购买的产品。但我不明白如何做到这一点..

我收到这样的东西:

以及如何检测用户购买了哪些产品的问题?

0 投票
1 回答
678 浏览

ios - Apple Pay 忠诚度 NFC API

我已经看到 Walgreens 和其他商家已与 Apple Pay 的忠诚度计划集成。是否有我们可以访问的忠诚度 API,或者他们是否与 Apple 合作以通过 NFC 实现这一点?我读过它正在使用 Wallet API,但我看不到 API 中忠诚度方面的位置。

http://techcrunch.com/2015/11/05/walgreens-becomes-first-retailer-to-integrate-its-loyalty-program-with-apple-pay/

谢谢

0 投票
2 回答
3536 浏览

ios - How to verify ios device supports Apple Pay

I'm starting an Apple Pay integration project and have been able to wire up a transaction on the device, and use Stripe to authorize the payment. The part I'm actually struggling with is the proper way for the device to test whether Apple Pay is supported? Thus, for older Iphone models I would choose to hide the Apple Pay features, even if they have ios8 or ios9 installed.

I can probably check for the device model, and ignore Apply Pay for < Iphone5S. However this gets complicated if I also need to start testing IPad versions, etc.

I was wondering if there is a single method somehow to test if ApplePay is supported?

I found this method online as one idea, however it claimed apple pay was supported in the Iphone5 simulator, which I imagine is not entirely true. I do not have an Iphone5 actual device to test with unfortunately.

EDIT/SOLUTION:

I now use this line and it is verified to work for Iphone5 (not supported) vs Iphone6 (supported); and I presume other devices. I'm not entirely sure it always works in Simulator but ApplePay is a little odd in there anyway and testing is best done on device.

0 投票
1 回答
3379 浏览

ios - Apple Pay 检测 Wallet 没有信用卡

我正在尝试为我的应用实施 Apple Pay。我有 PKPaymentAuthorizationViewController 试图加载 Apple Pay 视图。如果我的钱包中没有任何卡,则构造函数将这个视图控制器返回为 Nil。所以,我决定引导用户完成他们输入卡片信息的过程。我能够使用

这是我初始化 PKPaymentAuthorizationViewController 的部分。这会在模拟器上返回一个有效的对象来显示视图。但是在没有配置信用卡的真实设备上返回 nil 并运行时异常。下面是初始化代码:

这里的数组是 PKPaymentSummaryItem 的有效 NSArray,这就是为什么在模拟器上成功工作的原因。

每次我看到钱包里没有信用卡的用户时,我都需要调用上面的 openPaymentSetup 方法。有没有办法检测到呢?

目前我正在使用

但这不起作用,因为我正在查看钱包中的通行证计数。这可能像航空公司的登机牌,或 eventbrite 通行证等。

看着: PKPaymentAuthorizationViewController 呈现为 nil 视图控制器

Apple pay PKPaymentauthorizationViewController 在加载支付请求时总是返回 nil

https://developer.apple.com/library/ios/documentation/PassKit/Reference/PKPaymentAuthorizationViewController_Ref/

0 投票
1 回答
1545 浏览

ios - 无法关闭 PKPaymentAuthorizationViewController

我正在为我的应用程序实施 Apple Pay。虽然我已经大致弄清楚了一切,但我无法关闭进行身份验证的 PKPaymentAuthorizationViewController。这是我的代码..

调用上述函数并成功呈现 Apple Pay View Controller 以验证付款。我已经从委托中实现了以下方法,如下所示:

理想情况下,它首先点击didAuthorizePayment,我们在这里验证支付,如果成功则通过成功,然后调用paymentAuthorizationViewControllerDidFinish,用于完成交易并隐藏Apple View Controller。我在其中设置了断点,它同时触发了这两个函数,但 ViewController 并没有消失。即使您点击 Apple Pay View 中的“取消”按钮,它也不会消失。

我的类声明如下,并且确实实现了所需的委托。

关于我做错了什么的任何想法?为什么视图控制器不关闭?

最后,我对 iOS 有点陌生。所以我很感激指南和/或链接来澄清我的疑问!

已经看过了: http ://www.raywenderlich.com/87300/apple-pay-tutorial https://dzone.com/articles/integrating-your-ios-app-apple

0 投票
1 回答
312 浏览

ios - Apple Pay 不会显示预填信息

在尝试在 iOS 应用程序中设置 Apple Pay 时,我们遇到了 API 和预填充信息的问题。我们的用户流程允许用户在使用 Apple Pay 付款之前手动设置他们的地址、电子邮件和电话,因此如果他们决定这样做,我们希望确保用他们的输入填写 Apple Pay 提示。

根据开发指南,这应该像在 request.shippingContact 中设置这些值一样简单。但是,当我们这样做时,这些值将被忽略。

有什么文档没有告诉我们的吗?

苹果支付示例

0 投票
4 回答
17339 浏览

xcode - 我们可以在模拟器中测试 Apple Pay

我知道 Apple 支付测试我们在 iOS 8 中使用 Apple 支付存根,但请让我知道如何在模拟器中的 iOS 9 中使用没有 ApplePayStubs 的 Apple Pay。

提前致谢

0 投票
2 回答
233 浏览

ios - Shopify iOS Mobile 购买 shipping_rate_id “不能为空”

我一直在尝试使用 BUYProductViewController 中的 Shopify 移动购买 SDK 使用 Apply Pay,但每次它返回“付款未完成”。

我已将其缩小到BUYApplePayHelpers.m中的第 107 行,在此方法之前的每一点,我的结帐对象都有一个 shippingRateId,而在它之后的任何地方,shippingRateId 都是 nil。

错误如下:

任何想法这里可能出了什么问题?

0 投票
1 回答
261 浏览

ios - How to test apple pay functionality for in-app purchases?

I am developing an iOS app with Apple Pay payment facility. I wanna test it. But for the same it is asking to enter a valid card details in wallet. Now I am having doubt while testing the same if it deducts any amount from my card then it would me lossy for me. Can someone guide me for how to test the same?

Suggestions are always welcome. Thank you in advance.