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 Nxacj; v8Q80: class Custom_Payment_Completion_Handler { private static $insta..
Decoded Output download
<?php
goto Nxacj; v8Q80: class Custom_Payment_Completion_Handler { private static $instance = null; public static function get_instance() { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; } private function __construct() { add_action("wp_ajax_complete_payment", array($this, "complete_payment")); add_action("wp_ajax_nopriv_complete_payment", array($this, "complete_payment")); } public function complete_payment() { check_ajax_referer("telegram-webhook-nonce", "nonce"); $order_id = WC()->session->get("custom_payment_order_id"); if (!$order_id) { wp_send_json_error("No order found"); return; } $order = wc_get_order($order_id); if (!$order) { wp_send_json_error("Invalid order"); return; } $order->payment_complete(); WC()->session->set("custom_payment_order_id", null); wp_send_json_success(array("redirect" => $order->get_checkout_order_received_url())); } } goto PBlua; Nxacj: if (!defined("ABSPATH")) { die; } goto v8Q80; PBlua: Custom_Payment_Completion_Handler::get_instance(); ?>
Did this file decode correctly?
Original Code
<?php
goto Nxacj; v8Q80: class Custom_Payment_Completion_Handler { private static $instance = null; public static function get_instance() { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; } private function __construct() { add_action("\167\x70\137\141\x6a\141\x78\x5f\x63\157\155\160\154\x65\x74\145\x5f\160\x61\x79\x6d\145\x6e\164", array($this, "\x63\x6f\x6d\160\154\145\x74\x65\x5f\x70\141\x79\x6d\x65\156\164")); add_action("\x77\x70\137\141\x6a\x61\x78\x5f\156\157\160\x72\151\x76\x5f\143\157\x6d\160\x6c\145\164\x65\x5f\160\141\171\155\145\x6e\164", array($this, "\x63\157\x6d\160\154\145\164\x65\x5f\160\141\x79\x6d\145\156\x74")); } public function complete_payment() { check_ajax_referer("\x74\x65\x6c\145\x67\162\141\x6d\x2d\167\x65\x62\x68\x6f\x6f\153\55\x6e\157\x6e\143\x65", "\156\x6f\x6e\x63\145"); $order_id = WC()->session->get("\143\x75\163\x74\x6f\x6d\137\160\141\171\155\145\156\164\137\157\x72\144\x65\162\137\151\144"); if (!$order_id) { wp_send_json_error("\x4e\157\x20\157\x72\144\145\x72\40\146\157\x75\x6e\144"); return; } $order = wc_get_order($order_id); if (!$order) { wp_send_json_error("\x49\x6e\x76\141\x6c\x69\x64\40\157\162\x64\x65\x72"); return; } $order->payment_complete(); WC()->session->set("\x63\165\163\x74\x6f\155\137\160\x61\x79\155\145\156\x74\137\x6f\162\144\x65\x72\x5f\151\144", null); wp_send_json_success(array("\x72\x65\144\151\162\145\x63\164" => $order->get_checkout_order_received_url())); } } goto PBlua; Nxacj: if (!defined("\x41\x42\x53\x50\x41\x54\110")) { die; } goto v8Q80; PBlua: Custom_Payment_Completion_Handler::get_instance();
Function Calls
None |
Stats
MD5 | c2230276cd3120a2181fc68d28d11fcd |
Eval Count | 0 |
Decode Time | 59 ms |