gpt4 book ai didi

paypal - Codenameone 浏览器出现 paypal checkout express 问题

转载 作者:太空宇宙 更新时间:2023-11-03 15:54:26 24 4
gpt4 key购买 nike

所以我一直在尝试寻找一个 API 来将 PayPal 支付集成到我的 Codename One 应用程序中,只是我没有找到足够的文档来使用 Purchase 内置功能。因此,我尝试使用托管在我的服务器上并使用 paypal“checkout.js”Api 实现的页面的 WebView。

当我将页面加载到 Chrome 时,它​​运行良好并且交易完成。但是当我使用代号 one BrowserComponent 加载它时,它会卡住(见屏幕截图)。这个问题的根源是什么?浏览器不支持 popus 是事实吗?有没有办法解决它?

 Button payButton = new Button("Checkout");
payButton.addActionListener((ActionEvent evt) -> {
Form payForm = new Form("Payment", new BorderLayout());
WebBrowser webBrowser = new WebBrowser("http://localhost/paymentserver/web/app_dev.php/payerParticipation/5");
payForm.add(BorderLayout.CENTER, webBrowser);
payForm.show();
});

Screenshot

最佳答案

尝试将 firebug 嵌入到您的页面中,看看它是否报告任何错误:

<script>
if (!document.getElementById('FirebugLite')){E = document['createElement' + 'NS'] && document.documentElement.namespaceURI;E = E ? document'createElement' + 'NS' : document'createElement';E'setAttribute';E'setAttribute';E'setAttribute';(document'getElementsByTagName'[0] || document'getElementsByTagName'[0]).appendChild(E);E = new Image;E'setAttribute';}
</script>

关于paypal - Codenameone 浏览器出现 paypal checkout express 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43644535/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com