Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments

WooPaymentsService::get_onboarding_recommended_payment_methodspublicWC 1.0

Get the recommended payment methods details for onboarding.

Method of the class: WooPaymentsService{}

No Hooks.

Returns

Array. The recommended payment methods details.

Usage

$WooPaymentsService = new WooPaymentsService();
$WooPaymentsService->get_onboarding_recommended_payment_methods( $location ): array;
$location(string) (required)
The location for which we are onboarding. This is an ISO 3166-1 alpha-2 country code.

WooPaymentsService::get_onboarding_recommended_payment_methods() code WC 10.7.0

public function get_onboarding_recommended_payment_methods( string $location ): array {
	return $this->provider->get_recommended_payment_methods( $this->get_payment_gateway(), $location );
}