stripe-react-native
stripe-react-native copied to clipboard
PaymentSheet: Allow `setup_future_usage` value to be customizable
Is your feature request related to a problem? Please describe.
We're allowing users to save their card data, however, PaymentSheet doesn't display a warning, it just shows a checkbox, the option to save card for later. With SRN forcing off_session for setup_future_usage, the user unknowingly agrees for us to use their card any way we want (barring 3DS), which obviously is far from ideal.
https://github.com/stripe/stripe-react-native/blob/62c296e5dd12d7b9491dc3e5f611ce6c4c363791/src/types/PaymentSheet.ts#L333
Describe the solution you'd like
If the user chooses to save their card data, we should be able to choose whether we want off_session or on_session for setup_future_usage on the PaymentSheet.
Describe alternatives you've considered
At least find a way to show a warning about the implications of saving the card off_session, similarly as there is text disaplyed for this on web.
Additional context