# Handle different modes Adapt your app to handle live mode and sandboxes. During installation, users can choose which environment to install your app into. ![The location of the mode selection option during the Stripe App installation flow](https://b.stripecdn.com/docs-statics-srv/assets/mode-selector.2f3a4f6e4859b919ef569502676ab6a0.png) ## Try it in a sandbox In the App Marketplace, potential users see a `Try it in a sandbox` option to encourage them to try out an app. ![The location of the "Try it in a sandbox" call to action in the App Marketplace](https://b.stripecdn.com/docs-statics-srv/assets/try-in-test.0a50a8e13350323b2a28d0634ae6d52d.png) > If your app uses the OAuth API access type or an external install URL, you won’t see the `Try it in a sandbox` option in the App Marketplace. ## Install shortcut If the app is installed in one environment, you can install it in another environment from the Stripe Dashboard. ![The location of the button in the Stripe Dashboard to install the app in the opposite mode](https://b.stripecdn.com/docs-statics-srv/assets/install-other-mode.88bf3eb2939060f4f0fe172822587ee8.png) ## Webhooks If your app is set up to [listen to events for your installed users’ accounts](https://docs.stripe.com/stripe-apps/events.md), it requires additional setup to make sure you can handle having your app installed in *test mode sandboxes* (Every Stripe account includes the test mode sandbox. It shares some settings with live mode, has characteristics that differ from other sandboxes you create, but you can't delete it) and general sandboxes. - If a user installs your app in live mode only, Stripe sends applicable live-mode events to your live-mode webhook endpoints. - If a user installs your app in a test mode sandbox only, Stripe sends applicable test mode sandbox events to your test mode sandbox webhook endpoints. - If a user installs your app in both live mode and a test mode sandbox, Stripe sends test mode sandbox events to your test mode sandbox and live-mode webhook endpoints, and it sends live-mode events only to your live-mode webhook endpoints. - If a user installs your app in a sandbox environment, Stripe sends events only to the webhook endpoints for that sandbox. > Set up live mode, test mode sandbox, and general sandbox webhook endpoints to make sure all environments are properly supported. See [event behavior](https://docs.stripe.com/stripe-apps/build-backend.md#event-behavior-depends-on-install-mode) for more information and examples about how the install mode affects event behavior. ## OAuth links OAuth apps initiate app installation from within your platform. You’re responsible for implementing install links for test mode sandbox and general sandbox support. The Stripe Dashboard provides OAuth install links for test mode sandboxes and general sandboxes. ![The location of public OAuth links within the Stripe Dashboard](https://b.stripecdn.com/docs-statics-srv/assets/public-oauth-links.510f38d240869e2ebf88ad5ee3b97625.png) The Stripe Apps OAuth documentation has more information on [creating OAuth install links](https://docs.stripe.com/stripe-apps/api-authentication/oauth.md#create-install-link). ## See also - [Webhooks](https://docs.stripe.com/webhooks.md) - [Event destinations](https://docs.stripe.com/event-destinations.md) - [Server-side logic](https://docs.stripe.com/stripe-apps/build-backend.md) - [OAuth 2.0 API Authentication Type](https://docs.stripe.com/stripe-apps/api-authentication/oauth.md)