Create Token With Apple Pay Without Payment

前端 未结 1 657
执念已碎
执念已碎 2021-01-18 02:24

I have two questions:

  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 inf

1条回答
  •  野的像风
    2021-01-18 03:02

    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.

    0 讨论(0)
提交回复
热议问题