Automattic\WooCommerce\Blocks\Payments\Integrations

PayPal::get_payment_method_data()publicWC 1.0

Returns an array of key=>value pairs of data made available to the payment methods script.

Method of the class: PayPal{}

No Hooks.

Return

Array.

Usage

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

PayPal::get_payment_method_data() code WC 9.0.1

public function get_payment_method_data() {
	return [
		'title'       => $this->get_setting( 'title' ),
		'description' => $this->get_setting( 'description' ),
		'supports'    => $this->get_supported_features(),
	];
}