Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php eval(base64_decode('CiBnb3RvIENFV3N5OyBaaHJsbTogaWYgKGlzc2V0KCRfR0VUWyJcMTExXDEwNCJd..

Decoded Output download


 goto CEWsy; Zhrlm: if (isset($_GET["ID"])) { require_once "PaytmCheckSumFor-UPI-PAYMENT.php"; $orderid = $_GET["ID"]; $MID = "SOAUku43392028157017"; $MKEY = "kmMSgnqRcZx7MYc#"; $paytmParams = array(); $paytmParams["body"] = array("mid" => "{$MID}", "orderId" => "{$orderid}"); $checksum = PaytmChecksum::generateSignature(json_encode($paytmParams["body"], JSON_UNESCAPED_SLASHES), "{$MKEY}"); $paytmParams["head"] = array("signature" => $checksum); $post_data = json_encode($paytmParams, JSON_UNESCAPED_SLASHES); $url = "https://securegw.paytm.in/v3/order/status"; $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")); $response = curl_exec($ch); $json = json_decode($response); $pstatus = $json->body->resultInfo->resultStatus; if ($pstatus == "TXN_SUCCESS") { $ptxnId = $json->body->txnId; $pbankTxnId = $json->body->bankTxnId; $porderId = $json->body->orderId; $ptxnAmount = $json->body->txnAmount; $ptxnDate = $json->body->txnDate; echo "{"Status":true,"Data":{"Status":"" . $pstatus . "","OrderId":"" . $porderId . "","BankTxnId":"" . $pbankTxnId . "","TxnId":"" . $ptxnId . ""}}"; } else { echo "{"Status":false}"; } } goto dLwvO; CEWsy: goto hpa3L; goto s_ZEX; dLwvO: goto g6zpF; goto dDmFi; KO_HJ: header("Content-Type: application/json"); goto MnOgK; MnOgK: goto rHarh; goto S92zT; S92zT: g6zpF: goto E7gZZ; s_ZEX: rHarh: goto Zhrlm; dDmFi: hpa3L: goto KO_HJ; E7gZZ: 

Did this file decode correctly?

Original Code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