#ryancwalsh
1 messages · Page 1 of 1 (latest)
Unfortunately it does sound like you should not save these payment methods. Apple's guidelines to allow for recurring payments with variablitiy in the cycle/amount (such as a weekly grocery delivery service) but this sounds like it is outside of that. Unfortunately I'm not immediately aware of the consequences as they would be enforced by Apple but I think we should explore the single-use token route here. Finding docs on that...
https://developer.apple.com/design/human-interface-guidelines/apple-pay#Supporting-subscriptions
https://developer.apple.com/apple-pay/planning/
Ok, thanks. Can we please leave this thread open for a bit?
I'm finishing up a meeting and then will read these docs and then probably will have followup questions for you.
E.g. Those are Apple docs instead of Stripe docs so I wonder if it will be clear enough how to do this all within our Stripe code / setup.
Of course, definitely finding Stripe docs for what to do in your code, those were more for your reference on what the policy is
Apologies still looking, we have other docs on tokens like this but they don't use the same terminology so I'm not 100% sure if they are the same thing. Will have a doc here shortly
Ah I clarified with my colleagues. That language seems to be left over from a legacy integration path where there was a literal Token object. So as long as you aren't saving and re-using the PaymentMethod you are following that guideline
Cool, so how could we detect that Apple Pay was used (so that we know not to save that card to the customer)?
Looking in to this, there should be a property on the PaymentMethod object itself.
Thanks. Yeah I've been looking at node_modules/@stripe/stripe-js/types/api/payment-methods.d.ts and couldn't figure out what to do .
There is a wallet property on the card property of the PaymentMethod that should have this info https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-wallet
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok, thanks. I think this is what I needed. I'll try this out.
It's super disappointing that Apple has this policy, but I understand that that's not up to you!
Thanks for your help.