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 /* Plugin Name: BNL Positivity for WooCommerce Plugin URI: http://www.archaweb.com..
Decoded Output download
<?php /*
Plugin Name: BNL Positivity for WooCommerce
Plugin URI: http://www.archaweb.com/prodotto/bnl-positivity-per-woocommerce/
Description: Aggiunge fra i metodi di pagamento con gateway attivabili in WooCommerce il circuito BNL Positivity
Version: 3.0
Author: Archa Multimedia Studios
Author URI: http://www.archaweb.com
License: Proprietary
License URI: http://www.archaweb.com/trattamento-dati-carte-di-pagamento/
Versions compatibility:
Plugin: Woocommerce:
3.0 3.0.x (and backward to 2.1.9)
1.2 2.1.8 (and backward to 2.0.1)
*/
${"GLOBALS"}["gmlhmkui"]="value";${"GLOBALS"}["raxhbxzj"]="key";${"GLOBALS"}["waclmkilii"]="bnl_args_array";${"GLOBALS"}["ylinrmwzfwru"]="bnl_url";${"GLOBALS"}["udpsjpwsko"]="bnl_args";${"GLOBALS"}["gwetseijdqvy"]="BNLP_CURRENCY";${"GLOBALS"}["lzrxwdyomvqb"]="ascii";${"GLOBALS"}["psqkszmf"]="currency";${"GLOBALS"}["cpmhecubhdsh"]="dataInseritaNelFieldtxndatetime";${"GLOBALS"}["fzuoghrdo"]="stringToHash";${"GLOBALS"}["cwzzrhhg"]="sharedSecret";${"GLOBALS"}["zhhixxyl"]="storeId";${"GLOBALS"}["lllghwsq"]="woocommerce";${"GLOBALS"}["ihougidqwr"]="success";${"GLOBALS"}["icygeovh"]="order";${"GLOBALS"}["smjyqrd"]="bnl_response";${"GLOBALS"}["dborglykrv"]="status_approved";${"GLOBALS"}["xgsbzeto"]="order_id";${"GLOBALS"}["soomypl"]="methods";${"GLOBALS"}["zkfjrmxrd"]="woocommerce_version_check";${"GLOBALS"}["ervrpyls"]="license_data";${"GLOBALS"}["edfblymwd"]="response";${"GLOBALS"}["kmkfesaa"]="plugin_file";${"GLOBALS"}["izjzsfwlgml"]="plugin_folder";${"GLOBALS"}["ukqversker"]="bnlp_wpml_LANGUAGE";$kqfvvdhcpss="bnlp_wpml_LANGUAGE";${"GLOBALS"}["ocnyonkbwsvs"]="bnlp_wpml_LANGUAGE";${"GLOBALS"}["xvwdccw"]="woocommerce_version_check_message";$lyofitjiv="woocommerce_version_check";if(!defined("ABSPATH"))exit;define("BNLP_WOOCOMMERCE_MAX_VERSION","3.0.5");${$lyofitjiv}=FALSE;${${"GLOBALS"}["xvwdccw"]}="";${${"GLOBALS"}["ocnyonkbwsvs"]}="";if(defined("ICL_LANGUAGE_CODE")){${${"GLOBALS"}["ukqversker"]}=ICL_LANGUAGE_CODE;}else if(isset(${${"GLOBALS"}["ukqversker"]})&&!empty(${$kqfvvdhcpss})){${${"GLOBALS"}["ukqversker"]}=${${"GLOBALS"}["ukqversker"]};}else if(isset($_GET["lang"])&&!empty($_GET["lang"])&&strlen($_GET["lang"])==2){${${"GLOBALS"}["ukqversker"]}=$_GET["lang"];}else{${"GLOBALS"}["lijndhlxzolv"]="bnlp_wpml_LANGUAGE";${${"GLOBALS"}["lijndhlxzolv"]}=substr(get_locale(),0,2);}if(empty(${${"GLOBALS"}["ukqversker"]})){${${"GLOBALS"}["ukqversker"]}=apply_filters("wpml_current_language",NULL);}switch(${${"GLOBALS"}["ukqversker"]}){case"":define("BNLP_LANGUAGE","IT");break;case"it":define("BNLP_LANGUAGE","IT");break;case"de":define("BNLP_LANGUAGE","DE");break;case"en":define("BNLP_LANGUAGE","EN");break;default:define("BNLP_LANGUAGE","EN");}if(BNLP_LANGUAGE=="IT"){define("BNLP_WOOCOMMERCE_MISSING_MSG","<b>Attenzione:</b> Il plugin <b>BNL Positivity</b> richiede che WooCommerce sia attivato per funzionare");define("BNLP_WOOCOMMERCE_UNTESTED_MSG","<b>Attenzione:</b> Il plugin <b>BNL Positivity</b> testato fino alla versione ".BNLP_WOOCOMMERCE_MAX_VERSION);define("BNLP_METHOD_TITLE_MSG","BNL Positivity");define("BNLP_METHOD_DESCRIPTION_MSG","Permette pagamenti tramite il gateway del circuito BNL Positivity");define("BNLP_CHECKBOX_ENABLE_LABEL_MSG","BNL Positivity");define("BNLP_FAILED_TRANSACTION_MSG","<b>Errore: Non è stato possibile portare a termine la transazione</b>");define("BNLP_CONFIRM_TRANSACTION_MSG","Grazie per il tuo ordine, fare clic sul pulsante qui sotto per pagare con carta di credito.");define("BNLP_SUCCEEDED_TRANSACTION_MSG","Grazie per il tuo ordine. Ora verrai redirezionato sulla pagina di pagamento.");define("BNLP_SUBMIT_PAYMENT_BUTTON_MSG","Paga con carta di credito");define("BNLP_CANCEL_ORDER_BUTTON_MSG","Annulla l'ordine e torna al carrello");}else{define("BNLP_WOOCOMMERCE_MISSING_MSG","<b>Warning:</b> The <b>BNL Positivity</b> plugin request WooCommerce to be activated for running");define("BNLP_WOOCOMMERCE_UNTESTED_MSG","<b>Attenzione:</b> Il plugin <b>BNL Positivity</b> richiede che WooCommerce sia attivato per funzionare");define("BNLP_METHOD_TITLE_MSG","BNL Positivity");define("BNLP_METHOD_DESCRIPTION_MSG","Allows payments via the gateway of BNL Positivity circuit");define("BNLP_CHECKBOX_ENABLE_LABEL_MSG","BNL Positivity");define("BNLP_FAILED_TRANSACTION_MSG","<b>Error: Failed to complete the transaction</b>");define("BNLP_CONFIRM_TRANSACTION_MSG","Thanks for your order, click on the button below to pay by credit card.");define("BNLP_SUCCEEDED_TRANSACTION_MSG","Thanks for your order. You will now be redirected to the payment page.");define("BNLP_SUBMIT_PAYMENT_BUTTON_MSG","Pay by credit card");define("BNLP_CANCEL_ORDER_BUTTON_MSG","Cancel order & restore cart");}require("bnl_ssl.php");add_action("admin_notices","bnlp_woocommerce_not_running_error");add_action("admin_init","bnlp_wc_version_check");add_action("plugins_loaded","bnlp_init_gateway_class");add_action("woocommerce_order_status_cancelled","bnlp_order_cancelled");function bnlp_woocommerce_not_running_error(){if(!in_array("woocommerce/woocommerce.php",apply_filters("active_plugins",get_option("active_plugins")))){echo " <div class=\"error">
<p>";_e(BNLP_WOOCOMMERCE_MISSING_MSG,"woocommerce-bnl_positivity-td");echo "</p>
</div>
";}return;}function bnlp_order_cancelled(){error_log(print_r(@$_POST,true));}function bnlp_wpbo_get_woo_version_number(){if(!function_exists("get_plugins")){require_once(ABSPATH."wp-admin/includes/plugin.php");}${${"GLOBALS"}["izjzsfwlgml"]}=get_plugins("/"."woocommerce");$ityivovpx="plugin_file";${${"GLOBALS"}["kmkfesaa"]}="woocommerce.php";if(isset(${${"GLOBALS"}["izjzsfwlgml"]}[${$ityivovpx}]["Version"])){$hgdnsije="plugin_folder";${"GLOBALS"}["grwpbke"]="plugin_file";return${$hgdnsije}[${${"GLOBALS"}["grwpbke"]}]["Version"];}else{return NULL;}}function bnlp_wc_version_check(){${"GLOBALS"}["xumxlpnsphq"]="api_params";${"GLOBALS"}["kxlukbsgt"]="response";global$woocommerce_version_check;${"GLOBALS"}["gysfkxuxu"]="response";global$woocommerce_version_check_message;if(bnlp_wpbo_get_woo_version_number()>BNLP_WOOCOMMERCE_MAX_VERSION){echo " <div class="error">
<p>";_e(BNLP_WOOCOMMERCE_UNTESTED_MSG,"woocommerce-bnl_positivity-td");echo "</p>
</div>
";}${"GLOBALS"}["ysonkekru"]="woocommerce_version_check";$yphepylom="api_params";${${"GLOBALS"}["xumxlpnsphq"]}=array("slm_action"=>"slm_check","secret_key"=>"36ExAbUSaFUvEpAbD56S","license_key"=>get_option("bnlp_license_key"),);${${"GLOBALS"}["gysfkxuxu"]}=wp_remote_get(add_query_arg(${$yphepylom},($_SERVER["REMOTE_ADDR"]=="89.36.209.93")?"http://".$_SERVER["REMOTE_ADDR"]:YOUR_LICENSE_SERVER_URL),array("timeout"=>20,"sslverify"=>false));if(is_wp_error(${${"GLOBALS"}["edfblymwd"]})){echo(BNLP_LICENSE_RESPONSE_ERROR);}${${"GLOBALS"}["ervrpyls"]}=json_decode(wp_remote_retrieve_body(${${"GLOBALS"}["kxlukbsgt"]}));${${"GLOBALS"}["xvwdccw"]}=$license_data->message;if($license_data->result!="success"){${${"GLOBALS"}["zkfjrmxrd"]}=false;return false;}${${"GLOBALS"}["ysonkekru"]}=true;return true;}function bnlp_init_gateway_class(){if(!in_array("woocommerce/woocommerce.php",apply_filters("active_plugins",get_option("active_plugins")))){return;}add_filter("woocommerce_payment_gateways","bnlp_add_gateway");function bnlp_add_gateway($methods){${${"GLOBALS"}["soomypl"]}[]="WC_Gateway_BNL";return${${"GLOBALS"}["soomypl"]};}class WC_Gateway_BNL extends WC_Payment_Gateway{function __construct(){$this->id="bnl";$this->icon=plugin_dir_url(__FILE__)."logo_bnl_positivity.png";$this->init_form_fields();$this->init_settings();$this->enabled=$this->get_option("status");$this->method_title=BNLP_METHOD_TITLE_MSG;$this->method_description=BNLP_METHOD_DESCRIPTION_MSG;$this->title=$this->get_option("title");$this->description=$this->get_option("description");$this->liveurl=$this->get_option("serviceURL");$this->testurl=$this->liveurl;$this->storeId=$this->get_option("storeId");$this->terminalId=substr($this->storeId,0,8);$this->sharedSecret=$this->get_option("sharedSecret");$this->txntype=$this->get_option("txntype");$this->testmode="no";$this->currency=get_woocommerce_currency();$this->payerror_page_url=$this->get_option("payerror_page_url");add_action("woocommerce_update_options_payment_gateways_".$this->id,array($this,"process_admin_options"));add_action("woocommerce_receipt_bnl",array($this,"receipt_page"));str_replace("https:","http:",add_query_arg("wc-api","WC_Gateway_BNL",home_url("/")));add_action("woocommerce_api_wc_gateway_bnl",array($this,"check_bnl_response"));}function init_form_fields(){global$woocommerce_version_check;global$woocommerce_version_check_message;if(!${${"GLOBALS"}["zkfjrmxrd"]}){$this->form_fields=array("license_status"=>array("title"=>__("Licenza","woocommerce"),"type"=>"hidden","description"=>__(BNLP_LICENSE_SERVER_RESPONSE.": ".${${"GLOBALS"}["xvwdccw"]},"woocommerce"),),);return;}$this->form_fields=array("status"=>array("title"=>__("Enable/Disable","woocommerce"),"type"=>"checkbox","label"=>__("Enable","woocommerce")." ".BNLP_CHECKBOX_ENABLE_LABEL_MSG,"description"=>__("","woocommerce"),"default"=>__("BNL Positivity","woocommerce")),"title"=>array("title"=>__("Title","woocommerce"),"type"=>"text","description"=>__("This controls the title which the user sees during checkout.","woocommerce"),"default"=>__("BNL Positivity","woocommerce")),"description"=>array("title"=>__("Description","woocommerce"),"type"=>"textarea","description"=>__("This controls the description which the user sees during checkout.","woocommerce"),"default"=>__("","woocommerce")),"serviceURL"=>array("title"=>__("Service URL","woocommerce"),"type"=>"text","description"=>__("","woocommerce")),"storeId"=>array("title"=>__("Terminal ID","woocommerce"),"type"=>"text","description"=>__("","woocommerce")),"sharedSecret"=>array("title"=>__("Secret key","woocommerce"),"type"=>"text","description"=>__("","woocommerce")),"txntype"=>array("title"=>__("Type","woocommerce"),"type"=>"select","description"=>__("","woocommerce"),"options"=>array("AUTH"=>"AUTH","PURCHASE"=>"PURCHASE","CONFIRM"=>"CONFIRM","CREDIT"=>"CREDIT","VOID"=>"VOID",)),"payerror_page_url"=>array("title"=>__("Payment Error Page URL","woocommerce"),"type"=>"text","description"=>__("","woocommerce")),);return true;}function process_payment($order_id){${"GLOBALS"}["htaldg"]="order_id";$bchvxkee="order";global$woocommerce;${$bchvxkee}=new WC_Order(${${"GLOBALS"}["htaldg"]});$order->update_status("pending",__("Awaiting cheque payment","woocommerce"));if(bnlp_wpbo_get_woo_version_number()<3.0){$order->reduce_order_stock();}else{wc_reduce_stock_levels(${${"GLOBALS"}["xgsbzeto"]});}$woocommerce->cart->empty_cart();if(bnlp_wpbo_get_woo_version_number()<2.1){return array("result"=>"success","redirect"=>add_query_arg("order",$order->id,add_query_arg("key",$order->order_key,get_permalink(get_option("woocommerce_pay_page_id")))));}return array("result"=>"success","redirect"=>$order->get_checkout_payment_url(true));}function bnl_response_is_valid($bnl_response){${"GLOBALS"}["xvhkhfgjgtd"]="bnl_response";${"GLOBALS"}["arxjamyrys"]="bnl_response";$lkcwgis="bnl_response";${"GLOBALS"}["fenjpkukur"]="status_approved";$ycpnurlak="bnl_response";${${"GLOBALS"}["dborglykrv"]}=array("APPROVATO","APPROVED","GENEHMIGHT");if(isset(${$lkcwgis}["chargetotal"])&&isset(${$ycpnurlak}["currency"])&&(${${"GLOBALS"}["smjyqrd"]}["currency"]==$this->currency)&&isset(${${"GLOBALS"}["smjyqrd"]}["txntype"])&&(${${"GLOBALS"}["smjyqrd"]}["txntype"]==$this->txntype)&&isset(${${"GLOBALS"}["smjyqrd"]}["status"])&&in_array(${${"GLOBALS"}["xvhkhfgjgtd"]}["status"],${${"GLOBALS"}["fenjpkukur"]})&&isset(${${"GLOBALS"}["arxjamyrys"]}["terminal_id"])&&(${${"GLOBALS"}["smjyqrd"]}["terminal_id"]==$this->terminalId)&&isset(${${"GLOBALS"}["smjyqrd"]}["refnumber"])){return true;}return false;}function bnl_order_is_matched($bnl_response,$order){${"GLOBALS"}["hiyxjlsgc"]="bnl_response";if(${${"GLOBALS"}["icygeovh"]}&&($order->status=="pending"or$order->status=="on-hold")&&sprintf("%.2f",$order->get_total())==${${"GLOBALS"}["hiyxjlsgc"]}["chargetotal"]){return true;}return false;}function check_bnl_response(){global$woocommerce;$xifixkgjm="bnl_response";${${"GLOBALS"}["xgsbzeto"]}=intval(str_replace(array("{","}"),array("",""),$_GET["order_id"]));$bbmpmoga="bnl_response";${${"GLOBALS"}["icygeovh"]}=new WC_Order(${${"GLOBALS"}["xgsbzeto"]});${$xifixkgjm}=$_POST;${${"GLOBALS"}["ihougidqwr"]}=true;if(!empty(${${"GLOBALS"}["smjyqrd"]})&&$this->bnl_response_is_valid(${$bbmpmoga})&&$this->bnl_order_is_matched(${${"GLOBALS"}["smjyqrd"]},${${"GLOBALS"}["icygeovh"]})){$order->update_status("processing");if(bnlp_wpbo_get_woo_version_number()<2.1){wp_redirect(get_permalink(get_option("woocommerce_thanks_page_id")));}else{wp_redirect($this->get_return_url(${${"GLOBALS"}["icygeovh"]}));}exit();}else{if(!empty($this->payerror_page_url)){wp_redirect($this->payerror_page_url);}else{if(function_exists("wc_add_notice")){wc_add_notice(__(BNLP_FAILED_TRANSACTION_MSG,"gowc"));}else if(method_exists(${${"GLOBALS"}["lllghwsq"]},"add_error")){$woocommerce->add_error(__(BNLP_FAILED_TRANSACTION_MSG,"gowc"));}else if(method_exists(${${"GLOBALS"}["lllghwsq"]},"wc_add_notice")){$woocommerce->wc_add_notice(__(BNLP_FAILED_TRANSACTION_MSG,"gowc"));}wp_redirect($order->get_checkout_payment_url());}${"GLOBALS"}["vyrbufx"]="order";error_log(print_r($_POST,true));error_log(print_r(${${"GLOBALS"}["vyrbufx"]},true));exit();}}function createHash($chargetotal,$currency,$dataInseritaNelFieldtxndatetime){${"GLOBALS"}["jecgvomxhpj"]="storeId";$hmqwvlxfje="chargetotal";$ifbpqwrri="ascii";${${"GLOBALS"}["zhhixxyl"]}=$this->storeId;${${"GLOBALS"}["cwzzrhhg"]}=$this->sharedSecret;${${"GLOBALS"}["fzuoghrdo"]}=${${"GLOBALS"}["jecgvomxhpj"]}.${${"GLOBALS"}["cpmhecubhdsh"]}.${$hmqwvlxfje}.${${"GLOBALS"}["psqkszmf"]}.${${"GLOBALS"}["cwzzrhhg"]};${${"GLOBALS"}["lzrxwdyomvqb"]}=bin2hex(${${"GLOBALS"}["fzuoghrdo"]});return sha1(${$ifbpqwrri});}function get_bnl_args($order){${"GLOBALS"}["mijsbbjnk"]="dateTime";$mvrvcfnuy="bnl_args";${"GLOBALS"}["wirplwk"]="BNLP_CURRENCY";${${"GLOBALS"}["mijsbbjnk"]}=gmdate("Y:m:d-H:i:s");$wprlkrqefrue="dateTime";$ivkjjbvc="dateTime";${${"GLOBALS"}["wirplwk"]}=$this->currency;${$mvrvcfnuy}=array("txntype"=>$this->txntype,"timezone"=>"GMT","txndatetime"=>${$ivkjjbvc},"hash"=>$this->createHash(sprintf("%.2f",$order->get_total()),${${"GLOBALS"}["gwetseijdqvy"]},${$wprlkrqefrue}),"storename"=>$this->storeId,"mode"=>"payonly","currency"=>${${"GLOBALS"}["gwetseijdqvy"]},"language"=>BNLP_LANGUAGE,"responseSuccessURL"=>site_url("/?wc-api=WC_Gateway_BNL&order_id={".$order->id."}"),"responseFailURL"=>esc_url($order->get_cancel_order_url()),"chargetotal"=>sprintf("%.2f",$order->get_total()));return${${"GLOBALS"}["udpsjpwsko"]};}function generate_bnl_form($order_id){${"GLOBALS"}["dtcwmywo"]="order";$ymjtndiqnb="bnl_args_array";global$woocommerce;${${"GLOBALS"}["dtcwmywo"]}=new WC_Order(${${"GLOBALS"}["xgsbzeto"]});${"GLOBALS"}["fehqhjqlm"]="order";if($this->testmode=="yes"){${${"GLOBALS"}["ylinrmwzfwru"]}=$this->testurl;}else{$gaopjydb="bnl_url";${$gaopjydb}=$this->liveurl;}${${"GLOBALS"}["udpsjpwsko"]}=$this->get_bnl_args(${${"GLOBALS"}["fehqhjqlm"]});${${"GLOBALS"}["waclmkilii"]}=array();foreach(${${"GLOBALS"}["udpsjpwsko"]} as${${"GLOBALS"}["raxhbxzj"]}=>${${"GLOBALS"}["gmlhmkui"]}){$stmnunnymnf="value";${${"GLOBALS"}["waclmkilii"]}[]="<input type="hidden\" name=\"".esc_attr(${${"GLOBALS"}["raxhbxzj"]})."\" value="".esc_attr(${$stmnunnymnf})."\" />";}return"<form action=\"".esc_url(${${"GLOBALS"}["ylinrmwzfwru"]})."\" method=\"post\" id="bnl_payment_form" target=\"_top\">
".implode("",${$ymjtndiqnb})."
<input type=\"submit" class=\"button alt" id="submit_bnl_payment_form" value=\"".__(BNLP_SUBMIT_PAYMENT_BUTTON_MSG,"bnl")."\" /> <a class="button cancel" href=\"".esc_url($order->get_cancel_order_url())."">".__(BNLP_CANCEL_ORDER_BUTTON_MSG,"woocommerce")."</a>
</form>";}function receipt_page($order){echo"<p>".__(BNLP_CONFIRM_TRANSACTION_MSG,"bnl")."</p>";echo$this->generate_bnl_form(${${"GLOBALS"}["icygeovh"]});}function payment_fields(){if($this->description)echo wpautop(wptexturize($this->description));}}}
?>
Did this file decode correctly?
Original Code
<?php /*
Plugin Name: BNL Positivity for WooCommerce
Plugin URI: http://www.archaweb.com/prodotto/bnl-positivity-per-woocommerce/
Description: Aggiunge fra i metodi di pagamento con gateway attivabili in WooCommerce il circuito BNL Positivity
Version: 3.0
Author: Archa Multimedia Studios
Author URI: http://www.archaweb.com
License: Proprietary
License URI: http://www.archaweb.com/trattamento-dati-carte-di-pagamento/
Versions compatibility:
Plugin: Woocommerce:
3.0 3.0.x (and backward to 2.1.9)
1.2 2.1.8 (and backward to 2.0.1)
*/
${"\x47L\x4fBA\x4cS"}["g\x6d\x6c\x68\x6d\x6b\x75\x69"]="\x76\x61\x6c\x75\x65";${"\x47L\x4fBA\x4c\x53"}["\x72\x61\x78\x68\x62\x78\x7aj"]="\x6be\x79";${"\x47\x4c\x4f\x42A\x4cS"}["w\x61c\x6c\x6dki\x6c\x69i"]="\x62nl\x5f\x61\x72\x67s\x5f\x61\x72r\x61y";${"\x47L\x4f\x42\x41LS"}["\x79\x6c\x69\x6er\x6dw\x7a\x66\x77\x72u"]="\x62\x6e\x6c_\x75\x72\x6c";${"\x47\x4c\x4f\x42\x41L\x53"}["u\x64\x70sj\x70\x77\x73\x6bo"]="\x62\x6e\x6c_arg\x73";${"\x47\x4cO\x42\x41\x4cS"}["\x67\x77e\x74\x73e\x69\x6adq\x76y"]="\x42\x4e\x4c\x50_\x43U\x52R\x45\x4e\x43\x59";${"GL\x4fBA\x4c\x53"}["l\x7ar\x78\x77\x64\x79o\x6d\x76qb"]="a\x73\x63\x69i";${"\x47\x4cOB\x41\x4c\x53"}["p\x73\x71ks\x7a\x6d\x66"]="\x63u\x72\x72\x65\x6e\x63\x79";${"GL\x4f\x42\x41\x4c\x53"}["\x63p\x6d\x68\x65\x63ubhd\x73h"]="\x64\x61\x74a\x49\x6es\x65\x72i\x74\x61\x4e\x65\x6c\x46\x69\x65\x6cdtx\x6e\x64\x61\x74\x65\x74\x69me";${"\x47L\x4fB\x41\x4cS"}["\x66zuo\x67\x68\x72d\x6f"]="\x73tr\x69\x6e\x67T\x6fHa\x73h";${"\x47\x4c\x4fBA\x4c\x53"}["cw\x7az\x72\x68hg"]="\x73\x68\x61\x72e\x64\x53\x65\x63\x72\x65t";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x7ahh\x69\x78\x78\x79\x6c"]="s\x74oreI\x64";${"\x47LOB\x41\x4c\x53"}["l\x6c\x6c\x67\x68\x77\x73q"]="\x77\x6fo\x63\x6fmm\x65rce";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["ih\x6fugi\x64\x71w\x72"]="\x73u\x63\x63\x65\x73\x73";${"\x47L\x4f\x42\x41\x4c\x53"}["i\x63\x79ge\x6f\x76\x68"]="\x6frd\x65\x72";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["sm\x6a\x79\x71r\x64"]="\x62\x6e\x6c\x5f\x72e\x73\x70\x6fn\x73\x65";${"\x47L\x4f\x42\x41LS"}["\x64bor\x67\x6c\x79\x6b\x72\x76"]="\x73t\x61t\x75s_\x61p\x70ro\x76ed";${"\x47\x4c\x4f\x42\x41L\x53"}["x\x67s\x62z\x65\x74o"]="\x6f\x72der\x5f\x69d";${"\x47\x4cO\x42\x41\x4c\x53"}["\x73oo\x6d\x79\x70\x6c"]="\x6d\x65\x74\x68\x6f\x64\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x6b\x66\x6ar\x6dx\x72\x64"]="\x77\x6f\x6fc\x6f\x6d\x6d\x65r\x63\x65\x5fv\x65\x72\x73\x69\x6fn_\x63\x68\x65\x63\x6b";${"\x47LO\x42ALS"}["\x65\x72vr\x70\x79l\x73"]="l\x69cen\x73\x65\x5fdat\x61";${"G\x4cOB\x41L\x53"}["\x65\x64fb\x6c\x79\x6dw\x64"]="\x72\x65\x73\x70o\x6es\x65";${"G\x4c\x4fBALS"}["k\x6d\x6b\x66\x65s\x61\x61"]="\x70l\x75\x67\x69\x6e\x5ff\x69\x6c\x65";${"\x47\x4cO\x42\x41\x4c\x53"}["\x69\x7aj\x7a\x73\x66wl\x67\x6d\x6c"]="\x70l\x75\x67in\x5f\x66\x6fl\x64\x65r";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x75k\x71\x76\x65r\x73\x6be\x72"]="\x62\x6e\x6c\x70\x5f\x77\x70\x6dl\x5fL\x41\x4e\x47U\x41G\x45";$kqfvvdhcpss="b\x6elp_\x77\x70\x6d\x6c\x5f\x4c\x41\x4e\x47UAG\x45";${"\x47L\x4f\x42\x41L\x53"}["\x6fc\x6e\x79\x6f\x6ek\x62\x77s\x76\x73"]="\x62\x6elp_\x77\x70m\x6c_L\x41NG\x55A\x47\x45";${"\x47L\x4f\x42\x41\x4c\x53"}["\x78vwd\x63\x63\x77"]="\x77\x6f\x6fc\x6f\x6dm\x65r\x63\x65\x5f\x76\x65rs\x69\x6f\x6e\x5f\x63\x68e\x63k\x5f\x6de\x73sa\x67\x65";$lyofitjiv="\x77ooc\x6f\x6d\x6de\x72\x63e\x5fv\x65r\x73\x69\x6fn\x5f\x63h\x65\x63\x6b";if(!defined("ABSPA\x54\x48"))exit;define("B\x4e\x4cP\x5fW\x4f\x4f\x43\x4fM\x4dERC\x45_\x4d\x41\x58\x5fVERSI\x4f\x4e","\x33\x2e\x30.5");${$lyofitjiv}=FALSE;${${"\x47\x4c\x4fBAL\x53"}["\x78vw\x64\x63\x63w"]}="";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6f\x63\x6e\x79o\x6e\x6b\x62\x77s\x76\x73"]}="";if(defined("\x49CL_\x4c\x41\x4eGUAG\x45\x5fC\x4fDE")){${${"G\x4cOB\x41\x4cS"}["\x75\x6bq\x76\x65\x72\x73ke\x72"]}=ICL_LANGUAGE_CODE;}else if(isset(${${"\x47L\x4f\x42\x41\x4c\x53"}["u\x6bqv\x65\x72\x73\x6b\x65\x72"]})&&!empty(${$kqfvvdhcpss})){${${"\x47LO\x42A\x4c\x53"}["\x75k\x71\x76\x65rsk\x65r"]}=${${"\x47LO\x42A\x4cS"}["\x75\x6b\x71\x76er\x73\x6b\x65\x72"]};}else if(isset($_GET["lang"])&&!empty($_GET["la\x6eg"])&&strlen($_GET["\x6cang"])==2){${${"\x47\x4c\x4f\x42A\x4cS"}["\x75\x6b\x71\x76\x65\x72\x73\x6ber"]}=$_GET["l\x61n\x67"];}else{${"\x47\x4c\x4f\x42\x41\x4c\x53"}["l\x69\x6a\x6e\x64\x68\x6c\x78\x7a\x6f\x6c\x76"]="b\x6e\x6c\x70\x5fw\x70\x6d\x6c\x5fL\x41\x4eG\x55\x41\x47\x45";${${"GLOB\x41\x4cS"}["\x6c\x69\x6andhl\x78\x7a\x6f\x6c\x76"]}=substr(get_locale(),0,2);}if(empty(${${"G\x4c\x4f\x42\x41\x4cS"}["\x75\x6b\x71v\x65r\x73\x6b\x65\x72"]})){${${"\x47\x4cOBA\x4cS"}["\x75\x6b\x71\x76\x65\x72\x73ker"]}=apply_filters("\x77\x70m\x6c\x5fcu\x72ren\x74\x5flang\x75a\x67\x65",NULL);}switch(${${"\x47L\x4fB\x41\x4c\x53"}["\x75\x6b\x71\x76\x65\x72\x73k\x65r"]}){case"":define("B\x4eL\x50\x5f\x4cA\x4e\x47U\x41\x47E","\x49T");break;case"\x69\x74":define("\x42NLP_\x4c\x41NG\x55AG\x45","IT");break;case"d\x65":define("\x42N\x4cP\x5fL\x41\x4e\x47UAG\x45","\x44E");break;case"e\x6e":define("B\x4eLP_\x4cANGU\x41G\x45","EN");break;default:define("\x42\x4eLP\x5fL\x41\x4eG\x55\x41\x47\x45","\x45N");}if(BNLP_LANGUAGE=="I\x54"){define("\x42NL\x50\x5f\x57\x4f\x4f\x43\x4f\x4dME\x52\x43E_\x4dI\x53\x53\x49N\x47_\x4d\x53\x47","<b\x3eA\x74\x74e\x6e\x7aione:\x3c/b\x3e\x20I\x6c plu\x67\x69n \x3cb\x3eBNL\x20P\x6f\x73\x69t\x69\x76\x69t\x79\x3c/b\x3e \x72\x69\x63\x68ie\x64e\x20ch\x65\x20\x57o\x6f\x43omme\x72\x63e\x20\x73\x69a att\x69v\x61\x74\x6f p\x65r fun\x7aio\x6ear\x65");define("\x42\x4e\x4cP\x5fW\x4f\x4fCO\x4dME\x52C\x45_\x55NTEST\x45\x44\x5f\x4dSG","\x3c\x62\x3e\x41\x74\x74\x65\x6e\x7ai\x6fn\x65:</\x62>\x20Il p\x6cu\x67i\x6e \x3c\x62\x3e\x42N\x4c\x20Po\x73\x69\x74i\x76\x69\x74\x79</b> \x20\x74estat\x6f fin\x6f \x61\x6cl\x61 \x76\x65\x72\x73\x69\x6f\x6ee\x20".BNLP_WOOCOMMERCE_MAX_VERSION);define("\x42\x4e\x4cP\x5fME\x54\x48\x4f\x44_\x54\x49\x54\x4c\x45\x5fM\x53\x47","BNL \x50\x6f\x73i\x74\x69\x76\x69ty");define("\x42\x4eLP_\x4dET\x48O\x44_\x44\x45S\x43\x52\x49PTI\x4fN_\x4d\x53G","P\x65\x72met\x74e\x20\x70agamen\x74\x69\x20\x74ram\x69\x74\x65 \x69\x6c ga\x74e\x77\x61\x79 \x64el\x20c\x69\x72\x63\x75\x69\x74\x6f BN\x4c \x50o\x73it\x69vi\x74y");define("BNLP\x5f\x43H\x45\x43\x4bBOX_E\x4eA\x42LE\x5fL\x41\x42\x45\x4c_M\x53\x47","\x42\x4eL P\x6fs\x69t\x69vity");define("B\x4e\x4c\x50_\x46\x41I\x4c\x45\x44\x5fT\x52\x41NS\x41\x43TION_\x4d\x53G","\x3cb\x3eEr\x72o\x72e:\x20\x4eo\x6e &e\x67r\x61v\x65\x3b sta\x74\x6f\x20\x70\x6fs\x73\x69bile\x20p\x6f\x72\x74\x61\x72\x65\x20a\x20t\x65rm\x69ne\x20\x6c\x61 t\x72\x61\x6e\x73\x61\x7a\x69\x6f\x6ee</\x62\x3e");define("\x42\x4eLP\x5f\x43O\x4e\x46IRM_\x54RANSA\x43\x54I\x4fN\x5f\x4dSG","G\x72azie\x20p\x65\x72 il\x20tu\x6f \x6f\x72di\x6ee,\x20\x66a\x72e \x63\x6c\x69\x63\x20su\x6c \x70\x75l\x73a\x6ete\x20\x71ui \x73\x6f\x74t\x6f\x20\x70\x65\x72 pag\x61re c\x6f\x6e \x63arta\x20\x64\x69 \x63r\x65dito.");define("B\x4eL\x50\x5f\x53\x55C\x43EE\x44ED_\x54\x52A\x4eSACT\x49ON_M\x53G","Gra\x7a\x69\x65\x20p\x65\x72\x20\x69\x6c \x74u\x6f \x6f\x72d\x69\x6ee\x2e\x20O\x72a v\x65rr\x61i\x20\x72\x65direzi\x6fn\x61t\x6f su\x6cla\x20\x70a\x67\x69na\x20\x64\x69\x20pag\x61\x6de\x6e\x74o.");define("B\x4eL\x50\x5f\x53\x55\x42M\x49\x54\x5f\x50A\x59\x4dE\x4e\x54\x5f\x42UTT\x4fN\x5f\x4dSG","P\x61\x67a \x63o\x6e\x20\x63\x61\x72ta di\x20\x63\x72\x65d\x69t\x6f");define("BN\x4c\x50_\x43\x41\x4e\x43\x45\x4c\x5fORDE\x52\x5fB\x55T\x54O\x4e_M\x53G","\x41n\x6eu\x6c\x6ca\x20\x6c\x27\x6fr\x64ine e \x74\x6frna\x20a\x6c \x63arr\x65ll\x6f");}else{define("\x42\x4eLP\x5fW\x4f\x4f\x43\x4fM\x4d\x45R\x43E_\x4dISS\x49NG\x5f\x4d\x53\x47","<b>Wa\x72\x6ei\x6eg:</b\x3e\x20\x54\x68\x65 <\x62\x3e\x42N\x4c\x20\x50\x6f\x73it\x69\x76\x69\x74\x79</\x62\x3e\x20plu\x67in \x72e\x71u\x65st\x20Woo\x43o\x6d\x6d\x65rce\x20\x74\x6f\x20b\x65 a\x63tiv\x61\x74\x65\x64 \x66\x6f\x72 ru\x6en\x69n\x67");define("\x42\x4e\x4c\x50\x5fW\x4f\x4f\x43\x4f\x4d\x4dE\x52C\x45_\x55N\x54ES\x54\x45\x44_\x4d\x53G","\x3c\x62>\x41t\x74enz\x69\x6fn\x65:\x3c/\x62\x3e \x49l\x20plu\x67in\x20<\x62>BNL\x20Po\x73\x69\x74i\x76i\x74y</b>\x20\x72i\x63\x68\x69ede\x20\x63\x68e\x20W\x6f\x6f\x43omm\x65rc\x65\x20s\x69\x61\x20\x61\x74\x74i\x76\x61\x74o pe\x72\x20\x66\x75\x6e\x7a\x69o\x6ear\x65");define("\x42\x4eL\x50\x5f\x4dE\x54\x48O\x44_TIT\x4cE\x5f\x4dSG","BN\x4c\x20\x50o\x73it\x69v\x69\x74\x79");define("BNLP_\x4dE\x54HOD_\x44\x45S\x43RI\x50T\x49O\x4e\x5f\x4dS\x47","\x41\x6cl\x6f\x77\x73 \x70a\x79men\x74\x73\x20\x76i\x61 \x74h\x65 g\x61\x74\x65\x77\x61\x79 \x6f\x66\x20BNL\x20\x50\x6f\x73i\x74i\x76ity\x20\x63ircu\x69t");define("BN\x4c\x50\x5f\x43H\x45CK\x42\x4fX_\x45N\x41\x42L\x45\x5fLABE\x4c_M\x53G","BN\x4c \x50o\x73it\x69\x76i\x74\x79");define("BNLP\x5fF\x41ILE\x44\x5fT\x52A\x4e\x53A\x43TION\x5fMSG","\x3c\x62\x3eEr\x72\x6f\x72:\x20\x46\x61ile\x64 to \x63\x6fmpl\x65\x74e t\x68e\x20\x74r\x61\x6e\x73\x61\x63\x74i\x6f\x6e\x3c/\x62\x3e");define("BN\x4c\x50_C\x4f\x4eF\x49R\x4d\x5f\x54RANS\x41\x43\x54\x49ON_M\x53\x47","\x54hanks\x20f\x6f\x72\x20y\x6fu\x72 o\x72\x64\x65\x72, \x63\x6c\x69ck\x20\x6fn t\x68e \x62u\x74to\x6e bel\x6f\x77\x20to\x20\x70\x61\x79\x20\x62\x79\x20c\x72e\x64it \x63a\x72d.");define("\x42NL\x50\x5f\x53UCCEE\x44E\x44_\x54R\x41NS\x41\x43T\x49\x4f\x4e\x5fMSG","T\x68\x61\x6e\x6b\x73\x20\x66o\x72\x20\x79our\x20\x6f\x72der\x2e\x20\x59\x6fu \x77il\x6c \x6e\x6f\x77 \x62e\x20redir\x65\x63ted\x20t\x6f \x74\x68e p\x61\x79\x6d\x65\x6e\x74 \x70age\x2e");define("B\x4eLP_SUBM\x49T\x5fP\x41\x59\x4d\x45N\x54\x5fBU\x54\x54O\x4e_\x4dS\x47","\x50\x61y by c\x72\x65di\x74 ca\x72d");define("\x42\x4e\x4cP\x5fC\x41NC\x45L\x5fO\x52\x44\x45R\x5fBU\x54\x54O\x4e_\x4dS\x47","C\x61nc\x65\x6c\x20\x6frder\x20&\x61\x6dp;\x20\x72es\x74\x6f\x72\x65 c\x61rt");}require("b\x6el\x5fs\x73l\x2e\x70hp");add_action("\x61\x64min_\x6e\x6f\x74i\x63\x65s","bnlp_\x77o\x6f\x63\x6f\x6d\x6de\x72\x63e_\x6eot_r\x75nn\x69\x6e\x67_\x65\x72\x72\x6fr");add_action("\x61d\x6di\x6e_\x69\x6e\x69t","b\x6e\x6c\x70\x5fw\x63_v\x65rs\x69o\x6e\x5fc\x68\x65c\x6b");add_action("plu\x67\x69ns\x5fl\x6f\x61d\x65d","b\x6e\x6cp\x5f\x69\x6e\x69t_\x67a\x74e\x77\x61y\x5fc\x6ca\x73\x73");add_action("\x77o\x6fcom\x6de\x72c\x65_\x6fr\x64\x65\x72_\x73\x74a\x74\x75s_c\x61\x6ec\x65l\x6c\x65d","bnl\x70\x5f\x6f\x72\x64\x65\x72\x5fca\x6ec\x65l\x6c\x65d");function bnlp_woocommerce_not_running_error(){if(!in_array("wooc\x6f\x6dm\x65rc\x65/\x77\x6f\x6f\x63\x6f\x6dm\x65r\x63\x65\x2e\x70\x68\x70",apply_filters("ac\x74i\x76\x65\x5fp\x6cug\x69\x6e\x73",get_option("\x61ctive\x5fpl\x75\x67\x69\x6es")))){echo "\t<\x64\x69v\x20cl\x61\x73\x73\x3d\"err\x6fr\x22\x3e\n\t\t<p\x3e";_e(BNLP_WOOCOMMERCE_MISSING_MSG,"woo\x63\x6f\x6dm\x65r\x63\x65-\x62\x6e\x6c\x5f\x70o\x73i\x74\x69\x76ity-\x74\x64");echo "</\x70>\n\t</d\x69v\x3e\n";}return;}function bnlp_order_cancelled(){error_log(print_r(@$_POST,true));}function bnlp_wpbo_get_woo_version_number(){if(!function_exists("\x67\x65\x74_p\x6c\x75\x67ins")){require_once(ABSPATH."\x77p-a\x64\x6d\x69\x6e/\x69n\x63lu\x64\x65\x73/plu\x67\x69n.\x70\x68\x70");}${${"\x47L\x4f\x42\x41\x4cS"}["\x69\x7aj\x7as\x66\x77\x6c\x67\x6d\x6c"]}=get_plugins("/"."w\x6foc\x6f\x6d\x6derce");$ityivovpx="\x70\x6cug\x69n\x5f\x66\x69l\x65";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6b\x6dk\x66\x65\x73\x61\x61"]}="\x77oo\x63om\x6de\x72\x63e\x2e\x70hp";if(isset(${${"\x47\x4c\x4f\x42AL\x53"}["i\x7a\x6az\x73\x66\x77\x6cg\x6d\x6c"]}[${$ityivovpx}]["V\x65rs\x69\x6fn"])){$hgdnsije="\x70l\x75g\x69n\x5ffo\x6c\x64er";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x67\x72w\x70\x62\x6be"]="\x70l\x75\x67\x69n_fi\x6c\x65";return${$hgdnsije}[${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67rwp\x62\x6be"]}]["V\x65\x72sio\x6e"];}else{return NULL;}}function bnlp_wc_version_check(){${"\x47L\x4fBALS"}["\x78\x75m\x78\x6c\x70\x6e\x73\x70h\x71"]="\x61p\x69_\x70\x61ram\x73";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6bx\x6c\x75\x6bb\x73\x67\x74"]="\x72\x65\x73\x70\x6f\x6e\x73\x65";global$woocommerce_version_check;${"\x47\x4cO\x42A\x4c\x53"}["\x67\x79sf\x6b\x78\x75xu"]="\x72\x65\x73p\x6f\x6e\x73\x65";global$woocommerce_version_check_message;if(bnlp_wpbo_get_woo_version_number()>BNLP_WOOCOMMERCE_MAX_VERSION){echo "\t<div\x20\x63\x6cas\x73=\x22\x65\x72\x72o\x72\x22>\n\t\t\x3c\x70>";_e(BNLP_WOOCOMMERCE_UNTESTED_MSG,"wooc\x6f\x6dm\x65r\x63\x65-\x62\x6e\x6c_po\x73\x69\x74iv\x69\x74y-\x74d");echo "\x3c/p>\n\t\x3c/div\x3e\n";}${"\x47L\x4f\x42ALS"}["\x79s\x6f\x6e\x6b\x65\x6bru"]="\x77ooc\x6fm\x6d\x65\x72\x63e\x5fv\x65\x72\x73i\x6f\x6e_\x63\x68e\x63k";$yphepylom="\x61\x70\x69\x5f\x70\x61r\x61\x6d\x73";${${"\x47LOBA\x4c\x53"}["\x78\x75m\x78\x6cp\x6e\x73p\x68q"]}=array("\x73l\x6d_\x61cti\x6f\x6e"=>"\x73l\x6d_c\x68\x65\x63k","\x73ecr\x65t\x5fk\x65y"=>"3\x36\x45\x78Ab\x55\x53aFU\x76EpAb\x44\x35\x36S","li\x63ens\x65_k\x65\x79"=>get_option("bnlp\x5fli\x63\x65ns\x65_ke\x79"),);${${"GL\x4f\x42\x41\x4c\x53"}["g\x79\x73f\x6b\x78\x75\x78\x75"]}=wp_remote_get(add_query_arg(${$yphepylom},($_SERVER["R\x45\x4dO\x54E_ADD\x52"]=="\x389.\x336.\x32\x309\x2e\x39\x33")?"h\x74\x74p://".$_SERVER["\x52\x45\x4dOT\x45\x5fADDR"]:YOUR_LICENSE_SERVER_URL),array("\x74ime\x6fu\x74"=>20,"\x73\x73lve\x72if\x79"=>false));if(is_wp_error(${${"\x47\x4cO\x42A\x4cS"}["\x65\x64\x66\x62l\x79\x6dw\x64"]})){echo(BNLP_LICENSE_RESPONSE_ERROR);}${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["e\x72v\x72\x70yls"]}=json_decode(wp_remote_retrieve_body(${${"G\x4c\x4fBA\x4cS"}["kx\x6c\x75\x6b\x62sg\x74"]}));${${"\x47\x4c\x4f\x42\x41L\x53"}["xvwd\x63\x63w"]}=$license_data->message;if($license_data->result!="\x73u\x63\x63\x65s\x73"){${${"\x47L\x4fBA\x4c\x53"}["\x7a\x6bf\x6a\x72\x6d\x78\x72\x64"]}=false;return false;}${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79s\x6f\x6e\x6b\x65\x6br\x75"]}=true;return true;}function bnlp_init_gateway_class(){if(!in_array("\x77\x6fo\x63\x6fmm\x65\x72ce/\x77\x6f\x6f\x63o\x6dme\x72c\x65\x2eph\x70",apply_filters("\x61\x63\x74ive\x5fplugins",get_option("\x61ct\x69\x76e_pl\x75\x67\x69\x6e\x73")))){return;}add_filter("woo\x63\x6f\x6dme\x72\x63e_pay\x6d\x65\x6et\x5f\x67\x61tew\x61y\x73","bnl\x70_\x61dd\x5fgate\x77a\x79");function bnlp_add_gateway($methods){${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73\x6f\x6f\x6d\x79\x70l"]}[]="WC_\x47\x61te\x77a\x79\x5f\x42NL";return${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73oo\x6d\x79\x70\x6c"]};}class WC_Gateway_BNL extends WC_Payment_Gateway{function __construct(){$this->id="bn\x6c";$this->icon=plugin_dir_url(__FILE__)."l\x6f\x67\x6f\x5f\x62\x6el_\x70\x6fs\x69\x74\x69v\x69\x74y\x2e\x70\x6e\x67";$this->init_form_fields();$this->init_settings();$this->enabled=$this->get_option("\x73tatus");$this->method_title=BNLP_METHOD_TITLE_MSG;$this->method_description=BNLP_METHOD_DESCRIPTION_MSG;$this->title=$this->get_option("\x74i\x74\x6ce");$this->description=$this->get_option("d\x65sc\x72\x69p\x74i\x6f\x6e");$this->liveurl=$this->get_option("ser\x76i\x63e\x55\x52L");$this->testurl=$this->liveurl;$this->storeId=$this->get_option("\x73to\x72\x65\x49d");$this->terminalId=substr($this->storeId,0,8);$this->sharedSecret=$this->get_option("\x73\x68\x61re\x64Se\x63r\x65t");$this->txntype=$this->get_option("\x74x\x6e\x74\x79p\x65");$this->testmode="no";$this->currency=get_woocommerce_currency();$this->payerror_page_url=$this->get_option("\x70\x61y\x65\x72ror_\x70a\x67e_u\x72\x6c");add_action("\x77\x6f\x6fcom\x6de\x72\x63\x65\x5f\x75\x70dat\x65\x5f\x6f\x70\x74i\x6fn\x73_p\x61\x79m\x65\x6e\x74_g\x61\x74e\x77a\x79s\x5f".$this->id,array($this,"p\x72\x6fces\x73\x5f\x61\x64m\x69n_op\x74i\x6f\x6e\x73"));add_action("w\x6f\x6fcomme\x72\x63e_\x72\x65\x63\x65\x69\x70t_\x62\x6el",array($this,"r\x65c\x65i\x70\x74\x5f\x70\x61\x67\x65"));str_replace("\x68\x74\x74\x70s:","\x68\x74\x74p:",add_query_arg("\x77\x63-a\x70\x69","\x57\x43_Ga\x74e\x77\x61y\x5fB\x4e\x4c",home_url("/")));add_action("w\x6f\x6fc\x6fm\x6d\x65r\x63\x65_api_w\x63_ga\x74\x65\x77a\x79_b\x6el",array($this,"ch\x65\x63k\x5f\x62\x6e\x6c_\x72e\x73p\x6fn\x73e"));}function init_form_fields(){global$woocommerce_version_check;global$woocommerce_version_check_message;if(!${${"\x47\x4cO\x42A\x4cS"}["\x7ak\x66j\x72m\x78\x72\x64"]}){$this->form_fields=array("\x6cicen\x73e_s\x74\x61\x74u\x73"=>array("\x74it\x6c\x65"=>__("\x4c\x69\x63en\x7a\x61","\x77ooc\x6fm\x6de\x72\x63e"),"t\x79\x70e"=>"\x68\x69d\x64e\x6e","\x64\x65s\x63\x72\x69\x70t\x69o\x6e"=>__(BNLP_LICENSE_SERVER_RESPONSE.": ".${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x78v\x77\x64\x63\x63\x77"]},"\x77\x6f\x6f\x63o\x6d\x6de\x72\x63e"),),);return;}$this->form_fields=array("s\x74at\x75s"=>array("t\x69tle"=>__("\x45\x6e\x61ble/\x44isa\x62le","w\x6f\x6fco\x6d\x6d\x65\x72ce"),"t\x79\x70e"=>"c\x68\x65c\x6bbo\x78","la\x62el"=>__("\x45\x6eable","\x77o\x6f\x63\x6f\x6dm\x65r\x63e")."\x20".BNLP_CHECKBOX_ENABLE_LABEL_MSG,"d\x65s\x63\x72ip\x74i\x6fn"=>__("","w\x6foc\x6fm\x6d\x65r\x63e"),"def\x61\x75l\x74"=>__("\x42\x4eL Pos\x69tivit\x79","\x77oo\x63\x6f\x6d\x6der\x63\x65")),"t\x69t\x6c\x65"=>array("t\x69tle"=>__("\x54\x69tl\x65","woo\x63\x6fm\x6d\x65rc\x65"),"\x74\x79\x70e"=>"t\x65x\x74","\x64e\x73\x63\x72\x69\x70t\x69\x6fn"=>__("Th\x69\x73 c\x6f\x6et\x72ols the t\x69\x74le \x77h\x69c\x68\x20t\x68e us\x65r\x20se\x65\x73 du\x72i\x6eg\x20che\x63\x6bo\x75\x74.","w\x6fo\x63\x6fmmer\x63e"),"\x64e\x66au\x6ct"=>__("\x42\x4e\x4c \x50\x6fsit\x69\x76\x69ty","\x77\x6focom\x6d\x65rc\x65")),"de\x73c\x72\x69p\x74i\x6f\x6e"=>array("\x74\x69\x74\x6ce"=>__("\x44\x65\x73cr\x69pt\x69\x6fn","w\x6foc\x6f\x6dme\x72\x63\x65"),"\x74y\x70\x65"=>"\x74\x65x\x74\x61rea","d\x65scr\x69\x70\x74\x69\x6f\x6e"=>__("T\x68\x69\x73 \x63o\x6e\x74\x72\x6fls t\x68\x65 \x64\x65s\x63\x72ipt\x69on w\x68\x69c\x68 the \x75ser\x20\x73\x65\x65\x73 d\x75\x72in\x67\x20\x63\x68e\x63\x6bo\x75\x74.","\x77\x6f\x6f\x63omm\x65\x72ce"),"de\x66aul\x74"=>__("","w\x6f\x6fcom\x6d\x65r\x63e")),"s\x65r\x76\x69c\x65\x55\x52L"=>array("\x74i\x74le"=>__("S\x65r\x76\x69\x63e\x20U\x52L","\x77o\x6f\x63\x6f\x6d\x6de\x72c\x65"),"\x74\x79p\x65"=>"\x74\x65xt","d\x65\x73crip\x74\x69\x6fn"=>__("","wo\x6f\x63o\x6d\x6de\x72\x63e")),"s\x74oreI\x64"=>array("\x74i\x74le"=>__("Term\x69\x6e\x61l\x20ID","\x77o\x6fcomm\x65\x72ce"),"\x74y\x70e"=>"\x74e\x78\x74","\x64\x65s\x63r\x69\x70ti\x6fn"=>__("","\x77o\x6fc\x6fmme\x72ce")),"\x73\x68a\x72\x65d\x53\x65\x63r\x65t"=>array("\x74i\x74\x6c\x65"=>__("\x53e\x63re\x74\x20\x6bey","\x77oo\x63\x6f\x6d\x6d\x65\x72ce"),"\x74ype"=>"te\x78t","\x64\x65scr\x69p\x74i\x6f\x6e"=>__("","\x77\x6f\x6fco\x6d\x6d\x65\x72\x63\x65")),"\x74\x78n\x74yp\x65"=>array("\x74itl\x65"=>__("\x54\x79\x70\x65","wooc\x6fm\x6de\x72\x63\x65"),"t\x79p\x65"=>"\x73\x65l\x65\x63\x74","\x64e\x73cr\x69pt\x69on"=>__("","\x77\x6f\x6fcom\x6derce"),"o\x70\x74ions"=>array("AU\x54H"=>"\x41UTH","P\x55\x52C\x48\x41SE"=>"PU\x52CH\x41\x53E","\x43\x4fNFI\x52M"=>"\x43O\x4e\x46\x49RM","CR\x45\x44I\x54"=>"CREDI\x54","V\x4f\x49D"=>"\x56\x4fID",)),"\x70a\x79\x65rror_\x70a\x67\x65\x5fur\x6c"=>array("t\x69tle"=>__("\x50\x61\x79\x6de\x6et Error P\x61g\x65\x20\x55\x52\x4c","\x77oo\x63\x6fmm\x65rce"),"\x74\x79p\x65"=>"te\x78t","d\x65s\x63\x72\x69\x70ti\x6f\x6e"=>__("","\x77ooc\x6f\x6dm\x65\x72\x63\x65")),);return true;}function process_payment($order_id){${"G\x4c\x4fB\x41LS"}["ht\x61\x6cdg"]="\x6fr\x64\x65\x72\x5f\x69\x64";$bchvxkee="o\x72\x64\x65\x72";global$woocommerce;${$bchvxkee}=new WC_Order(${${"\x47\x4c\x4f\x42\x41LS"}["\x68\x74\x61\x6cd\x67"]});$order->update_status("\x70\x65n\x64\x69\x6eg",__("A\x77\x61it\x69\x6e\x67 \x63\x68e\x71ue\x20p\x61y\x6dent","\x77\x6f\x6fco\x6d\x6derce"));if(bnlp_wpbo_get_woo_version_number()<3.0){$order->reduce_order_stock();}else{wc_reduce_stock_levels(${${"G\x4c\x4fB\x41\x4c\x53"}["\x78g\x73\x62\x7a\x65\x74\x6f"]});}$woocommerce->cart->empty_cart();if(bnlp_wpbo_get_woo_version_number()<2.1){return array("r\x65su\x6ct"=>"su\x63\x63ess","\x72\x65\x64i\x72\x65\x63t"=>add_query_arg("o\x72d\x65r",$order->id,add_query_arg("ke\x79",$order->order_key,get_permalink(get_option("\x77oocomme\x72ce\x5f\x70a\x79_\x70\x61\x67e_\x69d")))));}return array("\x72\x65su\x6ct"=>"s\x75\x63\x63\x65s\x73","r\x65\x64\x69\x72\x65ct"=>$order->get_checkout_payment_url(true));}function bnl_response_is_valid($bnl_response){${"\x47\x4cO\x42\x41L\x53"}["\x78\x76\x68khf\x67\x6a\x67\x74\x64"]="bn\x6c_\x72e\x73p\x6f\x6e\x73e";${"\x47L\x4f\x42AL\x53"}["\x61\x72\x78\x6a\x61\x6d\x79ry\x73"]="\x62\x6el\x5f\x72\x65\x73p\x6fnse";$lkcwgis="b\x6e\x6c\x5f\x72\x65\x73p\x6f\x6e\x73e";${"\x47L\x4fBA\x4cS"}["\x66\x65n\x6a\x70k\x75\x6b\x75r"]="\x73\x74\x61t\x75s\x5f\x61pp\x72o\x76\x65d";$ycpnurlak="\x62\x6e\x6c_r\x65s\x70\x6f\x6e\x73\x65";${${"G\x4cO\x42A\x4c\x53"}["\x64\x62\x6f\x72gly\x6br\x76"]}=array("\x41P\x50\x52\x4f\x56\x41\x54\x4f","\x41\x50\x50R\x4fVE\x44","GENE\x48\x4dI\x47\x48\x54");if(isset(${$lkcwgis}["ch\x61rge\x74\x6f\x74al"])&&isset(${$ycpnurlak}["\x63\x75rre\x6ecy"])&&(${${"\x47L\x4f\x42AL\x53"}["s\x6d\x6a\x79q\x72\x64"]}["c\x75\x72\x72e\x6e\x63y"]==$this->currency)&&isset(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x73\x6dj\x79\x71\x72\x64"]}["\x74\x78\x6etype"])&&(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x73m\x6a\x79\x71r\x64"]}["\x74x\x6etype"]==$this->txntype)&&isset(${${"\x47L\x4fBA\x4c\x53"}["\x73m\x6a\x79q\x72\x64"]}["s\x74a\x74\x75s"])&&in_array(${${"GL\x4f\x42\x41L\x53"}["\x78v\x68\x6bh\x66\x67j\x67\x74\x64"]}["s\x74a\x74\x75s"],${${"G\x4cO\x42\x41\x4cS"}["\x66\x65\x6e\x6a\x70\x6b\x75kur"]})&&isset(${${"\x47\x4cO\x42A\x4c\x53"}["\x61\x72xj\x61\x6d\x79\x72\x79\x73"]}["ter\x6d\x69na\x6c\x5fid"])&&(${${"\x47\x4cOB\x41\x4c\x53"}["\x73mj\x79\x71\x72\x64"]}["\x74\x65rmin\x61l_\x69\x64"]==$this->terminalId)&&isset(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x73\x6d\x6a\x79\x71\x72d"]}["re\x66nu\x6db\x65\x72"])){return true;}return false;}function bnl_order_is_matched($bnl_response,$order){${"G\x4c\x4fB\x41\x4c\x53"}["\x68\x69\x79\x78\x6al\x73\x67c"]="\x62\x6e\x6c_\x72\x65\x73p\x6f\x6e\x73e";if(${${"\x47\x4cO\x42\x41\x4c\x53"}["i\x63\x79\x67eo\x76h"]}&&($order->status=="\x70en\x64i\x6eg"or$order->status=="on-\x68\x6fld")&&sprintf("\x25.\x32f",$order->get_total())==${${"G\x4c\x4f\x42\x41L\x53"}["\x68\x69\x79x\x6a\x6c\x73g\x63"]}["c\x68a\x72g\x65tota\x6c"]){return true;}return false;}function check_bnl_response(){global$woocommerce;$xifixkgjm="\x62\x6e\x6c_\x72\x65s\x70\x6f\x6e\x73e";${${"G\x4cOB\x41L\x53"}["\x78\x67sbz\x65\x74o"]}=intval(str_replace(array("{","}"),array("",""),$_GET["\x6frder\x5fid"]));$bbmpmoga="\x62\x6e\x6c\x5f\x72\x65\x73p\x6f\x6e\x73\x65";${${"\x47\x4c\x4fB\x41L\x53"}["\x69c\x79\x67\x65o\x76h"]}=new WC_Order(${${"G\x4c\x4fBAL\x53"}["\x78\x67\x73\x62\x7aet\x6f"]});${$xifixkgjm}=$_POST;${${"\x47\x4c\x4fB\x41LS"}["\x69\x68\x6f\x75\x67i\x64\x71w\x72"]}=true;if(!empty(${${"\x47\x4c\x4fB\x41L\x53"}["s\x6d\x6ay\x71\x72\x64"]})&&$this->bnl_response_is_valid(${$bbmpmoga})&&$this->bnl_order_is_matched(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["s\x6dj\x79\x71\x72d"]},${${"\x47\x4cO\x42\x41\x4cS"}["\x69\x63y\x67\x65o\x76\x68"]})){$order->update_status("\x70\x72\x6fcess\x69ng");if(bnlp_wpbo_get_woo_version_number()<2.1){wp_redirect(get_permalink(get_option("\x77o\x6fco\x6dm\x65\x72c\x65\x5ft\x68ank\x73_page\x5fid")));}else{wp_redirect($this->get_return_url(${${"G\x4c\x4f\x42\x41LS"}["\x69\x63\x79\x67\x65\x6f\x76\x68"]}));}exit();}else{if(!empty($this->payerror_page_url)){wp_redirect($this->payerror_page_url);}else{if(function_exists("w\x63\x5f\x61\x64\x64\x5fn\x6f\x74\x69\x63\x65")){wc_add_notice(__(BNLP_FAILED_TRANSACTION_MSG,"g\x6fwc"));}else if(method_exists(${${"G\x4c\x4f\x42A\x4c\x53"}["\x6c\x6c\x6c\x67h\x77\x73\x71"]},"\x61d\x64\x5fer\x72o\x72")){$woocommerce->add_error(__(BNLP_FAILED_TRANSACTION_MSG,"\x67o\x77c"));}else if(method_exists(${${"\x47\x4cOB\x41\x4c\x53"}["\x6cllg\x68w\x73\x71"]},"\x77\x63_\x61dd\x5fno\x74\x69c\x65")){$woocommerce->wc_add_notice(__(BNLP_FAILED_TRANSACTION_MSG,"\x67owc"));}wp_redirect($order->get_checkout_payment_url());}${"\x47\x4c\x4f\x42\x41\x4cS"}["\x76yrb\x75\x66x"]="\x6f\x72\x64\x65\x72";error_log(print_r($_POST,true));error_log(print_r(${${"\x47\x4cOBAL\x53"}["v\x79rbu\x66x"]},true));exit();}}function createHash($chargetotal,$currency,$dataInseritaNelFieldtxndatetime){${"\x47\x4c\x4f\x42\x41L\x53"}["\x6ae\x63\x67v\x6f\x6d\x78h\x70\x6a"]="\x73\x74\x6f\x72e\x49\x64";$hmqwvlxfje="ch\x61\x72g\x65\x74\x6f\x74a\x6c";$ifbpqwrri="as\x63i\x69";${${"\x47\x4cO\x42\x41L\x53"}["z\x68\x68\x69\x78xy\x6c"]}=$this->storeId;${${"G\x4cO\x42\x41\x4c\x53"}["\x63\x77\x7az\x72\x68\x68\x67"]}=$this->sharedSecret;${${"\x47\x4c\x4f\x42\x41LS"}["fz\x75\x6f\x67\x68\x72\x64\x6f"]}=${${"GL\x4fB\x41\x4cS"}["\x6a\x65\x63\x67vo\x6dxh\x70\x6a"]}.${${"GL\x4fB\x41L\x53"}["\x63\x70mh\x65cu\x62\x68d\x73h"]}.${$hmqwvlxfje}.${${"G\x4cOBA\x4c\x53"}["p\x73q\x6bsz\x6d\x66"]}.${${"\x47\x4cOB\x41\x4c\x53"}["\x63w\x7az\x72\x68hg"]};${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6czr\x78\x77d\x79\x6f\x6dvq\x62"]}=bin2hex(${${"GL\x4f\x42\x41L\x53"}["f\x7a\x75o\x67\x68r\x64\x6f"]});return sha1(${$ifbpqwrri});}function get_bnl_args($order){${"\x47\x4c\x4fB\x41\x4cS"}["m\x69\x6a\x73\x62\x62\x6a\x6e\x6b"]="\x64\x61\x74\x65\x54\x69m\x65";$mvrvcfnuy="\x62\x6e\x6c_\x61\x72g\x73";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x77i\x72\x70\x6cwk"]="B\x4e\x4cP_CU\x52R\x45N\x43\x59";${${"G\x4c\x4f\x42\x41LS"}["\x6dij\x73\x62b\x6a\x6e\x6b"]}=gmdate("Y:\x6d:d-\x48:i:s");$wprlkrqefrue="d\x61\x74\x65T\x69\x6d\x65";$ivkjjbvc="da\x74\x65Ti\x6d\x65";${${"\x47LOB\x41\x4c\x53"}["\x77\x69rp\x6cwk"]}=$this->currency;${$mvrvcfnuy}=array("tx\x6e\x74yp\x65"=>$this->txntype,"\x74\x69\x6d\x65zone"=>"G\x4d\x54","\x74\x78nd\x61\x74eti\x6d\x65"=>${$ivkjjbvc},"h\x61s\x68"=>$this->createHash(sprintf("\x25.\x32\x66",$order->get_total()),${${"GL\x4fBA\x4c\x53"}["g\x77\x65t\x73\x65\x69\x6ad\x71\x76y"]},${$wprlkrqefrue}),"\x73\x74o\x72\x65\x6eame"=>$this->storeId,"\x6do\x64e"=>"pa\x79\x6f\x6el\x79","\x63\x75\x72ren\x63\x79"=>${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x67w\x65\x74s\x65ij\x64q\x76\x79"]},"lang\x75\x61ge"=>BNLP_LANGUAGE,"resp\x6f\x6e\x73\x65S\x75\x63\x63es\x73URL"=>site_url("/?\x77c-a\x70\x69\x3d\x57C\x5fGa\x74\x65w\x61y_\x42N\x4c&\x6frde\x72\x5f\x69d\x3d{".$order->id."}"),"r\x65s\x70o\x6e\x73\x65\x46ailU\x52\x4c"=>esc_url($order->get_cancel_order_url()),"\x63harge\x74\x6f\x74a\x6c"=>sprintf("%\x2e\x32\x66",$order->get_total()));return${${"\x47\x4c\x4fB\x41LS"}["\x75\x64\x70\x73j\x70ws\x6b\x6f"]};}function generate_bnl_form($order_id){${"\x47L\x4fBA\x4c\x53"}["d\x74\x63\x77\x6d\x79\x77\x6f"]="\x6f\x72\x64e\x72";$ymjtndiqnb="\x62\x6e\x6c_\x61\x72\x67\x73\x5f\x61\x72ray";global$woocommerce;${${"\x47\x4c\x4fBA\x4c\x53"}["\x64\x74\x63\x77\x6d\x79wo"]}=new WC_Order(${${"G\x4c\x4f\x42\x41\x4cS"}["x\x67\x73\x62\x7a\x65\x74\x6f"]});${"\x47L\x4fB\x41\x4cS"}["fehq\x68\x6a\x71\x6c\x6d"]="\x6frd\x65\x72";if($this->testmode=="ye\x73"){${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79l\x69\x6e\x72\x6d\x77\x7a\x66\x77ru"]}=$this->testurl;}else{$gaopjydb="\x62n\x6c\x5fur\x6c";${$gaopjydb}=$this->liveurl;}${${"\x47L\x4f\x42\x41\x4cS"}["\x75\x64ps\x6a\x70\x77\x73\x6b\x6f"]}=$this->get_bnl_args(${${"\x47L\x4fBA\x4c\x53"}["\x66\x65hqhj\x71l\x6d"]});${${"\x47\x4cO\x42\x41L\x53"}["w\x61\x63l\x6d\x6bi\x6c\x69\x69"]}=array();foreach(${${"\x47L\x4f\x42ALS"}["u\x64\x70s\x6apws\x6bo"]} as${${"GL\x4f\x42AL\x53"}["\x72a\x78\x68\x62x\x7a\x6a"]}=>${${"GLOB\x41\x4c\x53"}["\x67\x6d\x6ch\x6d\x6b\x75i"]}){$stmnunnymnf="\x76\x61lue";${${"\x47\x4c\x4fB\x41\x4cS"}["\x77\x61c\x6c\x6d\x6bil\x69i"]}[]="\x3c\x69nput\x20\x74y\x70\x65\x3d\x22\x68\x69\x64\x64en\" \x6ea\x6de\x3d\"".esc_attr(${${"\x47L\x4fB\x41\x4cS"}["\x72\x61x\x68\x62x\x7a\x6a"]})."\" \x76a\x6cu\x65=\x22".esc_attr(${$stmnunnymnf})."\" />";}return"<\x66or\x6d\x20acti\x6fn\x3d\"".esc_url(${${"\x47\x4c\x4fB\x41\x4c\x53"}["y\x6c\x69\x6e\x72\x6d\x77\x7af\x77\x72u"]})."\"\x20m\x65tho\x64=\"pos\x74\" i\x64=\x22\x62\x6e\x6c\x5fp\x61y\x6d\x65\x6e\x74\x5f\x66orm\x22\x20t\x61\x72get\x3d\"_\x74o\x70\">\n\t\t\t\t".implode("",${$ymjtndiqnb})."\n\t\t\t\t\x3c\x69\x6ep\x75t ty\x70\x65\x3d\"subm\x69\x74\x22\x20\x63las\x73\x3d\"\x62\x75t\x74\x6f\x6e alt\x22 \x69\x64=\x22submit\x5f\x62n\x6c\x5f\x70\x61\x79\x6d\x65\x6et_\x66\x6f\x72m\x22 va\x6c\x75e\x3d\"".__(BNLP_SUBMIT_PAYMENT_BUTTON_MSG,"\x62n\x6c")."\"\x20/>\x20\x3ca\x20\x63l\x61s\x73\x3d\x22\x62utt\x6fn c\x61\x6ec\x65l\x22\x20\x68r\x65\x66\x3d\"".esc_url($order->get_cancel_order_url())."\x22\x3e".__(BNLP_CANCEL_ORDER_BUTTON_MSG,"\x77o\x6f\x63om\x6d\x65rc\x65")."\x3c/\x61\x3e\n\t\t\t</\x66\x6f\x72m\x3e";}function receipt_page($order){echo"\x3c\x70\x3e".__(BNLP_CONFIRM_TRANSACTION_MSG,"b\x6el")."\x3c/p>";echo$this->generate_bnl_form(${${"\x47L\x4fB\x41\x4c\x53"}["i\x63\x79\x67\x65o\x76\x68"]});}function payment_fields(){if($this->description)echo wpautop(wptexturize($this->description));}}}
?>
Function Calls
None |
Stats
MD5 | 63861f21bd86a450768ec58aed910df0 |
Eval Count | 0 |
Decode Time | 145 ms |