Title: Country Based Payments for WooCommerce
Author: Ivan Paulin
Published: <strong>2015 年 6 月 23 日</strong>
Last modified: 2024 年 1 月 26 日

---

搜索插件

![](https://ps.w.org/woocommerce-country-based-payments/assets/banner-772x250.jpg?
rev=1566249)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/woocommerce-country-based-payments_5488a5.
svg)

# Country Based Payments for WooCommerce

 作者：[Ivan Paulin](https://profiles.wordpress.org/ivan_paulin/)

[下载](https://downloads.wordpress.org/plugin/woocommerce-country-based-payments.1.5.zip)

 * [详情](https://cn.wordpress.org/plugins/woocommerce-country-based-payments/#description)
 * [评价](https://cn.wordpress.org/plugins/woocommerce-country-based-payments/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/woocommerce-country-based-payments/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/woocommerce-country-based-payments/#developers)

 [支持](https://wordpress.org/support/plugin/woocommerce-country-based-payments/)

## 描述

This plugin gives you option to choose which payment gateway will be available in
certain country, or countries.

If you need to have certain payment gateway to be available in all countries, don’t
set option for it.

This WooCommerce addon is compatible with:
 * WooCommerce 8.5.2

**NOTE**: Backup your website before updating the plugin. Try to test a new version
of the plugin on the staging server before using the plugin on a live site.
 This
plugin comes as is; there’s no guarantee that it will work with all payment gateways
available. I don’t have access to the premium version of payment gateways, and I
haven’t tested this plugin with all payment gateways. Known payment gateways that
this plugin does not work with: 1. Amazon Payments 2. PayPal Checkout

## 屏幕截图

 * [[
 * Select WCCBP tab in WooCommerce settings.
 * [[
 * You can choose multiple countries.

## 安装

 1. Upload `woocommerce-country-based-payment` folder to the `/wp-content/plugins/`
    directory
 2. Activate the “Country Based Payments for WooCommerce” through the ‘Plugins’ menu
    in WordPress

## 评价

![](https://secure.gravatar.com/avatar/d83ee2de51172d4491a65ea870d54afdc6504ebdde9664a486c180f0da0afbb4?
s=60&d=retro&r=g)

### 󠀁[Beautiful Plugin](https://wordpress.org/support/topic/beautiful-plugin-118/)󠁿

 [uchennayah](https://profiles.wordpress.org/uchennayah/) 2024 年 8 月 15 日

This is an extremely beautiful plugin, it works perfectly and doesn’t break. I am
very grateful to the team Thank you.

![](https://secure.gravatar.com/avatar/559668422779c12497ca9d22e804fdbc594783fa66ce250bb37fbb51dbe72daf?
s=60&d=retro&r=g)

### 󠀁[Simple, but not very user friendly](https://wordpress.org/support/topic/simple-but-not-very-user-friendly/)󠁿

 [mailchef](https://profiles.wordpress.org/mailchef/) 2023 年 10 月 18 日

Easy interface and you can specify ALL or NO country easily. Or just single countries
individually. BUT:- WCCBP is not a common term nor obvious in settings. How about“
payments by country”?- all payment modules are shown even if inactive- by default
all countries work even if no country had been entered nor is shown.- no easy selection
of EU/EEA countries. Also no copy and paste between payment methods possible. Happy
entering 27 countries manually for every payment method

![](https://secure.gravatar.com/avatar/7cd1d18148fc626e5109fb1f33f7ae0d48c61bda3989c92b67fd5da8cb70c7d2?
s=60&d=retro&r=g)

### 󠀁[Great little plugin](https://wordpress.org/support/topic/great-little-plugin-296/)󠁿

 [fizzers](https://profiles.wordpress.org/fizzers/) 2021 年 6 月 3 日

Searched for a while for a solution that lets me disable card payments for specific
countries, and this plugin handles it superbly. Straightforward and easy to set 
up. No issues at all so far, will update if any problems.

![](https://secure.gravatar.com/avatar/2624decefebb4a37110a8b27aecd2077184338119c9c728728d98c06ca03e171?
s=60&d=retro&r=g)

### 󠀁[Works perfectly, simple to use, efficient.](https://wordpress.org/support/topic/works-perfectly-simple-to-use-efficient/)󠁿

 [Jorsana](https://profiles.wordpress.org/jorsana/) 2021 年 2 月 24 日

Works perfectly, simple to use, efficient. Settings are clear. I like it. Very happy
with this plugin.

![](https://secure.gravatar.com/avatar/d1c12d8562434dc100c0918a0492417c94f75bb2dad1408a43c3528037e5f381?
s=60&d=retro&r=g)

### 󠀁[Useful and simple: perfect!](https://wordpress.org/support/topic/useful-and-simple-perfect/)󠁿

 [Sakudo](https://profiles.wordpress.org/sakudo/) 2020 年 4 月 9 日

The plugin is very useful and does what it promises! Installation and set up is 
straight forward. Thank you very much for the contribution to improve WooCommerce!

![](https://secure.gravatar.com/avatar/918524ad7d75d2a575d69d8a75a09f814d4fc7faf27e5e9aca5194bf87d560f4?
s=60&d=retro&r=g)

### 󠀁[Avoid – no support](https://wordpress.org/support/topic/avoid-no-support/)󠁿

 [vk4ghz](https://profiles.wordpress.org/vk4ghz/) 2020 年 4 月 7 日 2 回复

 [ 阅读所有12条评价 ](https://wordpress.org/support/plugin/woocommerce-country-based-payments/reviews/)

## 贡献者及开发者

「Country Based Payments for WooCommerce」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Ivan Paulin ](https://profiles.wordpress.org/ivan_paulin/)
 *   [ mensmaximus ](https://profiles.wordpress.org/mensmaximus/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

「Country Based Payments for WooCommerce」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/woocommerce-country-based-payments/contributors)
为本插件所做的贡献。

[帮助将「Country Based Payments for WooCommerce」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/woocommerce-country-based-payments)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/woocommerce-country-based-payments/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/woocommerce-country-based-payments/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/woocommerce-country-based-payments/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/woocommerce-country-based-payments/)。

## 更新日志

#### 1.0

 * Initial release.

#### 1.1

 * Fix ‘Invalid payment method’ error

#### 1.1.2

 * Update readme.txt file

#### 1.1.3

 * Fix – compatibility issue with WooCommerce 2.4.6 regarding to the Ajax request

#### 1.1.4

 * Fix – PHP notice undefined index “wc-ajax”

#### 1.1.5

 * Fix – Resolve issue with the payment gateway selection after cancellation of 
   payment

#### 1.1.6

 * Version bump
 * Remove assets folder

#### 1.1.6.1

 * Prevent direct access in php files

#### 1.1.7

 * Fix compatibility with third-party payment gateways

#### 1.1.8

 * Fix: settings tab doesn’t show on multisite installation
    25.07.2018
 * Tested with latest WordPress and WooCommerce version
 * Added notice about GDPR in description

#### 1.2.0

 * Added languages folder and wccbp.pot file, load wccbcp textdomain
 * Added Freemius integration

#### 1.2.1

 * Fix problem with missing settings page

#### 1.2.2

 * Fix fatal error when plugin WooCommerce Germanized is used

#### 1.2.3

 * Fix fatal error when plugin is used with WPML WooCommerce Multilingual

#### 1.2.3.1

 * Fix bug with WCML in previous release

#### 1.2.4

 * Update Freemius SDK

#### 1.2.4.1

 * Temporarily disable Freemius SDK until the bug is resolved

#### 1.2.4.2

 * Fix bug with Freemius SDK

#### 1.3

 * Fix issue with restrictions not applying on checkout page load – https://github.
   com/woocommerce/woocommerce/pull/24271
 * Apply WP coding standards

#### 1.3.2

 * Fix Fatal error: Uncaught Error: Call to a member function get_billing_country()
   on null

#### 1.3.3

 * Fix WP REST API error code: rest_setting_setting_group_invalid, message: Invalid
   setting group

#### 1.4

 * Update Freemius SDK
 * Tested with WC 4.8.0

#### 1.4.1

 * Update Freemius SDK
 * Tested with WC 6.4.1

#### 1.4.2

 * Rename Plugin due WooCommerce trademark complains

#### 1.4.2.1

 * Freemius SDK update to 2.5.10

#### 1.4.3

 * Fix missing file error

#### 1.4.4

 * Freemius SDK update

#### 1.4.4.1

 * Add missing files

#### 1.5

 * Add HPOS compatibility
 * Update Fremius SDK

## 额外信息

 *  版本 **1.5**
 *  最后更新：**2 年前**
 *  活跃安装数量 **3,000+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/woocommerce-country-based-payments/)、
   [German](https://de.wordpress.org/plugins/woocommerce-country-based-payments/)
   和 [Swedish](https://sv.wordpress.org/plugins/woocommerce-country-based-payments/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/woocommerce-country-based-payments)
 * 标签
 * [countries](https://cn.wordpress.org/plugins/tags/countries/)[country](https://cn.wordpress.org/plugins/tags/country/)
   [payment gateway](https://cn.wordpress.org/plugins/tags/payment-gateway/)[payment gateways](https://cn.wordpress.org/plugins/tags/payment-gateways/)
   [woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/woocommerce-country-based-payments/advanced/)

## 评级

 4.3 星（最高 5 星）。

 *  [  9 条 5 星评价     ](https://wordpress.org/support/plugin/woocommerce-country-based-payments/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/woocommerce-country-based-payments/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/woocommerce-country-based-payments/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/woocommerce-country-based-payments/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/woocommerce-country-based-payments/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/woocommerce-country-based-payments/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/woocommerce-country-based-payments/reviews/)

## 贡献者

 *   [ Ivan Paulin ](https://profiles.wordpress.org/ivan_paulin/)
 *   [ mensmaximus ](https://profiles.wordpress.org/mensmaximus/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/woocommerce-country-based-payments/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://ivanpaulin.com/donate/?plugin=woocommerce-country-based-payments)