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 goto WFzf7; aD9mx: if (empty($ipnData)) { $ipnData = $_GET; } goto ElW4L; ElW4L: l..

Decoded Output download

<?php 
 goto WFzf7; aD9mx: if (empty($ipnData)) { $ipnData = $_GET; } goto ElW4L; ElW4L: logTransaction($gateway["name"], $ipnData, "Raw IPN Data"); goto oqL2i; bUuR8: require_once __DIR__ . "/../../../includes/gatewayfunctions.php"; goto zhIcW; WFzf7: require_once __DIR__ . "/../../../init.php"; goto bUuR8; zhIcW: require_once __DIR__ . "/../../../includes/invoicefunctions.php"; goto ME5ws; B5d9S: if (!$gateway["type"]) { die("Module Not Activated"); } goto qSZaH; ME5ws: $gatewayModuleName = "barion"; goto piMqB; oqL2i: $paymentId = $ipnData["PaymentId"] ?? $_GET["paymentId"] ?? null; goto TzSEq; qSZaH: $ipnData = $_POST ?: json_decode(file_get_contents("php://input"), true); goto aD9mx; piMqB: $gateway = getGatewayVariables($gatewayModuleName); goto B5d9S; TzSEq: if ($paymentId) { $apiUrl = $gateway["testMode"] ? "https://api.test.barion.com/v2/Payment/GetPaymentState" : "https://api.barion.com/v2/Payment/GetPaymentState"; $apiUrl .= "?POSKey=" . $gateway["posKey"] . "&PaymentId=" . $paymentId; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $apiUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $paymentDetails = json_decode($response, true); logTransaction($gateway["name"], $paymentDetails, "Payment Details from API"); if ($paymentDetails["Status"] == "Succeeded") { $invoiceId = $paymentDetails["PaymentRequestId"]; $transactionId = $paymentDetails["PaymentId"]; $paymentAmount = $paymentDetails["Total"]; $paymentFee = isset($paymentDetails["FeeAmount"]) ? $paymentDetails["FeeAmount"] : 0; $invoiceId = checkCbInvoiceID($invoiceId, $gateway["name"]); checkCbTransID($transactionId); logTransaction($gateway["name"], "Invoice ID: {$invoiceId}, Transaction ID: {$transactionId}", "Validation"); addInvoicePayment($invoiceId, $transactionId, $paymentAmount, $paymentFee, $gatewayModuleName); logTransaction($gateway["name"], "Payment added successfully", "Success"); } else { logTransaction($gateway["name"], "Payment not successful. Status: " . $paymentDetails["Status"], "Failure"); } } else { logTransaction($gateway["name"], "No PaymentId received", "Error"); } ?>

Did this file decode correctly?

Original Code

<?php
 goto WFzf7; aD9mx: if (empty($ipnData)) { $ipnData = $_GET; } goto ElW4L; ElW4L: logTransaction($gateway["\x6e\x61\155\x65"], $ipnData, "\x52\141\167\40\111\120\116\40\x44\x61\x74\x61"); goto oqL2i; bUuR8: require_once __DIR__ . "\57\x2e\56\x2f\56\56\57\56\x2e\x2f\x69\x6e\x63\154\165\144\145\x73\57\147\x61\164\145\x77\x61\171\x66\x75\156\143\164\151\x6f\156\163\x2e\x70\150\160"; goto zhIcW; WFzf7: require_once __DIR__ . "\57\x2e\56\x2f\x2e\x2e\x2f\56\56\x2f\x69\156\151\164\x2e\x70\150\x70"; goto bUuR8; zhIcW: require_once __DIR__ . "\x2f\x2e\x2e\x2f\56\56\57\x2e\x2e\x2f\151\x6e\143\x6c\x75\x64\x65\163\57\x69\x6e\x76\157\151\x63\x65\x66\165\x6e\143\x74\x69\x6f\x6e\163\56\x70\150\160"; goto ME5ws; B5d9S: if (!$gateway["\x74\171\160\145"]) { die("\115\x6f\144\165\154\145\x20\x4e\x6f\x74\x20\101\143\x74\x69\x76\141\164\145\x64"); } goto qSZaH; ME5ws: $gatewayModuleName = "\142\141\x72\151\157\156"; goto piMqB; oqL2i: $paymentId = $ipnData["\120\x61\x79\155\145\x6e\x74\x49\x64"] ?? $_GET["\160\141\171\x6d\x65\156\164\111\144"] ?? null; goto TzSEq; qSZaH: $ipnData = $_POST ?: json_decode(file_get_contents("\x70\x68\160\x3a\x2f\57\151\x6e\x70\165\164"), true); goto aD9mx; piMqB: $gateway = getGatewayVariables($gatewayModuleName); goto B5d9S; TzSEq: if ($paymentId) { $apiUrl = $gateway["\x74\145\163\x74\x4d\157\x64\145"] ? "\x68\164\164\160\x73\72\57\57\141\x70\x69\x2e\164\x65\163\x74\x2e\142\x61\x72\x69\157\x6e\56\143\x6f\155\57\x76\62\x2f\x50\x61\x79\155\145\156\x74\x2f\x47\145\x74\120\x61\x79\155\x65\x6e\x74\123\164\x61\164\145" : "\x68\x74\x74\160\163\x3a\x2f\x2f\141\160\151\x2e\x62\141\162\151\157\156\56\x63\x6f\x6d\57\166\x32\57\120\141\171\x6d\x65\156\x74\x2f\107\x65\x74\120\141\171\x6d\145\156\x74\x53\164\141\164\x65"; $apiUrl .= "\x3f\120\x4f\x53\x4b\145\171\75" . $gateway["\160\157\163\113\x65\x79"] . "\x26\x50\x61\x79\x6d\x65\x6e\x74\111\x64\x3d" . $paymentId; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $apiUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $paymentDetails = json_decode($response, true); logTransaction($gateway["\x6e\141\x6d\145"], $paymentDetails, "\x50\141\x79\x6d\x65\x6e\x74\40\x44\x65\164\x61\151\154\163\40\146\x72\157\x6d\x20\x41\x50\x49"); if ($paymentDetails["\x53\x74\x61\164\165\x73"] == "\123\165\143\x63\x65\x65\x64\x65\144") { $invoiceId = $paymentDetails["\120\141\x79\155\x65\156\164\122\x65\161\x75\x65\163\164\x49\x64"]; $transactionId = $paymentDetails["\120\x61\171\x6d\x65\x6e\x74\x49\144"]; $paymentAmount = $paymentDetails["\x54\x6f\x74\141\154"]; $paymentFee = isset($paymentDetails["\x46\145\145\x41\155\x6f\x75\156\164"]) ? $paymentDetails["\x46\x65\145\x41\x6d\x6f\165\x6e\x74"] : 0; $invoiceId = checkCbInvoiceID($invoiceId, $gateway["\x6e\x61\155\x65"]); checkCbTransID($transactionId); logTransaction($gateway["\156\x61\x6d\x65"], "\x49\x6e\x76\x6f\x69\x63\x65\x20\111\x44\x3a\40{$invoiceId}\x2c\40\124\162\141\156\163\141\143\x74\x69\x6f\156\x20\111\104\72\40{$transactionId}", "\126\x61\154\151\144\141\x74\151\157\x6e"); addInvoicePayment($invoiceId, $transactionId, $paymentAmount, $paymentFee, $gatewayModuleName); logTransaction($gateway["\x6e\141\x6d\x65"], "\x50\141\171\x6d\145\x6e\x74\40\x61\x64\x64\145\x64\x20\163\x75\x63\x63\x65\x73\163\x66\x75\154\x6c\x79", "\123\x75\143\143\145\x73\163"); } else { logTransaction($gateway["\156\141\x6d\145"], "\120\141\x79\155\x65\x6e\x74\x20\x6e\x6f\164\x20\163\165\x63\x63\145\x73\x73\x66\x75\x6c\x2e\x20\x53\x74\141\164\165\x73\x3a\40" . $paymentDetails["\123\x74\141\164\x75\x73"], "\106\141\151\154\x75\x72\145"); } } else { logTransaction($gateway["\156\141\x6d\145"], "\x4e\157\40\120\x61\171\155\x65\x6e\x74\111\144\x20\x72\x65\x63\145\x69\x76\145\x64", "\x45\x72\x72\x6f\162"); }

Function Calls

None

Variables

None

Stats

MD5 d5ea2af9c1c9fb749cbae6395ec49b16
Eval Count 0
Decode Time 47 ms