WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Payments\Integrations

Stripe::get_icons() private WC 1.0

Return the icons urls.

{} It's a method of the class: Stripe{}

No Hooks.

Return

Array. Arrays of icons metadata.

Usage

// private - for code of main (parent) class only
$result = $this->get_icons();

Code of Stripe::get_icons() WC 5.7.0

private function get_icons() {
	$icons_src = [
		'visa'       => [
			'src' => WC_STRIPE_PLUGIN_URL . '/assets/images/visa.svg',
			'alt' => __( 'Visa', 'woocommerce' ),
		],
		'amex'       => [
			'src' => WC_STRIPE_PLUGIN_URL . '/assets/images/amex.svg',
			'alt' => __( 'American Express', 'woocommerce' ),
		],
		'mastercard' => [
			'src' => WC_STRIPE_PLUGIN_URL . '/assets/images/mastercard.svg',
			'alt' => __( 'Mastercard', 'woocommerce' ),
		],
	];

	if ( 'USD' === get_woocommerce_currency() ) {
		$icons_src['discover'] = [
			'src' => WC_STRIPE_PLUGIN_URL . '/assets/images/discover.svg',
			'alt' => __( 'Discover', 'woocommerce' ),
		];
		$icons_src['jcb']      = [
			'src' => WC_STRIPE_PLUGIN_URL . '/assets/images/jcb.svg',
			'alt' => __( 'JCB', 'woocommerce' ),
		];
		$icons_src['diners']   = [
			'src' => WC_STRIPE_PLUGIN_URL . '/assets/images/diners.svg',
			'alt' => __( 'Diners', 'woocommerce' ),
		];
	}
	return $icons_src;
}