> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stash.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Presentation Options

> Compare Stash Pay presentation options for iOS and Android and choose the right integration mode for your game or app.

## iOS presentation options

### In-app dialog

Use the Stash SDK dialog when you need tighter in-app UX and direct success/failure callbacks to your app or game.

<video src="https://docs.stash.gg/video/stash-pay/presentation-options/ios-dialog.webm" poster="/video/stash-pay/presentation-options/ios-dialog.png" controls muted playsInline preload="metadata" aria-label="Stash Pay dialog on iOS" />

### Safari View Controller

Use this when you want a browser-based checkout that still feels in-app. Users do not have to switch between app and the browser and the
checkout still happens in the context of your game or application. User returns back in the game using deeplinks.

<video src="https://docs.stash.gg/video/stash-pay/presentation-options/ios-safari-view.webm" poster="/video/stash-pay/presentation-options/ios-safari-view.png" controls muted playsInline preload="metadata" aria-label="Stash Pay in Safari View Controller on iOS" />

### External system browser

Use this for the simplest linkout flow. Users leave the app for checkout inside the system browser and return via deeplink.

## Android presentation options

### In-app dialog

Use the Stash SDK dialog when you need tighter in-app UX and direct success/failure callbacks to your app or game.

<video src="https://docs.stash.gg/video/stash-pay/presentation-options/android-dialog.webm" poster="/video/stash-pay/presentation-options/android-dialog.png" controls muted playsInline preload="metadata" aria-label="Stash Pay dialog on Android" />

### Chrome Custom Tabs (CCT)

Use this when you want a browser-based checkout that still feels in-app. Users do not have to switch between app and the browser and the
checkout still happens in the context of your game or application. User returns back in the game using deeplinks.

<video src="https://docs.stash.gg/video/stash-pay/presentation-options/android-browser.webm" poster="/video/stash-pay/presentation-options/android-browser.png" controls muted playsInline preload="metadata" aria-label="Stash Pay in Chrome Custom Tabs on Android" />

### External system browser

Use this for the simplest linkout flow. Users leave the app for checkout and return via deeplink.

## Return to your game

In the browser presentation modes (Safari View Controller, Chrome Custom Tabs, external system browser), the checkout result page offers a button that opens your app through a deep link. Set your app's URL scheme in Stash Studio under **Project Settings → General → App Deeplink Protocol**, without `://` (for example `mygame`). With no scheme set, the button only tries to close the page.

Stash builds the deep link from that scheme:

| Deep link | Sent when |
| :- | :- |
| `mygame://stash-pay/success` | The purchase completed |
| `mygame://stash-pay/failure` | The purchase failed |
| `mygame://stash-pay/cancel` | The player left checkout without paying (not every checkout layout sends it) |

Register the scheme in your app. On Android an intent filter matches on the host as well as the scheme, so register the host `stash-pay`, or the return link does not open your app:

```xml title="AndroidManifest.xml" theme={null}
<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="mygame" android:host="stash-pay" />
</intent-filter>
```

If your app already registers the same scheme for another host, keep that intent filter and add this one beside it. On iOS, registering the URL scheme is enough.

## Specific Integration guides

* [Native iOS/Android Apps](https://docs.stash.gg/guides/stash-pay/ios-android-integration/native-apps.md)
* [Unity](https://docs.stash.gg/guides/stash-pay/ios-android-integration/unity.md)
* [Unreal Engine](https://docs.stash.gg/guides/stash-pay/ios-android-integration/unreal.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.