I have two questions:
Is there a way to create a STPToken using Apple Pay without payment? In my iOS application, the client either enters their billing information or decides to use Apple Pay when registering. When a customer decides to make a purchase (some time in the future after registration), their card will be automatically charged. There is a method that I can call to check whether it is possible to make a payment request, but it seems to me that I should actually execute the payment and charge the card in order to receive the token. Please note that I can create a customer and save the card without charging a customer if the customer enters payment information manually. This problem only occurs if the customer decides to use Apple Pay.
For testing purposes, when I use a payment to create a token and charge a client during the registration process, I noticed that the dynamic_last4 fields and expiration dates do not match the actual card. I checked this not only in my program, but also when I went to the Stripe website and checked the client record. Although these fields do not match the real map, I can really charge the map correctly. Are these fields masked in some way by Stripe or Apple?
source share- You need to call the Apple Pay payment process in order to receive the token created by Apple. Although, strictly speaking, you do not need to process the payment in order to receive a token, what would you do with it otherwise? Store it? They are not reusable, and you do not receive card data to otherwise store a pair of customers / cards from it for the future generation of tokens. If you are not already familiar with this, I highly recommend that you consider the Apple Identity Identity Guidelines: https://developer.apple.com/apple-pay/Apple-Pay-Identity-Guidelines.pdf with regard to providing your customers with several payment options. including Apple Pay.
- Yes, with Apple Pay, the last4 / exp values ββare disassociated from the actual card for security purposes.
source shareSource: https://habr.com/ru/post/983246/
All Articles