navigateTo
Description
Navigate to the desired url in the same webview in Zalopay App
Parameters
Param | Data type | Required | Description |
---|---|---|---|
url | string | Yes | Url to desired website |
replace | boolean | No | If 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" }