Can I use Apple Pay to create a Stripe Token without charging the user?
I'm making an app where I need to collect user credit card info at some point so I can charge them later. Right now I use stripe and their PTKView to collect credit card info and store it. Then later on when the user wants to pay I'm ready to go and they don't have to do anything else. I would like to add the option for a user to import a card from Apple Pay that I could then use later on. However, it seems to me that when using Apple Pay I have to charge the user right then. I am curious if anyone knows a solution for this problem or if I just have to create a "Pay with Apple Pay" option on the last screen before the user pays. This would not be preferable but currently it looks to be my only choice.
I saw this post, which is unfortunately unanswered. However, question #1 is exactly what I am asking. Any help would be greatly appreciated.
You need to create an Apple Pay payment option that is equivalent to your in-house payment option wherever the user decides how the transaction will be processed. Do note though that creating the token and processing the payment are separated operations, though it's unlikely you'll do one without the other in normal circumstances.
This is true not just for the code but for compliance with Apple's Apple Pay Identity Guidelines: https://developer.apple.com/apple-pay/Apple-Pay-Identity-Guidelines.pdf -- Read the whole thing, but see p11 particularly (in the Dec-2014 version anyway, the discussion of the Apple Pay Payment Mark).
链接地址: http://www.djcxy.com/p/84010.html