目前正在开发电子商务网络应用程序.它正由Spree在Ruby on Rails平台上开发.
我无法在此应用中集成任何印度支付网关.
我尝试了CCAvenue,但遇到了问题.即使我找不到任何使用它的命令.
这也不起作用https://github.com/meshbrain/active_merchant_ccavenue
我也尝试过Paypal,但Paypal已停止在印度提供服务.
我正在将 CCAvenue 集成到我的 android 应用程序中,并且我正在进行非无缝集成。
我的商家服务器是 php,我正在将 httppost 发送到保存在我的商家服务器中的 GetRSA.php 文件。
我使用的代码如下
List<NameValuePair> httpParams = new ArrayList<NameValuePair>();
httpParams.add(new BasicNameValuePair("access_code", intent.getStringExtra("access_code")));
httpParams.add(new BasicNameValuePair("order_id", intent.getStringExtra("order_id")));
String vResponse = sh.makeServiceCall(intent.getStringExtra(RSA_KEY_URL), ServiceHandler.POST, httpParams);
Run Code Online (Sandbox Code Playgroud)
访问代码、订单 ID 和 RSA url 是从上一个活动传递的,我使用的 ACESS_CODE 是 CCAvenue 提供的,RSA_KEY_URL 是我在商家服务器中保存 GetRSA.php 的路径。
但我得到的回应是“!错误!呼叫者 IP 未注册/未找到商家。”
有什么问题?
我在我的wordpress网站上使用ccavenue付款网关。
插件网址为https://wordpress.org/plugins/ccavenue-payment-gateway-woocommerce/
但我遇到一个问题,我的基本货币是inr,ccavenue仅接受inr付款,因此当用户将货币切换为usd时, ccavenue将40美元作为inr40。
我想先将货币转换为ccavenue页。
相同的代码段是。
public function generate_ccavenue_form($order_id){
global $woocommerce;
$order = new WC_Order($order_id);
$redirect_url = ($this -> redirect_page_id=="" || $this -> redirect_page_id==0)?get_site_url() . "/":get_permalink($this -> redirect_page_id);
//For wooCoomerce 2.0
$redirect_url = add_query_arg( 'wc-api', get_class( $this ), $redirect_url );
$order_id = $order_id.'_'.date("ymds");
$checksum = $this -> getCheckSum($this -> merchant_id, $order->order_total, $order_id, $redirect_url, $this -> working_key);
$ccavenue_args = array(
'Merchant_Id' => $this -> merchant_id,
'Amount' => $order->order_total,
'Order_Id' => $order_id,
'Redirect_Url' => $redirect_url,
'Checksum' => $checksum,
'currency_code' => get_woocommerce_currency(), …Run Code Online (Sandbox Code Playgroud) 这是我的 view.py 我试图从支付网关获得响应,但我获得403 Forbidden CSRF 验证失败。请求中止。付款后,我为视图豁免了 CSRF 令牌,但仍然显示相同的错误
from django.views.decorators.csrf import csrf_exempt
@csrf_exempt
def resp(request, encResp):
print " RESPONSE WITH CSRF EXEMPT "
'''
Please put in the 32 bit alphanumeric key in quotes provided by CCAvenues.
'''
workingKey = WorkingKey
decResp = decrypt(encResp,workingKey)
data = '<table border=1 cellspacing=2 cellpadding=2><tr><td>'
data = data + decResp.replace('=','</td><td>')
data = data.replace('&','</td></tr><tr><td>')
data = data + '</td></tr></table>'
html = '''\
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Response Handler</title>
</head>
<body>
<center>
<font …Run Code Online (Sandbox Code Playgroud) 我们在我们的项目中添加了一个活动,用户可以通过它购买一些东西,我们在我们的 Web 视图中打开客户提供给我们的 URL。他们使用 ccavenus 付款方式。在购买完成后的某些手机上,ccavenus 重定向 URL 卡住了,它会无限期地显示微调器。并且在某些手机上,URL 重定向工作顺利,用户可以购买东西。
你们能帮我们解决这个问题吗?这是我们的网页视图代码。
private void launchWebView(String URL)
{
webView.setInitialScale(1);
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setAllowFileAccess(true);
webView.getSettings().setAllowContentAccess(true);
webView.setScrollbarFadingEnabled(false);
webView.setWebChromeClient(new WebChromeClient(){
@Override
public void onProgressChanged(WebView view, int newProgress) {
if(newProgress == 100){
mProgressBar.setVisibility(View.GONE);
}else{
mProgressBar.setVisibility(View.VISIBLE);
mProgressBar.setProgress(newProgress);
}
}
});
webView.setWebViewClient(new WebViewClient(){
public boolean shouldOverrideUrlLoading(WebView view,String url){
return false;
}
//To Handle SSL Errors
@Override
public void onReceivedSslError(WebView view, final SslErrorHandler handler, SslError error) {
final AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setMessage("The site's security certificate is not …Run Code Online (Sandbox Code Playgroud) 我正在尝试将CcAvenue Payment Gateway集成到我们目前正在Asp.Net Core MVC 2.0中开发的应用程序中.现在麻烦的是加载由它们提供的DLL组件.
这是在.Net 3.5中构建的,应用程序显示此异常
FileNotFoundException:无法加载文件或程序集'MCPG.CCA.Util,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 3d7072b2634875da'.该系统找不到指定的文件.
我是codeigniter的新手,我正在开发一个电子商务应用程序,如flipkart使用codeigniter,现在我想将ccavenue支付网关集成到我们的网站,我已经提到了许多网站,但我无法得到适当的解决方案.请有人帮帮我,并提供ccavenue api文档.我还没有用于集成ccavenue的codeigniter代码,我已经通过以下网址 http://integrate-payment-gateway.blogspot.in/2012/01/ccavenue-payment-integration-php.html 继续整合ccavenue但我不知道如何解析php脚本到codeigniter.
我是支付网关的新手.我想使用PHP将CCAvenue集成到我的网站.我已经下载了他们的Intergration工具包,包括我的商家ID和工作密钥,将帐户设置为活动状态,并尝试对他们在我的localhost中提供的索引文件进行虚拟交易.
但是,当我点击表单上的提交时,它将我带到CCAvenue Transaction错误页面,没有任何错误代码和错误描述.
请让我知道我在哪里犯了错误,我还需要做些什么.
如果有人向我指出除了CCAvenue集成手册之外的其他教程,我会很高兴.
代码:Checkout.php
<html>
<head>
<title> Checkout</title>
</head>
<body>
<?php include('adler32.php')?>
<?php include('Aes.php')?>
<?php
error_reporting(0);
$merchant_id=$_POST['Merchant_Id']; // Merchant id(also User_Id)
$amount=$_POST['Amount']; // your script should substitute the amount here in the quotes provided here
$order_id=$_POST['Order_Id']; //your script should substitute the order description here in the quotes provided here
$url=$_POST['Redirect_Url']; //your redirect URL where your customer will be redirected after authorisation from CCAvenue
$billing_cust_name=$_POST['billing_cust_name'];
$billing_cust_address=$_POST['billing_cust_address'];
$billing_cust_country=$_POST['billing_cust_country'];
$billing_cust_state=$_POST['billing_cust_state'];
$billing_city=$_POST['billing_city'];
$billing_zip=$_POST['billing_zip'];
$billing_cust_tel=$_POST['billing_cust_tel'];
$billing_cust_email=$_POST['billing_cust_email'];
$delivery_cust_name=$_POST['delivery_cust_name'];
$delivery_cust_address=$_POST['delivery_cust_address'];
$delivery_cust_country=$_POST['delivery_cust_country'];
$delivery_cust_state=$_POST['delivery_cust_state'];
$delivery_city=$_POST['delivery_city'];
$delivery_zip=$_POST['delivery_zip'];
$delivery_cust_tel=$_POST['delivery_cust_tel']; …Run Code Online (Sandbox Code Playgroud) 我正在尝试将CCAvenue支付网关集成到我在swift4中开发的iOS应用程序中.我正进入(状态
"错误!!!解密应用程序请求时出现问题"
我已经检查了答案:https://stackoverflow.com/a/37327122/3548469,但我的情况没有运气.
这是我从文档中尝试过的
private func gettingRsaKey(completion: @escaping (_ success: Bool, _ object: AnyObject?) -> ()){
let serialQueue = DispatchQueue(label: "serialQueue", qos: .userInitiated)
serialQueue.sync {
print("access_code=\(CC_AVENUE_ACCESSKEY)")
print("order_id=\(self.orderId)")
self.rsaKeyDataStr = "access_code=\(CC_AVENUE_ACCESSKEY)&order_id=\(self.orderId)"
let requestData = self.rsaKeyDataStr.data(using: String.Encoding.utf8)
guard let urlFromString = URL(string: CC_AVENUE_RSAURL) else{
return
}
var urlRequest = URLRequest(url: urlFromString)
urlRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "content-type")
urlRequest.httpMethod = "POST"
urlRequest.httpBody = requestData
let session = URLSession(configuration: URLSessionConfiguration.default)
print("session",session)
session.dataTask(with: urlRequest as URLRequest) {
(data, response, error) -> Void in
if …Run Code Online (Sandbox Code Playgroud) 我在我的网站上使用cc-avenue jsp集成套件.我使用了cc-avenue提供的代码,但是当我尝试从我的网站结账时,它会出错
10002商家身份验证失败.别担心......它发生在我们最好的人身上.
请任何人帮我解决这个问题.
ccavenue ×10
php ×3
android ×2
.net ×1
asp.net-core ×1
c# ×1
codeigniter ×1
django ×1
django-1.9 ×1
ios ×1
java ×1
python ×1
spree ×1
swift ×1
webview ×1
woocommerce ×1
wordpress ×1