Edit File by line
/home/barbar84/www/wp-conte.../plugins/ninja-fo.../includes/Abstract...
File: PaymentGateway.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class NF_Abstracts_PaymentGateway
[3] Fix | Delete
*/
[4] Fix | Delete
abstract class NF_Abstracts_PaymentGateway
[5] Fix | Delete
{
[6] Fix | Delete
protected $_slug = '';
[7] Fix | Delete
[8] Fix | Delete
protected $_name = '';
[9] Fix | Delete
[10] Fix | Delete
protected $_settings = array();
[11] Fix | Delete
[12] Fix | Delete
public function __construct()
[13] Fix | Delete
{
[14] Fix | Delete
add_filter( 'ninja_forms_collect_payment_process', array( $this, '_process' ) );
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
public function get_slug()
[18] Fix | Delete
{
[19] Fix | Delete
return $this->_slug;
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
public function get_name()
[23] Fix | Delete
{
[24] Fix | Delete
return $this->_name;
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
public function get_settings()
[28] Fix | Delete
{
[29] Fix | Delete
return $this->_settings;
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
public function _process( $action_settings, $form_id, $data )
[33] Fix | Delete
{
[34] Fix | Delete
if( $this->_slug == $action_settings[ 'payment_gateway' ] ){
[35] Fix | Delete
return $this->process( $action_settings, $form_id, $data );
[36] Fix | Delete
}
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
abstract protected function process( $action_settings, $form_id, $data );
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function