Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders

Stripe::get_recommended_payment_methodspublicWC 1.0

Try and determine a list of recommended payment methods for a payment gateway.

This data is not always available, and it is up to the payment gateway to provide it. This is not a definitive list of payment methods that the gateway supports. The data is aimed at helping the user understand what payment methods are recommended for the gateway and potentially help them make a decision on which payment methods to enable.

Method of the class: Stripe{}

No Hooks.

Returns

Array. The recommended payment methods list for the payment gateway. Empty array if there are none.

Usage

$Stripe = new Stripe();
$Stripe->get_recommended_payment_methods( $payment_gateway, $country_code ): array;
$payment_gateway(WC_Payment_Gateway) (required)
The payment gateway object.
$country_code(string)
The country code for which to get recommended payment methods. This should be an ISO 3166-1 alpha-2 country code.
Default: ''

Stripe::get_recommended_payment_methods() code WC 10.7.0

public function get_recommended_payment_methods( WC_Payment_Gateway $payment_gateway, string $country_code = '' ): array {
	return array();
}