Skip to main content

openExternalBrowser

Description

Open a website using the default browser specified by the user

Parameters

ParamData typeRequiredDescription
urlstringYesLink to desired website

Return Value

N/A

Error Code

Error CodeDescription
050401Invalid url

Sample Code and Sample Return Data

Sample Request:

window.zlpSdk.Navigator
.openExternalBrowser({ url: "https://zalopay.vn/" })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));

Sample Response:

{ data: {}, status: "success" }