Automattic\WooCommerce\Blocks\Payments\Integrations

PayPal::get_supported_features()publicWC 1.0

Returns an array of supported features.

Method of the class: PayPal{}

Return

String[].

Usage

$PayPal = new PayPal();
$PayPal->get_supported_features();

PayPal::get_supported_features() code WC 8.7.0

public function get_supported_features() {
	$gateway  = new WC_Gateway_Paypal();
	$features = array_filter( $gateway->supports, array( $gateway, 'supports' ) );

	/**
	 * Filter to control what features are available for each payment gateway.
	 *
	 * @since 4.4.0
	 *
	 * @example See docs/examples/payment-gateways-features-list.md
	 *
	 * @param array $features List of supported features.
	 * @param string $name Gateway name.
	 * @return array Updated list of supported features.
	 */
	return apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $this->get_name() );
}