User-Agent identification (required)
The mobile app must keep the device’s default User-Agent and append aPayleadWebView suffix at the end.
Purpose: let Paylead reliably identify that the navigation comes from a
WebView embedded in the mobile app
Example User-Agent
Do not replace the whole User-Agent. Replacing it breaks Paylead’s ability
to identify the WebView and can lead to hard-to-diagnose support issues. Only
append the
PayleadWebView suffix.Platform setup
- iOS (WKWebView)
- Android (WebView)
Use the default (persistent) data store and reuse the same WebView instance.
Configuration
- Reuse the same instance across opens.
- Verify that
.paylead.eucookies persist:
Cookie check
Server-side cookie attributes
The Paylead session cookies are issued with the following attributes:Domain=.paylead.euPath=/HttpOnly=trueSecure=trueSameSite=None(required in a WebView)
Opening URL parameters
The WebApp reads two optional URL parameters at startup, before the interface initialises. Pass them in the opening URL to control the display language and visual theme.lang — Display language
Append ?lang=<code> to the opening URL.
The WebApp selects a language using the following priority order:
- The
langURL parameter, if present. - The language last saved in the user’s browser storage.
- The language detected from the browser’s
Accept-Languageheader. - French (
fr) as the fallback.
lang parameter, the saved value applies.
| Code | Language | Availability |
|---|---|---|
fr | French | All themes |
en | English | Theme-dependent |
nl | Dutch | Theme-dependent |
de | German | Theme-dependent |
Available languages depend on the theme configured for each client. An unsupported code falls back to French.
mode — Visual theme
Append ?mode=<value> to the opening URL.
| Value | Effect |
|---|---|
light | Light theme |
dark | Dark theme |
Dark mode is only available for clients whose theme has been configured to support it. For other clients, the parameter is silently ignored and the WebApp displays in light mode.
Example
What’s next
Cookies
The cookies the WebApp sets, their purpose, and scope.
Mobile Bridge
How the WebApp calls native capabilities from inside your WebView.