#mike-j_setup-future-usage
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/1243471378594926665
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
You can hide the legal agreements when creating the Payment Element: https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-terms
Oh, interesting, I thought it was a backend thing, not frontend. So I'm taking an "on_session" card payment. Assuming that card is set to auto show the legal sentence, what conditions cause it to show? If we're not storing the card details for future use, I'd have thought that would be enough, and I'm fairly sure that we won't have set the legal setting to always, though I'll check that now.
Yep, it's not set to anything other an auto:
Could you please share a screenshot of what exact text are you talking about?
I would say, if you're not saving the Payment Method for future use, you could just drop setup_future_usage: "on_session" completely.
Sure - one minute...
Ignoring the fact that this is "off_session", this message appears at all times.
Could you please share the PaymentIntent ID on the screenshot pi_xxx?
Just to avoid confusion, did it again:
pi_3PJtUDJk75hPCxYy1pvZu3Qh
I see you still provided setup_future_usage: "on_session".
What happens if you don't provide this parameter at all?
Ok, I'll try that in 5 minutes
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
mike-j_setup-future-usage
Just an update, removing setup_future_usage all together does remove that message. As long as the default for a missing setup_future_usage is "on session", then that will work fine.
anything else I could help you with?