php - Paytm支付网关,启动交易模式php中的系统错误
问题描述
我正在 php 中集成 paytm 支付网关。我正确传递了所有必需的参数以生成校验和代码,在点击 curl 后,我收到了一个系统错误问题作为响应。我们已尝试就此联系付款,但他们对此问题的回应不多,所以我一个人。
下面我提到了我的代码,如果有人以前遇到过这个问题,请帮我解决这个问题
校验码:
Kp+cPIrrZDweulOb3kEsYxMB4h3fJCtTOuT//bhEeJ3fpxIa1rvb6OfT5icCOkANyR4XCzbwhpaCrLCtGWDf/27BA06dSORyJnbqdAj8FKg=
服务器端代码
$encFile = PaytmChecksum::generateSignature($arrInputs,$mid);
$paytmParams["head"] = array(
"signature" => $encFile
);
$post_data = json_encode($paytmParams, JSON_UNESCAPED_SLASHES);
$url = "https://securegw-stage.paytm.in/theia/api/v1/initiateTransaction?mid=$mid&orderId=$transactionId";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
$headers[] = 'X-Redirect-Url: http://localhost/TEWebSite/web/site/paymentresponse';
$response = curl_exec($ch);
发起事务响应:{"head":{"requestId":null,"responseTimestamp":"1607942634809","version":"v1"},"body":{"extraParamsMap":null,"resultInfo":{" resultStatus":"U","resultCode":"00000900","resultMsg":"系统错误"}}}
解决方案
推荐阅读
- excel - 隐藏数据源路径
- javascript - SyntaxError:提取 JSON 数据时出现意外数字
- youtube-dl - youtube-dl ytsearch:只搜索第一个单词
- python - 模块“sklearn.metrics”没有属性“plot_roc_curve”
- django - Django分页page_obj.number没有改变
- python - 计数是否在多个索引数据框中
- javascript - 如何在 page.evaluate() 的函数参数中将 page 作为参数传递?
- terraform - terraform中的Concat字符串和列表变量
- microsoft-teams - 如何在特定渠道中发送主动通知
- indexing - Xarray - InvalidIndexError:重新索引仅对具有唯一值的索引对象有效