首页 > 解决方案 > 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","re​​sultCode":"00000900","re​​sultMsg":"系统错误"}}}

标签: phppaytm

解决方案


推荐阅读