openInternalBrowser
Description
Open a website by opening a new webview in Zalopay App
Parameters
Param | Data type | Required | Description |
---|---|---|---|
url | string | Yes | Link to desired website |
Return Value
N/A
Error Code
Error Code | Description |
---|---|
050301 | Invalid url |
Sample Code and Sample Return Data
Sample Request:
window.zlpSdk.Navigator
.openInternalBrowser({ url: "https://zalopay.vn/" })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));
Sample Response:
{ "data": {}, "status": "success" }