ionic2与条带支付网关 [英] ionic2 with stripe payment gateway
问题描述
我正在尝试通过嵌入条带支付网关在离子2中创建一个应用程序。我已经包含了com.telerik.stripe插件。在尝试在应用程序初始化时显示控制台日志时,window.stripe仍未定义,我收到错误,因为类型'窗口'上不存在属性'条纹'。是否有任何教程可以使用ionic 2应用程序嵌入条带。请帮忙。在此先感谢。
I am trying to create an application in ionic 2 by embedding stripe payment gateway. I have included com.telerik.stripe plugin. On trying to display the console log on app initialization, window.stripe remains undefined and i am getting error as "Property 'stripe' does not exist on type 'Window'". Is there any tutorial to embed stripe with ionic 2 application. Please help. Thanks in advance.
推荐答案
我终于找到了使stripe能够在ionic2中工作的解决方案。解决方案是在添加插件后运行离子构建。完成后,在平台就绪事件下将控制台日志显示为条带定义了项目中的条带。 :)
I finally found the solution to make stripe to work in ionic2. The solution is to run "ionic build " after adding the plugin. Once done, displaying console log as "stripe" under platform ready event defines the stripe in my project. :)
这篇关于ionic2与条带支付网关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!