Automattic\WooCommerce\Admin\Features\PaymentGatewaySuggestions
PaymentGatewaysController::init
Initialize payment gateway changes.
Method of the class: PaymentGatewaysController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = PaymentGatewaysController::init();
PaymentGatewaysController::init() PaymentGatewaysController::init code WC 10.5.0
public static function init() {
add_filter( 'woocommerce_rest_prepare_payment_gateway', array( __CLASS__, 'extend_response' ), 10, 3 );
add_filter( 'admin_init', array( __CLASS__, 'possibly_do_connection_return_action' ) );
add_action( 'woocommerce_admin_payment_gateway_connection_return', array( __CLASS__, 'handle_successfull_connection' ) );
}