{"id":85767,"date":"2018-05-15T15:50:53","date_gmt":"2018-05-15T15:50:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/payment-gateways-by-customer-location-for-woocommerce\/"},"modified":"2025-09-05T14:39:45","modified_gmt":"2025-09-05T14:39:45","slug":"payment-gateways-by-customer-location-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/roh.wordpress.org\/plugins\/payment-gateways-by-customer-location-for-woocommerce\/","author":18216844,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.7.2","stable_tag":"1.7.2","tested":"6.8.5","requires":"4.4","requires_php":"","requires_plugins":null,"header_name":"Payment Gateways by Customer Location for WooCommerce","header_author":"WPFactory","header_description":"Set countries, states or postcodes to include\/exclude for WooCommerce payment gateways to show up.","assets_banners_color":"d1d5f4","last_updated":"2025-09-05 14:39:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wpfactory.com\/item\/payment-gateways-by-customer-location-for-woocommerce\/","header_author_uri":"https:\/\/wpfactory.com","rating":5,"author_block_rating":0,"active_installs":200,"downloads":9721,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"algoritmika","date":"2018-05-15 15:54:34"},"1.1.0":{"tag":"1.1.0","author":"algoritmika","date":"2019-02-27 18:27:26"},"1.1.1":{"tag":"1.1.1","author":"algoritmika","date":"2019-06-21 14:31:46"},"1.1.2":{"tag":"1.1.2","author":"algoritmika","date":"2020-01-02 11:16:07"},"1.2.0":{"tag":"1.2.0","author":"algoritmika","date":"2020-10-28 22:09:49"},"1.3.0":{"tag":"1.3.0","author":"algoritmika","date":"2020-12-03 17:40:53"},"1.4.0":{"tag":"1.4.0","author":"algoritmika","date":"2021-06-27 16:40:47"},"1.5.0":{"tag":"1.5.0","author":"algoritmika","date":"2022-02-09 16:00:49"},"1.5.1":{"tag":"1.5.1","author":"wpcodefactory","date":"2022-10-28 18:23:02"},"1.5.2":{"tag":"1.5.2","author":"wpcodefactory","date":"2023-06-07 09:20:46"},"1.5.3":{"tag":"1.5.3","author":"wpcodefactory","date":"2023-06-18 14:25:19"},"1.5.4":{"tag":"1.5.4","author":"wpcodefactory","date":"2023-09-26 04:50:38"},"1.6.0":{"tag":"1.6.0","author":"wpcodefactory","date":"2024-06-21 07:54:42"},"1.6.1":{"tag":"1.6.1","author":"wpcodefactory","date":"2024-07-30 17:53:08"},"1.7.0":{"tag":"1.7.0","author":"wpcodefactory","date":"2025-03-29 09:42:33"},"1.7.1":{"tag":"1.7.1","author":"wpcodefactory","date":"2025-07-06 16:50:55"},"1.7.2":{"tag":"1.7.2","author":"wpcodefactory","date":"2025-09-05 14:39:45"}},"upgrade_notice":{"1.0.0":"<p>This is the first release of the plugin.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2971607,"resolution":"128x128","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":2971607,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2971607,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2971607,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.1.1","1.1.2","1.2.0","1.3.0","1.4.0","1.5.0","1.5.1","1.5.2","1.5.3","1.5.4","1.6.0","1.6.1","1.7.0","1.7.1","1.7.2"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Payment Gateways by Country."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[282,2215,6593,286],"plugin_category":[45,49],"plugin_contributors":[78783,80665,178791,189606],"plugin_business_model":[216238],"class_list":["post-85767","plugin","type-plugin","status-publish","hentry","plugin_tags-ecommerce","plugin_tags-location","plugin_tags-payment-gateway","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_category-maps-and-location","plugin_contributors-anbinder","plugin_contributors-karzin","plugin_contributors-omardabbas","plugin_contributors-wpcodefactory","plugin_business_model-commercial","plugin_committers-algoritmika","plugin_committers-wpcodefactory","plugin_support_reps-anbinder","plugin_support_reps-karzin","plugin_support_reps-tahaamin"],"banners":{"banner":"https:\/\/ps.w.org\/payment-gateways-by-customer-location-for-woocommerce\/assets\/banner-772x250.png?rev=2971607","banner_2x":"https:\/\/ps.w.org\/payment-gateways-by-customer-location-for-woocommerce\/assets\/banner-1544x500.png?rev=2971607","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/payment-gateways-by-customer-location-for-woocommerce\/assets\/icon.svg?rev=2971607","icon":"https:\/\/ps.w.org\/payment-gateways-by-customer-location-for-woocommerce\/assets\/icon.svg?rev=2971607","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Payment Gateways by Customer Location for WooCommerce<\/strong> plugin lets you set locations to include\/exclude for WooCommerce payment gateways to show up.<\/p>\n\n<h3>&#9989; Main Features<\/h3>\n\n<p>Locations include:<\/p>\n\n<ul>\n<li><strong>countries<\/strong>,<\/li>\n<li><strong>states<\/strong>,<\/li>\n<li><strong>cities<\/strong>, or<\/li>\n<li><strong>postcodes<\/strong>.<\/li>\n<\/ul>\n\n<p><strong>Country<\/strong> can be detected by:<\/p>\n\n<ul>\n<li>billing country,<\/li>\n<li>shipping country, or<\/li>\n<li>automatically by visitors IP.<\/li>\n<\/ul>\n\n<p><strong>State<\/strong>, <strong>city<\/strong> and <strong>postcode<\/strong> can be detected either by:<\/p>\n\n<ul>\n<li>billing state\/city\/postcode, or by<\/li>\n<li>shipping state\/city\/postcode.<\/li>\n<\/ul>\n\n<h3>&#127942; Premium Version<\/h3>\n\n<p>Free version allows setting options for all standard gateways, i.e.:<\/p>\n\n<ul>\n<li>Direct bank transfer,<\/li>\n<li>Check payments,<\/li>\n<li>Cash on delivery (COD),<\/li>\n<li>PayPal.<\/li>\n<\/ul>\n\n<p>With the <a href=\"https:\/\/wpfactory.com\/item\/payment-gateways-by-customer-location-for-woocommerce\/\">Pro version<\/a> you can set options for <strong>any payment gateway<\/strong> (including custom gateways).<\/p>\n\n<h3>&#128472; Feedback<\/h3>\n\n<ul>\n<li>We are open to your suggestions and feedback. Thank you for using or trying out one of our plugins!<\/li>\n<li><a href=\"https:\/\/wpfactory.com\/item\/payment-gateways-by-customer-location-for-woocommerce\/\">Visit plugin site<\/a>.<\/li>\n<\/ul>\n\n<h3>&#8505; More<\/h3>\n\n<ul>\n<li>The plugin is <strong>\"High-Performance Order Storage (HPOS)\"<\/strong> compatible.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the entire plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the \"Plugins\" menu in WordPress.<\/li>\n<li>Start by visiting plugin settings at \"WPFactory &gt; Payment Gateways by Customer Location\".<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.7.2 - 05\/09\/2025<\/h4>\n\n<ul>\n<li>WC tested up to: 10.1.<\/li>\n<\/ul>\n\n<h4>1.7.1 - 06\/07\/2025<\/h4>\n\n<ul>\n<li>Dev - WPFactory Admin Menu - Library updated.<\/li>\n<li>Dev - WPFactory Admin Menu - Moved to the <code>init<\/code> hook.<\/li>\n<li>Dev - WPFactory Admin Menu - Icon added.<\/li>\n<li>Dev - WPFactory Recommendations - Moved to the <code>init<\/code> hook.<\/li>\n<li>Dev - WPFactory Key Manager - Moved to the <code>init<\/code> hook.<\/li>\n<li>Dev - General - \"Enable plugin\" option removed.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>WC tested up to: 9.9.<\/li>\n<li>Tested up to: 6.8.<\/li>\n<\/ul>\n\n<h4>1.7.0 - 29\/03\/2025<\/h4>\n\n<ul>\n<li>Dev - Security - Output escaped.<\/li>\n<li>Dev - Security - Input sanitized.<\/li>\n<li>Dev - Countries - Added default WooCommerce countries support before custom countries.<\/li>\n<li>Dev - Plugin settings moved to the \"WPFactory\" menu.<\/li>\n<li>Dev - \"Recommendations\" added.<\/li>\n<li>Dev - \"Key Manager\" added.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>Dev - Coding standards improved.<\/li>\n<li>Tested up to: 6.7.<\/li>\n<li>WC tested up to: 9.7.<\/li>\n<\/ul>\n\n<h4>1.6.1 - 30\/07\/2024<\/h4>\n\n<ul>\n<li>Tested up to: 6.6.<\/li>\n<li>WC tested up to: 9.1.<\/li>\n<\/ul>\n\n<h4>1.6.0 - 21\/06\/2024<\/h4>\n\n<ul>\n<li>Dev - \"High-Performance Order Storage (HPOS)\" compatibility.<\/li>\n<li>Dev - PHP 8.2 compatibility - \"Creation of dynamic property is deprecated\" notice fixed.<\/li>\n<li>Dev - Postcodes - Admin settings descriptions updated.<\/li>\n<li>Tested up to: 6.5.<\/li>\n<li>WC tested up to: 9.0.<\/li>\n<li>WooCommerce added to the \"Requires Plugins\" (plugin header).<\/li>\n<\/ul>\n\n<h4>1.5.4 - 26\/09\/2023<\/h4>\n\n<ul>\n<li>Tested up to: 6.3.<\/li>\n<li>WC tested up to: 8.1.<\/li>\n<li>Plugin icon, banner updated.<\/li>\n<\/ul>\n\n<h4>1.5.3 - 18\/06\/2023<\/h4>\n\n<ul>\n<li>WC tested up to: 7.8.<\/li>\n<\/ul>\n\n<h4>1.5.2 - 07\/06\/2023<\/h4>\n\n<ul>\n<li>Tested up to: 6.2.<\/li>\n<li>WC tested up to: 7.7.<\/li>\n<\/ul>\n\n<h4>1.5.1 - 28\/10\/2022<\/h4>\n\n<ul>\n<li>Tested up to: 6.0.<\/li>\n<li>WC tested up to: 7.0.<\/li>\n<li>Readme.txt updated.<\/li>\n<li>Deploy script added.<\/li>\n<\/ul>\n\n<h4>1.5.0 - 09\/02\/2022<\/h4>\n\n<ul>\n<li>Dev - \"Cities\" section added.<\/li>\n<li>Dev - Developers - <code>alg_wc_gateways_by_location_get_location<\/code> filter added.<\/li>\n<li>WC tested up to: 6.2.<\/li>\n<li>Tested up to: 5.9.<\/li>\n<\/ul>\n\n<h4>1.4.0 - 27\/06\/2021<\/h4>\n\n<ul>\n<li>Dev - Settings - Using gateway admin titles instead of the frontend titles.<\/li>\n<li>Dev - Plugin is initialized on <code>plugins_loaded<\/code> action now.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>WC tested up to: 5.4.<\/li>\n<li>Tested up to: 5.7.<\/li>\n<\/ul>\n\n<h4>1.3.0 - 03\/12\/2020<\/h4>\n\n<ul>\n<li>Fix - Postcodes - \"Invalid payment method\" checkout error fixed.<\/li>\n<li>Dev - <code>load_plugin_textdomain<\/code> moved to the <code>init<\/code> hook.<\/li>\n<li>WC tested up to: 4.7.<\/li>\n<\/ul>\n\n<h4>1.2.0 - 28\/10\/2020<\/h4>\n\n<ul>\n<li>Dev - General - Detect country by - Geolocation availability description added.<\/li>\n<li>Dev - JS minified.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>Dev - Admin settings descriptions updated.<\/li>\n<li>WC tested up to: 4.6.<\/li>\n<li>Tested up to: 5.5.<\/li>\n<\/ul>\n\n<h4>1.1.2 - 02\/01\/2020<\/h4>\n\n<ul>\n<li>Dev - \"Cash on delivery (COD)\" option moved to free version.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>WC tested up to: 3.8.<\/li>\n<li>Tested up to: 5.3.<\/li>\n<\/ul>\n\n<h4>1.1.1 - 21\/06\/2019<\/h4>\n\n<ul>\n<li>WC tested up to: 3.6.<\/li>\n<li>Tested up to: 5.2.<\/li>\n<\/ul>\n\n<h4>1.1.0 - 27\/02\/2019<\/h4>\n\n<ul>\n<li>Fix - Countries - Exclude countries - \"European Union\" selection fixed.<\/li>\n<li>Dev - \"Force JavaScript checkout update\" option added.<\/li>\n<li>Dev - \"Check payments\" and \"PayPal\" options moved to free version.<\/li>\n<li>Dev - Major code refactoring.<\/li>\n<li>Dev - Admin settings restyled etc.<\/li>\n<li>Dev - Plugin URI updated.<\/li>\n<li>Dev - POT file added.<\/li>\n<li>Dev - readme.txt description expanded.<\/li>\n<\/ul>\n\n<h4>1.0.0 - 29\/04\/2018<\/h4>\n\n<ul>\n<li>Initial Release.<\/li>\n<\/ul>","raw_excerpt":"Set countries, states, cities or postcodes to include\/exclude for WooCommerce payment gateways to show up.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/85767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=85767"}],"author":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wpcodefactory"}],"wp:attachment":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=85767"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=85767"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=85767"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=85767"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=85767"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=85767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}