- This topic has 3 replies, 3 voices, and was last updated 1 week, 6 days ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Addon Related › Payment Gateway Bundle Stripe Checkout SCA:Shipping Address For Just 4 Countries
Hi, the checkout page only shows shipping address for 4 countries:
Please advise. Thank you.
For support with paid addons, please complete this support ticket and a developer will contact you directly.
support.tipsandtricks-hq.com/customer-support
Noted with thanks.
Just adding the soluition to this forum post also.
Stripe requires that you specify a list of countries where shipping will be allowed at checkout:
Our plugin provides a filter hook that lets you override the default list and define the countries you want to allow.
You can add the following custom code to your theme’s functions.php file or to a custom plugin:
function my_allowed_countries_list( $allowed_countries ){
//TODO - Add two-letter ISO country codes separated by comma.
$allowed_countries = array( 'US', 'CA', 'GB', 'AU' );
return $allowed_countries;
}
add_filter('wppg_stripe_shipping_allowed_countries', 'my_allowed_countries_list');
This will replace the default allowed country list with the one you specify.