Skip to main content

navigateTo

Description

Navigate to the desired url in the same webview in Zalopay App

Parameters

ParamData typeRequiredDescription
urlstringYesUrl to desired website
replacebooleanNoIf set to true, App will navigate to new url and not save current web page in history

Return Value

N/A

Error Code

N/A

Sample Code and Sample Return Data

Sample Request:

window.zlpSdk.Navigator
.navigateTo({ url: '/spa/v2/sample-app', replace: true })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));

Sample Response:

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