Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/digital-wallets/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ These payment options offer a seamless and convenient way for your customers to
### Mobile integration:

- If you are redirecting to Topper through the user's browser, no extra configuration is necessary.
- When Topper is embed with a `WebView`, ensure setting `is_android_app=1` or `is_ios_app=1` as a query parameter in the URL.
- When Topper is embed with a `WebView`, ensure setting `is_android_webview=1` or `is_ios_webview=1` as a query parameter in the URL.
- When Topper is opened using a `Safari View Controller`, ensure setting `is_safari_view_controller=1` as a query parameter in the URL.

**Example URLs:**
- Android: `https://app.topperpay.com/?bt=<bootstrap token>&is_android_app=1`
- iOS: `https://app.topperpay.com/?bt=<bootstrap token>&is_ios_app=1`
- Android: `https://app.topperpay.com/?bt=<bootstrap token>&is_android_webview=1`
- iOS: `https://app.topperpay.com/?bt=<bootstrap token>&is_ios_webview=1`
- Safari View Controller: `https://app.topperpay.com/?bt=<bootstrap token>&is_safari_view_controller=1`

**Using the [Web SDK](../web-sdk.md):**

- Android: `topper.initialize({ bootstrapToken: <bootstrap token>, { is_android_app: true } });`
- iOS: `topper.initialize({ bootstrapToken: <bootstrap token>, { is_ios_app: true } });`
- Android: `topper.initialize({ bootstrapToken: <bootstrap token>, { is_android_webview: true } });`
- iOS: `topper.initialize({ bootstrapToken: <bootstrap token>, { is_ios_webview: true } });`
- Safari View Controller: `topper.initialize({ bootstrapToken: <bootstrap token>, { is_safari_view_controller: true } });`
10 changes: 5 additions & 5 deletions docs/single-sign-on.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ This creates a better experience for users because they can use their existing c
**Notes:**

- If you are redirecting to Topper through the user's browser, no extra configuration is necessary.
- When Topper is embed with a `WebView`, ensure setting `is_android_app=1` or `is_ios_app=1` as a query parameter in the URL.
- When Topper is embed with a `WebView`, ensure setting `is_android_webview=1` or `is_ios_webview=1` as a query parameter in the URL.

**Example URLs:**

- Android: `https://app.topperpay.com/?bt=<bootstrap token>&is_android_app=1`
- iOS: `https://app.topperpay.com/?bt=<bootstrap token>&is_ios_app=1`
- Android: `https://app.topperpay.com/?bt=<bootstrap token>&is_android_webview=1`
- iOS: `https://app.topperpay.com/?bt=<bootstrap token>&is_ios_webview=1`

**Using the [Web SDK](./web-sdk.md):**

- Android: `topper.initialize({ bootstrapToken: <bootstrap token>, { is_android_app: true } });`
- iOS: `topper.initialize({ bootstrapToken: <bootstrap token>, { is_ios_app: true } });`
- Android: `topper.initialize({ bootstrapToken: <bootstrap token>, { is_android_webview: true } });`
- iOS: `topper.initialize({ bootstrapToken: <bootstrap token>, { is_ios_webview: true } });`