#ryancwalsh

1 messages · Page 1 of 1 (latest)

rapid baneBOT
signal lichen
#

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/

hoary snow
#

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.

signal lichen
#

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

hoary snow
#

Cool, so how could we detect that Apple Pay was used (so that we know not to save that card to the customer)?

signal lichen
#

Looking in to this, there should be a property on the PaymentMethod object itself.

hoary snow
#

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 .

signal lichen
hoary snow
#

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.