ios - 如何从苹果支付中提取账单地址

标签 ios swift applepay

我正在尝试实现 ApplePay,但我的服务器 api 要求我发送账单地址。有没有办法提取我在 apple pay 屏幕出现时输入的账单地址?任何帮助,将不胜感激。

最佳答案

这是 PKPayment 中的一个属性.来自 Apple developer site 的引用.

To initiate a payment, your app creates a payment request. This request includes the subtotal for the services and goods purchased, as well as any additional charges for tax, shipping, or discounts. Pass this request to a payment authorization view controller, which displays the request to the user and prompts for any needed information, such as a shipping or billing address.

我可以推荐您阅读上面的这两个链接。

关于ios - 如何从苹果支付中提取账单地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34323665/

相关文章:

ios - 解析无效 session token 错误1.8.2

ios - 保持 ScrollView 外的区域也可滚动

javascript - 表格上的水平滚动在 iOS Safari 上不起作用

swift - 如何在 ios-charts 的水平条形图中设置静态条宽?

ios - Apple Pay/Stripe 集成问题

ios - Apple Pay "Payment not completed"- 无法获取 token

ios - 制作新项目时苹果男子气概链接器错误

swift - 最初仅针对 iPad 设置后,无法让图标资源注册显示在 iPhone 上

ios - 项目在 Xcode 9.0.1 上运行正常,但在 Xcode 9.2 上显示错误

ios - 使用 Swift 中的地址预先填充 ApplePay