public function index()
 {
     // global $wp_rewrite;
     // $wp_rewrite->flush_rules();
     $payments_model = $this->load->model('payments_model');
     $payments_model->check_valid_hash('asdas');
     $car_id = AT_Session::get_instance()->userdata('paidEntityID');
     $car_model = $this->load->model('car_model');
     if (AT_Common::validate_id($car_id) && $car_model->check_user_cars($car_id, AT_Common::get_logged_user_id(), 'publish') > 0) {
         $this->view->use_layout('header_content_footer')->add_block('content', 'payments/prepare', array('cars' => $car_model->get_car_info($car_id), 'methods' => array('paypal' => array('state' => $this->core->get_option('paypal_state', 0), 'name' => 'PayPal', 'logo' => 'https://www.paypalobjects.com/webstatic/mktg/Logo/AM_mc_vs_ms_ae_UK.png')), 'plans' => $this->core->get_option('merchant_plan', false), 'paid' => array('featured' => $this->core->get_option('merchant_module_featured', false), 'top' => $this->core->get_option('merchant_module_promote', false))));
     } else {
         $this->view->use_layout('header_content_footer')->add_block('content', 'payments/denied', array());
     }
 }