stripe / stripe-terminal-react-native

React Native SDK for Stripe Terminal
https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=react-native
MIT License
99 stars 46 forks source link

How to disable Tap to Pay on iPhone terms and conditions pop-up for certain users on reader connect? #709

Open inzqne opened 2 months ago

inzqne commented 2 months ago

Hello,

I am currently developing an app that has a business-focused user hierarchy. I only want to show the terms and conditions pop-up that automatically shows up on reader connect to the appropriate admin users. If a non-admin user tries to connect to reader, I want a way to detect that terms have not been accepted by admin yet so that I can show them a message, is there an error that gets thrown for this in the react native SDK with a specific configuration?

This is also necessary by Apple in order to get approval for the distribution entitlement (see picture below). Is there currently no way of doing this with the react native SDK? Any help is appreciated!

image

nazli-stripe commented 2 months ago

connectLocalMobileReader accepts a parameter called tosAcceptancePermitted that lets you control whether the terms and services modal should be displayed to the user: https://github.com/stripe/stripe-terminal-react-native/blob/82bc4df5/src/types/index.ts#L53