getResponse(); if(isset($response['Status'])): $gateway->validateResponse($response); endif; if(isset($_GET['testpay']) && !empty($_GET['testpay'])): $gateway->validateResponse($response); endif; } endif; // include extra css and js on the payment page template if(!function_exists('aics_include_extra_css_js')): function aics_include_extra_css_js(){ $ipay_gateway = new Aics_ipay_gateway(); if(isset($ipay_gateway->pageID) && !empty($ipay_gateway->pageID)): if(is_page($ipay_gateway->pageID)): wp_register_style('aics-bs-style', plugins_url('inc/css/bootstrap.min.css')); wp_register_script('aics-bs-scrpt', plugins_url('inc/js/bootstrap.min.js'), ['jquery'],'3.3.7', true); wp_enqueue_style('aics-bs-style'); wp_enqueue_script('aics-bs-scrpt'); endif; endif; } add_action('wp_enqueue_scripts', 'aics_include_extra_css_js'); endif; if(!function_exists('aics_payment_footer_js')): function aics_payment_footer_js(){ ?> '.print_r($var,true).'';} endif; if(!function_exists('aics_backend_response')): function aics_backend_response(){ $ipay88 = new Aics_ipay_gateway(); $response = $ipay88->getResponse(); if(isset($response['Status'])): $ipay88->backendResponse($response); endif; } add_action('init', 'aics_backend_response'); endif;