#Aby-sfu-checkbox
1 messages ยท Page 1 of 1 (latest)
Hello! Are you building a mobile or web integration?
๐
If it's a web integration then I don't believe we provide anything out of the box for this yet - you'd have to build a checkbox or input that would ask a user whether they want to save or not
Ok, so basically I would have to handle this on my end, and then build some kind of logic that lets me know if the user checked that checkbox in order to collect their card details, right?
Yes - as an example, if you were using the deferred intent flow (https://stripe.com/docs/payments/accept-a-payment-deferred) you'd listen for when the checkbox was toggled and you could use elements.update to set setupFutureUsage (https://stripe.com/docs/js/elements_object/update#elements_update-options-setupFutureUsage)
Perfect, I'll take a look at it. Thank you for yur guidance!
Aby-sfu-checkbox