function __construct() { parent::__construct(); add_action('et_payment_settings_form', array($this, 'ppexpress_setting')); //save ppexpress add_filter('et_update_payment_setting', array($this, 'set_settings'), 10, 3); add_filter('et_support_payment_gateway', array($this, 'et_support_payment_gateway')); add_filter('et_enable_gateway', array($this, 'et_enable_ppexpress'), 10, 2); // for FRONT_END //Add button paypal expresss for user choose payment. add_action('after_ce_payment_button', array($this, 'ppexpress_payment_button')); add_filter('et_payment_setup', array($this, 'setup_payment'), 10, 3); add_filter('et_payment_process', array($this, 'process_payment'), 10, 3); //add_action('wp_footer' , array($this, 'frontend_js')); add_action('ce_on_add_scripts', array($this, 'frontend_js')); }
function __construct() { parent::__construct(); add_action('after_je_payment_button', array($this, 'payment_button')); add_action('je_payment_settings', array($this, 'ppexpress_setting')); add_filter('et_update_payment_setting', array($this, 'set_settings'), 10, 3); add_filter('et_support_payment_gateway', array($this, 'et_support_payment_gateway')); add_filter('et_enable_gateway', array($this, 'et_enable_ppexpress'), 10, 2); add_action('wp_footer', array($this, 'frontend_js')); add_filter('je_payment_setup', array($this, 'setup_payment'), 10, 3); add_filter('je_payment_process', array($this, 'process_payment'), 10, 3); }