Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
WooPayments::get_onboarding_not_supported_message
Get the message to show when the payment gateway does not support onboarding.
Method of the class: WooPayments{}
No Hooks.
Returns
String|null. The message to show when the payment gateway does not support onboarding, or null if no specific message should be provided.
Usage
$WooPayments = new WooPayments(); $WooPayments->get_onboarding_not_supported_message( $payment_gateway, $country_code ): ?string;
- $payment_gateway(WC_Payment_Gateway) (required)
- The payment gateway object.
- $country_code(string)
- The country code for which to check. This should be an ISO 3166-1 alpha-2 country code.
Default:''
Notes
- See: self::is_onboarding_supported()
WooPayments::get_onboarding_not_supported_message() WooPayments::get onboarding not supported message code WC 10.9.4
public function get_onboarding_not_supported_message( WC_Payment_Gateway $payment_gateway, string $country_code = '' ): ?string {
$message = parent::get_onboarding_not_supported_message( $payment_gateway, $country_code );
if ( ! is_null( $message ) ) {
return $message;
}
return sprintf(
/* translators: %s: WooPayments. */
esc_html__( '%s is not supported in the selected business location.', 'woocommerce' ),
'WooPayments'
);
}