Using Braintree on Meteor mobile (android - cordova)

旧街凉风 提交于 2019-12-24 17:43:24

问题


I am using Meteor 1.3 with android platform and patrickml:braintree@1.32.0 to be able to process in-app payments.

I configured braintree and inserted a Drop-in UI, which is the simplest way to do it.

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.

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 

the drop in UI just does not show.

Does it have something to do with the lac of SSL security on my domain?

Is there something I am missing?


回答1:


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.




回答2:


Full disclosure: I work at Braintree. If you have any further questions, feel free to contact our support team.

Braintree.js does not support compile-to-native runtimes such as Cordova.



来源:https://stackoverflow.com/questions/36944946/using-braintree-on-meteor-mobile-android-cordova

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!