1. Home
  2. Jobster
  3. Payment Gateways API
  4. add_gateways( $methods )

add_gateways( $methods )

public function add_gateways( $methods ) {
	$methods[$this->priority] =
		array(
			'label'           => __( 'Sample', 'wpjobster-sample' ),
			'action'          => '',
			'unique_id'       => $this->unique_slug,
			'process_action'  => 'wpjobster_taketo_sample_gateway',
			'response_action' => 'wpjobster_processafter_sample_gateway',
		);
	add_action( 'wpjobster_show_paymentgateway_forms', 
			array( $this, 'show_gateways' ), $this->priority, 3 );

	return $methods;
}

This function links the settings, checkout and processing functions to the actions from the constructor.