如何启用paypal在电子书中运行的brainstree?
我在nodejs中运行braintree支付系统,这个快速的应用程序正在通过桌面电子运行。
通过标准信用卡支付工作正常,但是当贝宝button被点击时,它只是失速。 看下面的图片。
当你点击取消贝宝login没有任何反应。
以下是braintree支付的html格式
<script src="https://js.braintreegateway.com/js/braintree-2.30.0.min.js"></script> <script> // We generated a client token for you so you can test out this code // immediately. In a production-ready integration, you will need to // generate a client token on your server (see section below). var clientToken = document.getElementById('token').value; braintree.setup(clientToken, "dropin", { container: "payment-form" }); </script> <a href="https://www.braintreegateway.com/merchants/ID/verified" target="_blank"> <img src="https://s3.amazonaws.com/braintree-badges/braintree-badge-wide-dark.png" width="280px" height="44px" border="0"/> </a>
当在Web浏览器上运行的普通快速应用程序尝试时,它可以工作(popup窗口似乎使用PayPal进行支付)。 我的假设是,电子禁用popup式窗口,但这不解释为什么“取消PayPallogin”button是无法响应。
充分披露:我在Braintree工作。 如果您有任何其他问题,请随时联系支持 。
Braintree不会对像Electron这样的编译原生框架进行testing,这意味着Braintree的库在与它们一起使用时不会运行 。
您可以使用PayPal的API 来整合PayPal,但是在开发集成时请注意安全准则 。