#siv_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1374172598568484894
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! just want to acknowledge the question - i'm working on some other threads but i will get to you ASAP
ok.... i think the answer here is a pretty straightforward yes because i know apple pay is supported for setup intents using web elements... i can't think of a reason it wouldn't work for the payment sheet too but let me double check for you
Thank you! okay thats great to hear. And does my workflow I am laying out make sense?
- In the app they see the price they will be charged eventually and any trial info.
- Then we show them a payment sheet where hopefully they have apple pay as an option
- user completes the payment sheet and immediately on setup_intent.succeeded we create a new subscription with the trial on the customer.
- then our normal subscription webhooks will kick in and it will be the same as if they used Stripe Checkout on the web (what we currently do).
I have that flow working locally but it requires me to manually close and restart my app to see the changes reflected, which isn't a problem we have for In app purchases, not sure if theres a better way to refresh once the subscription is attached
hello! I'm taking over, gimme a while to catch up!
no rush!
yep, that's totally possible. You'll want to remember to set the default payment method on either the customer or the subscription since you're using a separate SetupIntent to collect the PaymentMethod first
okay cool and all good on using apple pay?
And do I need to check on my server that they dont already have a setupIntent or card on file before creating the setupintent?
yep, it's fine to use Apple Pay.
And do I need to check on my server that they dont already have a setupIntent or card on file before creating the setupintent?
I think that's really up to you. If you want to do so, I'll recommend looking into the deferred Intent flow. Let me try and find the corresponding docs
gosh, sorry, this is taking a while for me to find that set of docs
maybe try it out first and let us know if you're running into any issues
awesome thank you!
oh yeah I think this is what I have working currently
its the same as the docs linked in the parent post I think. Okay cool ill try setting up apple pay and see what happens
And is there a way to test if the 3D Secure redirects work?
we have a set of test cards : https://docs.stripe.com/testing
it does have 3ds test cards which you can use