在Meteor Mobile上使用Braintree(Android-Cordova) [英] Using Braintree on Meteor mobile (android - cordova)
问题描述
我正在将Meteor 1.3与android平台配合使用,并且 patrickml:braintree@1.32.0 能够处理应用内付款.
I am using Meteor 1.3 with android platform and patrickml:braintree@1.32.0 to be able to process in-app payments.
我配置了Braintree并插入了一个Drop-in UI,这是最简单的方法.
I configured braintree and inserted a Drop-in UI, which is the simplest way to do it.
在测试时,如果我在Web(localhost)上运行或使用meteor run android-device
在没有移动服务器配置的情况下运行,则UI的下降会显示在设备上.
While testing, if I run it on web (localhost) or with meteor run android-device
with no mobile-server configuration, then the drop in UI is shown on the device.
但是,当我尝试在Digital Ocean中集成托管服务器上的所有内容并尝试使用以下方法进行测试时:
However, when I try to integrate everything on my hosted server in Digital Ocean and try to test it using:
meteor run android-device --mobile-server=http://example.com
UI的下降只是不显示.
the drop in UI just does not show.
这与我域中的SSL安全性有什么关系吗?
Does it have something to do with the lac of SSL security on my domain?
有什么我想念的吗?
推荐答案
我设法使其正常运行.只需确保在移动服务器上通过HTTPS进行连接,braintree就可以通过安全连接提供iFrame.
I managed to make it work. Just have to be sure to connect through HTTPS on the mobile server and braintree can provide iFrame through secure connection.
这篇关于在Meteor Mobile上使用Braintree(Android-Cordova)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!