Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
Stripe::get_recommended_payment_methods
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.
Метод класса: Stripe{}
Хуков нет.
Возвращает
Массив. The recommended payment methods list for the payment gateway. Empty array if there are none.
Использование
$Stripe = new Stripe(); $Stripe->get_recommended_payment_methods( $payment_gateway, $country_code ): array;
- $payment_gateway(WC_Payment_Gateway) (обязательный)
- The payment gateway object.
- $country_code(строка)
- The country code for which to get recommended payment methods. This should be an ISO 3166-1 alpha-2 country code.
По умолчанию:''
Код Stripe::get_recommended_payment_methods() Stripe::get recommended payment methods WC 10.9.4
public function get_recommended_payment_methods( WC_Payment_Gateway $payment_gateway, string $country_code = '' ): array {
return array();
}