cordova-如何将CCAvenue集成到Ionic2 [英] cordova - How to integrate CCAvenue to Ionic2

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

问题描述

我是IONIC2和Angular2的新手。
在我的应用程序中,我需要带有商家服务器的CCavenue支付网关。
请给我有关该问题的步骤。

I am new in IONIC2 and Angular2. In my application I need payment gateway of CCavenue with merchant server. Please give me steps for that Issue.

推荐答案

首先,您需要设置CCAvenue帐户。转到注册页面,选择Startup Pro计划并填写您的详细信息。创建帐户时,您将在输入的电子邮件地址上收到一封电子邮件,以验证您的电子邮件。验证电子邮件后,您将收到一封激活电子邮件,其中会提供您的CCAvenue帐户登录ID,并且需要您设置密码。设置您的帐户密码并确保您已仔细阅读所收到的电子邮件。
登录到CCAvenue M.A.R.S面板(仪表板)。在设置> API密钥标签中,您将获得商户ID,访问代码以及工作密钥。在从CCAvenue提供给您的信息中心中,工作密钥也称为加密密钥。将这些密钥复制到安全的地方以备后用。
为了在发起交易时保护从移动设备传输的数据,CCAvenue实施了基于时间的RSA密钥对值,该值需要针对每笔交易唯一地获取。这些文件应上传到您的Web服务器上。
要下载这些文件,请登录CCAvenue仪表板。现在转到资源>移动集成工具包。进一步点击RSA&响应处理。从此处下载PHP文件。您还可以使用JSP和ASP.NET文件,但是在使用它们之前,请确保Web服务器支持这些功能。每个Web服务器都支持PHP,因此我正在使用PHP。
解压缩PHP下载文件时会发现4个文件。它们是:cacert.pem,ccavResponseHandler.php,Crypto.php和GetRSA.php。在解压缩PHP下载文件时,您会发现4个文件。它们是:cacert.pem,ccavResponseHandler.php,Crypto.php和GetRSA.php。现在,请按照以下步骤操作:

First of all, you need to set up a CCAvenue account. Go to the Sign Up page, choose the Startup Pro plan and fill out your details. On creating your account, you will recieve an e-mail on your entered e-mail address to verify your e-mail. Once you verify your e-mail, you will recieve an activation e-mail which will give you your CCAvenue Account Login ID and you will be required to set your password. Set your account password amd make sure you read the e-mails that you receive thoroughly. Login to CCAvenue M.A.R.S Panel (Dashboard). In the Settings > API keys tab , you would get the Merchant ID , Access Code as well as the Working Key. The working key is also named as the encryption key in the dashboard provided to your from CCAvenue. Copy these keys to a safe place for later use. To secure the data transmitted from mobile while initiating the transaction, CCAvenue has implemented a time-based RSA key pair value which needs to be fetched uniquely for every transaction. These files should be uploaded on your web server. To download these files, Login to CCAvenue Dashboard. Now go to Resources > Mobile Integration Kit. Further click on RSA & Response Handling. Download the PHP files from here. You can also use the JSP and ASP.NET files but make sure your web server supports these functionalities before you use them. PHP is supported by every web server so I am using PHP. You will find 4 files on unzipping your PHP download. These are: cacert.pem, ccavResponseHandler.php, Crypto.php and GetRSA.php. You will find 4 files on unzipping your PHP download. These are: cacert.pem, ccavResponseHandler.php, Crypto.php and GetRSA.php. Now follow the following steps:

(a)将这4个文件上传到您的网络服务器上。

(a) Upload these 4 files on your web server.

(b )在GetRSA.php文件中,将访问代码像这样放在第四行:'access_code'=> XXXXXXXXXXXXXXXXXX,

(b) In the GetRSA.php file, put your access code in the 4th line like this: 'access_code'=>"XXXXXXXXXXXXXXXXXX",

(c)在第二十行,则需要将路径放置在上传了cacert.pem文件的位置。例如:curl_setopt($ ch,CURLOPT_CAINFO,$ _SERVER ['DOCUMENT_ROOT']。'/ RSA / cacert.pem');

(c) In the 20th line, you need to put the path where you have uploaded your cacert.pem file. For example: curl_setopt($ch, CURLOPT_CAINFO, $_SERVER['DOCUMENT_ROOT'].'/RSA/cacert.pem');

(d)在ccavResponseHandler中。 php文件,将您的工作密钥放在第六行,如下所示:$ workingKey ='105B05A21AD102EBA62C051720CC3FA2';
这就是服务器部分的全部内容。从CCAvenue帐户下载实施套件,或者您可以通过以下链接获取android实现

(d) In the ccavResponseHandler.php file, put your working key in the 6th line like this: $workingKey='105B05A21AD102EBA62C051720CC3FA2'; That's all for the server part. Download the Implementation kit from CCAvenue account or you may refer the following link for android implementation

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

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