Skip to content

Commit 58f5493

Browse files
Add support for initial_screen
1 parent b909b63 commit 58f5493

5 files changed

Lines changed: 31 additions & 2 deletions

File tree

docs/initial-screen.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
sidebar_position: 12
3+
---
4+
5+
# Initial Screen
6+
7+
The initial screen on Topper is the amount and asset selection.
8+
9+
To skip this screen on initialization and go straight to authentication, simply add the `initial_screen` query parameter to the URL like `https://app.topperpay.com/?bt=<bootstrap token>&initial_screen=authentication`.
10+
11+
12+
13+
| Amount selection screen | Authentication screen |
14+
|-------------------------|-------------------------|
15+
| <img src="/images/amount-selection-screen.jpg" alt="Amount selection screen" width="300"/> | <img src="/images/get-started-screen.jpg" alt="Authentication screen" width="300"/> |
16+
17+
18+
**What other initial screens are supported?**
19+
20+
Currently only the Authentication screen is supported.
21+
22+
23+
**Using the [Web SDK](./web-sdk.md):**
24+
25+
```js
26+
const topper = new TopperWebSdk({ initial_screen: TOPPER_INITIAL_SCREENS.AUTHENTICATION });
27+
28+
topper.initialize({ bootstrapToken: <bootstrap token> });
29+
```

docs/mobile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 13
2+
sidebar_position: 14
33
---
44

55
# Mobile

docs/web-sdk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 12
2+
sidebar_position: 13
33
---
44

55
# Web SDK
94.1 KB
Loading
77.7 KB
Loading

0 commit comments

Comments
 (0)