使用Apple Pay无需付款即可创建令牌 [英] Create Token With Apple Pay Without Payment

查看:164
本文介绍了使用Apple Pay无需付款即可创建令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个问题:


  1. 有没有办法在没有付款的情况下使用Apple Pay创建STPToken?在我的iOS应用程序中,客户输入他们的付款信息或决定在注册时使用Apple Pay。当客户决定进行购买(在注册后的某个时间),他们的卡将自动收费。有一种方法我可以打电话来检查是否可以进行付款请求,但似乎我必须实际运行付款并为卡取费才能获得令牌。请注意,如果客户手动输入付款信息,我可以创建客户并保存卡而无需向客户收费。如果客户决定使用Apple Pay,则只会出现此问题。

  1. Is there a way to create an STPToken using Apple Pay without a payment? In my iOS app, the customer either enters in their payment info or decides to use Apple Pay when registering. When the customer decides to make a purchase (some time in the future after signing up), their card will be automatically charged. There is a method that I can call to check if the payment request can be made, but it seems that I have to actually run the payment and charge the card in order to get the token. Note that I can create a customer and saving a card without charging the customer if the customer enters in the payment info manually. This issue only comes about if the customer decides to use Apple Pay.

出于测试目的,当我使用付款创建令牌并向客户收取费用时在注册过程中卡,我注意到dynamic_last4和到期日期字段与实际卡不匹配。我不仅在我的程序中验证了这一点,而且在我登录Stripe的网站并检查客户的记录时也验证了这一点。虽然这些字段与实际卡不匹配,但我确实可以正确地为卡充电。这些字段是否会被Stripe或Apple以某种方式掩盖?

For testing purposes, when I do use the payment to create the token and charge the customer's card during the sign up process, I've noticed that the dynamic_last4 and expiration date fields do not match the actual card. I have verified this not just in my program, but also when I log into Stripe's website and check the customer's record. Although these fields do not match the actual card, I can indeed charge the card correctly. Are these fields being masked in some way by Stripe or Apple on purpose?


推荐答案


  1. 您需要调用Apple Pay付款流程才能获得Apple生成的令牌。严格来说,你实际上不需要处理付款以获得令牌,否则你会用它做什么呢?存放吗?它们不可重复使用,您无法获取卡详细信息,否则将存储客户/卡对,以便将来生成令牌。如果您还不熟悉它,我强烈建议您查看Apple Pay Identity Guidelines文档: https://developer.apple.com/apple-pay/Apple-Pay-Identity-Guidelines.pdf ,为您的客户提供多种付款方式,包括Apple Pay。

  2. 是的,对于Apple Pay,出于安全目的,last4 / exp值与实际卡取消关联。

  1. You need to invoke the Apple Pay payment process in order to get the Apple-generated token. While strictly speaking you don't actually have to process the payment to get the token, what would you do with it otherwise? Store it? They're not re-usable and you don't get the card details to otherwise store a customer/card pair from it for future token generation. If you're not already familiar with it, I would strongly recommend reviewing the Apple Pay Identity Guidelines doc: https://developer.apple.com/apple-pay/Apple-Pay-Identity-Guidelines.pdf with respect to offering your customers multiple payment options including Apple Pay.
  2. Yes, with Apple Pay the last4/exp values are disassociated from the actual card for security purposes.

这篇关于使用Apple Pay无需付款即可创建令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆