NF_Abstracts_PaymentGateway

Class NF_Abstracts_PaymentGateway.

Defined (1)

The class is defined in the following location(s).

/includes/Abstracts/PaymentGateway.php  
  1. abstract class NF_Abstracts_PaymentGateway 
  2. protected $_slug = ''; 
  3.  
  4. protected $_name = ''; 
  5.  
  6. protected $_settings = array(); 
  7.  
  8. public function __construct() 
  9. add_filter( 'ninja_forms_collect_payment_process', array( $this, '_process' ) ); 
  10.  
  11. public function get_slug() 
  12. return $this->_slug; 
  13.  
  14. public function get_name() 
  15. return $this->_name; 
  16.  
  17. public function get_settings() 
  18. return $this->_settings; 
  19.  
  20. public function _process( $action_settings, $form_id, $data ) 
  21. if( $this->_slug == $action_settings[ 'payment_gateway' ] ) { 
  22. return $this->process( $action_settings, $form_id, $data ); 
  23.  
  24. abstract protected function process( $action_settings, $form_id, $data );