0

我想自动关闭 CustomTabs。我在 CustomTabs 中添加了 sagepay 网关,它工作正常,但在成功页面上它的返回数组。我想将该数组恢复到应用程序中,并且 CustomTabs 将被关闭。我怎样才能将该数组作为来自在自定义选项卡中打开的 url 的响应返回到应用程序中。自定义标签的代码:-

url = 'https://www.example.com/newsagepay/newtest.php?&customerSage='+isuerID+'&checkSage=1';

CustomTabs.openURL(url,{ toolbarColor: '#607D8B',enableUrlBarHiding: true, showPageTitle: true, enableDefaultShare: true, 
animations: ANIMATIONS_SLIDE}).then((launched: boolean) => {                                                        
    console.log(`Launched custom tabs: ${launched}`);
}).catch(err => {
    console.error(err)
}); 
4

0 回答 0