• Resolved agamashish

    (@agamashish)


    On PHP 8.0, the plugin shows the following error

    “Required parameter $order_id follows optional parameter $data”

    LOCATION
    “wp-content/plugins/paytm-payments/woo-paytm.php:299”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author integrationdevpaytm

    (@integrationdevpaytm)

    Hi agamashish,

    Please do the below changes on your paytm plugin for resolution.

    kindly replace the older code with the given code according to the file and line number.

    Filenname: woo-paytm.php

    line no. 299: function saveTxnResponse($order_id, $id = false, $data = array()){

    line no. 286: $response = saveTxnResponse( $_POST[‘paytm_order_id’], $_POST[‘order_data_id’], $resParams);

    Filename: class.paytm.php

    line no. 508: $order_data_id = saveTxnResponse(PaytmHelper::getOrderId($_POST[‘ORDERID’]), $_POST);

    line no: 548: saveTxnResponse(PaytmHelper::getOrderId($resParams[‘ORDERID’]), $order_data_id, $resParams);

    Thread Starter agamashish

    (@agamashish)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 8.0 Deprecated Error’ is closed to new replies.