WC_Admin_Setup_Wizard::is_stripe_supported_country
Deprecated since 4.6.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Is Stripe country supported https://stripe.com/global .
Method of the class: WC_Admin_Setup_Wizard{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->is_stripe_supported_country( $country_code );
- $country_code(string) (required)
- Country code.
Changelog
| Deprecated since | 4.6.0 |
WC_Admin_Setup_Wizard::is_stripe_supported_country() WC Admin Setup Wizard::is stripe supported country code WC 10.4.3
protected function is_stripe_supported_country( $country_code ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
$stripe_supported_countries = array(
'AU',
'AT',
'BE',
'CA',
'DK',
'FI',
'FR',
'DE',
'HK',
'IE',
'JP',
'LU',
'NL',
'NZ',
'NO',
'SG',
'ES',
'SE',
'CH',
'GB',
'US',
);
return in_array( $country_code, $stripe_supported_countries, true );
}