问题标签 [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 投票
0 回答
501 浏览

encryption - 使用 ApplePay 的 OpenSSL 上的额外字节和 EVP_DecryptFinal_ex 错误

我正在尝试使用 OpenSSL 解密 ApplePay 返回的 PaymentToken。解密有效,但我看到明文附加了额外的 16 个字节,并且在 EVP_DecryptFinal_ex 期间出现错误。我的第一个想法是我需要关闭填充,但这似乎不是问题。任何帮助表示赞赏!

苹果的文档说:

使用对称密钥使用 AES–256 (id-aes256-GCM 2.16.840.1.101.3.4.1.46) 解密数据密钥的值,初始化向量为 16 个空字节且没有关联的身份验证数据。

Apple 提供的 java 示例使用 BouncyCastle 并使用“AES/GCM/NoPadding”初始化 Cipher

我的代码如下所示:

输出看起来像这样(为安全起见更改了明文):

0 投票
2 回答
1415 浏览

ios - Apple 支付与 Stripe 的集成(调试中的 STPTestPaymentAuthorizationViewController)

我正在尝试将 Apple Pay 与 Stripe 集成到我的 iOS 应用程序中。使用 ApplePayStub 提供的条纹在 DEBUG 模式下检查苹果支付

我正在使用来自 git 的最新条带ApplePayStub代码

尝试在iPhone 6 模拟器上运行,我使用的代码是:

得到错误:

任何帮助是极大的赞赏。

0 投票
1 回答
400 浏览

ios - PassKit 不可预知的崩溃

我们在应用程序日志中遇到了一个奇怪的崩溃:PKPaymentAuthorizationControllerExportedObject authorizationDidFinishWithError 有没有人遇到过这个问题,或者有什么有用的提示?似乎这次崩溃是在付款后一段时间

值得注意的是,我们没有直接集成 Apple Pay,我们使用 Braintree 框架为我们完成这项工作。

0 投票
1 回答
1480 浏览

java - Apple Pay. Workflow

I don't clearly understand - how Apple Pay works in case of online checkout via online store.

From my understanding: Prerequisites: 1) Card which will be used for payment should be added to Passbook. 2) During adding this card to passbook Apple device sends request with PAN to issuer and if verification is passed - format unique token, which is stored in AppleSecurity element.

When customer try to make purchase online via online store: 1) customer should switch the card, which will be used for payment 2) Store formats the request with total amount, shipping address and token, which is stored on Security element 3) Apple device sends request to AppleServer for payment authorization 4) After this store can executes additional logic (whatever)

Feel free to correct me if I'm wrong.

But my question is - if existing system already uses tokenization service, payment gateway and payment processor - how it can be integrated with Apple Pay?

0 投票
2 回答
862 浏览

ios - PKPaymentRequest 不强制要求账单地址的电话要求

我们正在创建 aPKPaymentRequest并将requiredBillingAddressFields属性设置为PKAddressFieldPostalAddress | PKAddressFieldPhone。系统强制执行地址要求,但忽略电话要求。(在这种情况下强制意味着,在用户填写字段之前,不允许 Apple Pay 交易继续进行。)

我们的应用程序不需要送货地址,但在调试时我们将requiredShippingAddressFields属性设置为PKAddressFieldPostalAddress | PKAddressFieldPhone并发现现在强制执行电话号码要求。

PKPaymentRequestor文档中没有任何PKAddressField内容表明这是预期的行为。关于如何解决这个问题的任何想法?

编辑 - 这是完整的方法:

0 投票
0 回答
538 浏览

ios - Using Apple Pay and Stripe in Apple Testflight

I'm creating an iOS app where I'm using Stripe and Apple Pay and I would like to have the full functionality of Stripe and Apple Pay when I test on external users using Apple's Testflight.

I'm not sure if there are any restrictions in relation to having live transfer in a Testflight app though? Can anyone clarify this for me?

0 投票
0 回答
373 浏览

ios - 如何使用 Braintree 实现 Apple Pay?

我在这里得到:

canCreatePaymentMethodWithProviderType:BTPaymentProviderTypeApplePay false。

我需要如何以及在哪里展示PKPaymentAuthorizationViewController

0 投票
2 回答
661 浏览

ios - 对于 ApplePay paymentAuthorizationViewController 委托创建 nil PKSummaryItem

关于这个问题,感谢您缩小范围。但遗憾的是我必须配置这个委托

为了向用户展示产品摘要的真正含义。可悲的是,我将PKPaymentSummaryItem *foodItem设为 nil,因此处理从未得到修复。请帮忙!先感谢您。

0 投票
4 回答
4431 浏览

ios - Stripe 和 Apple Pay 在 iOS 应用程序中不起作用

我很沮丧,因为我花了很长时间来解决这个问题。我正在使用以下代码创建一个请求:

当代码运行时,它开始很好,因为 Apple Pay 视图会弹出指纹,但是,当指纹被确认时,它会盘旋一会儿,然后弹出一个警报并说:

'Apple Pay 在“AppName”中不可用'

检查此应用程序的设置,并确保其设计为使用 Apple Pay。

任何想法将不胜感激。

0 投票
2 回答
5745 浏览

applepay - Apple Pay 在“APP”中不可用

提前致谢

我在我的应用程序中使用 Apple Pay,我在 Apple 中注册了新的商家 ID 和来自支付网关的证书。

通过使用此商家 ID,付款摘要表正在打开,但是当我选择付款时收到如下错误消息

Apple Pay 在“APP”中不可用 - 检查此应用中的设置并确保其设计为使用 Apple Pay。

可能是什么问题,以及使用 Apple 和支付网关激活商家 ID 需要多长时间。