如何将 CCAvenue 集成到 Ionic 应用程序? [英] How to integrate CCAvenue to Ionic app?

查看:35
本文介绍了如何将 CCAvenue 集成到 Ionic 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将 ccavenue 集成到我在 Ionic 上构建的混合应用程序中,但我找不到任何示例或代码或任何其他对此有帮助的东西.如果您有任何相关信息,请告诉我.

I want to integrate ccavenue to my hybrid app that I am building on Ionic but I am unable to find any example or code or any other thing which can be helpful in this. Plz let me know if you have any information regarding this.

更新:即使使用 iframe,Ccavenue 对我也不起作用,因为 iframe 只能在注册域(即 www.example.com)上工作,而不能在任何其他地方工作,所以我离开它并选择 Razorpay 支付网关,因为它为 Ionic/Cordova 提供官方支持.

Update: Ccavenue didn't work for me even with the iframe because iframe can only work on the registered domain (ie. www.example.com) and not any other place so I left it and choose the Razorpay Payment gateway because it provides official support for Ionic/Cordova.

这是示例应用.https://github.com/razorpay/razorpay-cordova-sample-app

推荐答案

最后,我能够将 CCavenue 集成到我的 Ionic 应用程序中.您必须执行以下操作

Finally I was able to integrate CCavenue on my Ionic app. You have to do the following

  • 默认情况下,ccavenue 会阻止所有 IP 地址显示付款页面除了用户注册的网址.
  • 首先检查应用程序在通过 ionic serve 运行时正在使用的 ip 地址,请求ccavenue 支持将该ip 和端口8100 或任何您的应用程序列入白名单正在使用.
  • 一旦您将 ip 列入白名单,现在您必须确保 inappbrowser plugin 已安装在 ionic 中,现在您必须使用 这个方法
  • By default ccavenue blocks all ip addresses from showing payment page except the url by which user has registered.
  • First check what ip address is being used by the app while run through ionic serve , ask the ccavenue support to whitelist that ip and also port 8100 or whatever your app is using.
  • Once you've whitelisted the ip now you have to make sure that inappbrowser plugin is installed in the ionic now you have to submit the payment form to another window by using this method

我希望它能帮助很多人.

I hope it will help many.

这篇关于如何将 CCAvenue 集成到 Ionic 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆