Version Description
- 2022.01.24 =
- New - Add support for Square stores located in Spain. PR#704
Download this release
Release Info
Developer | automattic |
Plugin | WooCommerce Square |
Version | 2.8.0 |
Comparing to | |
See all releases |
Code changes from version 2.7.0 to 2.8.0
- i18n/languages/woocommerce-square.pot +10 -10
- includes/Gateway.php +2 -15
- includes/Plugin.php +2 -14
- readme.txt +4 -1
- woocommerce-square.php +1 -1
i18n/languages/woocommerce-square.pot
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the GNU General Public License v3.0.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce Square 2.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/woocommerce-square\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"PO-Revision-Date:
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
15 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
@@ -717,7 +717,7 @@ msgid ""
|
|
717 |
"store."
|
718 |
msgstr ""
|
719 |
|
720 |
-
#: includes/Gateway.php:
|
721 |
msgid " An error occurred, please try again or try an alternate form of payment."
|
722 |
msgstr ""
|
723 |
|
@@ -937,7 +937,7 @@ msgid ""
|
|
937 |
"%5$supdated documentation%6$s."
|
938 |
msgstr ""
|
939 |
|
940 |
-
#: includes/Plugin.php:
|
941 |
#. translators: Placeholders: %1$s - <strong> tag, %2$s - </strong> tag, %3$s -
|
942 |
#. 2-character country code, %4$s - comma separated list of 2-character country
|
943 |
#. codes
|
@@ -946,7 +946,7 @@ msgid ""
|
|
946 |
"accept transactions from merchants outside of %4$s."
|
947 |
msgstr ""
|
948 |
|
949 |
-
#: includes/Plugin.php:
|
950 |
#. translators: Placeholders: %1$s - <strong> tag, %2$s - </strong> tag, %3$s -
|
951 |
#. <a> tag, %4$s - </a> tag
|
952 |
msgid ""
|
@@ -955,7 +955,7 @@ msgid ""
|
|
955 |
"successfully with Square. %3$sRead more here%4$s on how to resolve this."
|
956 |
msgstr ""
|
957 |
|
958 |
-
#: includes/Plugin.php:
|
959 |
#. translators: Placeholders: %1$s - <strong> tag, %2$s - </strong> tag, %3$s -
|
960 |
#. <a> tag, %4$s - </a> tag
|
961 |
msgid ""
|
@@ -963,14 +963,14 @@ msgid ""
|
|
963 |
"Square is inactive. Please disconnect and reconnect to resolve."
|
964 |
msgstr ""
|
965 |
|
966 |
-
#: includes/Plugin.php:
|
967 |
msgid ""
|
968 |
"%1$sWooCommerce Square:%2$s Product prices are entered inclusive of tax, "
|
969 |
"but Square does not support syncing tax-inclusive prices. Please make sure "
|
970 |
"your Square tax rates match your WooCommerce tax rates."
|
971 |
msgstr ""
|
972 |
|
973 |
-
#: includes/Plugin.php:
|
974 |
msgid ""
|
975 |
"Heads up! Your store currency is %1$s but your configured Square business "
|
976 |
"location currency is %2$s, so payments cannot be processed. Please "
|
1 |
+
# Copyright (C) 2022 WooCommerce
|
2 |
# This file is distributed under the GNU General Public License v3.0.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce Square 2.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/woocommerce-square\n"
|
8 |
+
"POT-Creation-Date: 2022-01-24 01:30:17+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
15 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
717 |
"store."
|
718 |
msgstr ""
|
719 |
|
720 |
+
#: includes/Gateway.php:1083
|
721 |
msgid " An error occurred, please try again or try an alternate form of payment."
|
722 |
msgstr ""
|
723 |
|
937 |
"%5$supdated documentation%6$s."
|
938 |
msgstr ""
|
939 |
|
940 |
+
#: includes/Plugin.php:458
|
941 |
#. translators: Placeholders: %1$s - <strong> tag, %2$s - </strong> tag, %3$s -
|
942 |
#. 2-character country code, %4$s - comma separated list of 2-character country
|
943 |
#. codes
|
946 |
"accept transactions from merchants outside of %4$s."
|
947 |
msgstr ""
|
948 |
|
949 |
+
#: includes/Plugin.php:485
|
950 |
#. translators: Placeholders: %1$s - <strong> tag, %2$s - </strong> tag, %3$s -
|
951 |
#. <a> tag, %4$s - </a> tag
|
952 |
msgid ""
|
955 |
"successfully with Square. %3$sRead more here%4$s on how to resolve this."
|
956 |
msgstr ""
|
957 |
|
958 |
+
#: includes/Plugin.php:528
|
959 |
#. translators: Placeholders: %1$s - <strong> tag, %2$s - </strong> tag, %3$s -
|
960 |
#. <a> tag, %4$s - </a> tag
|
961 |
msgid ""
|
963 |
"Square is inactive. Please disconnect and reconnect to resolve."
|
964 |
msgstr ""
|
965 |
|
966 |
+
#: includes/Plugin.php:560
|
967 |
msgid ""
|
968 |
"%1$sWooCommerce Square:%2$s Product prices are entered inclusive of tax, "
|
969 |
"but Square does not support syncing tax-inclusive prices. Please make sure "
|
970 |
"your Square tax rates match your WooCommerce tax rates."
|
971 |
msgstr ""
|
972 |
|
973 |
+
#: includes/Plugin.php:591
|
974 |
msgid ""
|
975 |
"Heads up! Your store currency is %1$s but your configured Square business "
|
976 |
"location currency is %2$s, so payments cannot be processed. Please "
|
includes/Gateway.php
CHANGED
@@ -781,7 +781,7 @@ class Gateway extends Framework\SV_WC_Payment_Gateway_Direct {
|
|
781 |
'white-outline' => 'White with outline',
|
782 |
),
|
783 |
);
|
784 |
-
|
785 |
$form_fields['digital_wallets_google_pay_button_color'] = array(
|
786 |
'title' => esc_html__( 'Google Pay Button Color', 'woocommerce-square' ),
|
787 |
'desc_tip' => esc_html__( 'Select the color of the Google Pay button.', 'woocommerce-square' ),
|
@@ -888,20 +888,7 @@ class Gateway extends Framework\SV_WC_Payment_Gateway_Direct {
|
|
888 |
public function is_digital_wallet_available() {
|
889 |
$is_available = false;
|
890 |
$base_location = wc_get_base_location();
|
891 |
-
$supported_countries = array( 'US', 'GB', 'CA', 'IE', 'FR' );
|
892 |
-
|
893 |
-
/**
|
894 |
-
* Filter to support country: Spain
|
895 |
-
*
|
896 |
-
* This is only meant for early access.
|
897 |
-
*
|
898 |
-
* @see https://github.com/woocommerce/woocommerce-square/issues/662
|
899 |
-
* @todo Remove this filter once Spain is supported as part
|
900 |
-
* of a general release.
|
901 |
-
*/
|
902 |
-
if ( apply_filters( 'wc_square_beta_country_support_spain', false ) ) {
|
903 |
-
$supported_countries[] = 'ES';
|
904 |
-
}
|
905 |
|
906 |
if ( wc_site_is_https() && in_array( get_woocommerce_currency(), array( 'USD', 'GBP', 'CAD', 'EUR' ), true ) && ( ! empty( $base_location['country'] ) && in_array( $base_location['country'], $supported_countries, true ) ) ) {
|
907 |
$is_available = true;
|
781 |
'white-outline' => 'White with outline',
|
782 |
),
|
783 |
);
|
784 |
+
|
785 |
$form_fields['digital_wallets_google_pay_button_color'] = array(
|
786 |
'title' => esc_html__( 'Google Pay Button Color', 'woocommerce-square' ),
|
787 |
'desc_tip' => esc_html__( 'Select the color of the Google Pay button.', 'woocommerce-square' ),
|
888 |
public function is_digital_wallet_available() {
|
889 |
$is_available = false;
|
890 |
$base_location = wc_get_base_location();
|
891 |
+
$supported_countries = array( 'US', 'GB', 'CA', 'IE', 'FR', 'ES' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
892 |
|
893 |
if ( wc_site_is_https() && in_array( get_woocommerce_currency(), array( 'USD', 'GBP', 'CAD', 'EUR' ), true ) && ( ! empty( $base_location['country'] ) && in_array( $base_location['country'], $supported_countries, true ) ) ) {
|
894 |
$is_available = true;
|
includes/Plugin.php
CHANGED
@@ -42,7 +42,7 @@ class Plugin extends Framework\SV_WC_Payment_Gateway_Plugin {
|
|
42 |
|
43 |
|
44 |
/** plugin version number */
|
45 |
-
const VERSION = '2.
|
46 |
|
47 |
/** plugin ID */
|
48 |
const PLUGIN_ID = 'square';
|
@@ -445,21 +445,9 @@ class Plugin extends Framework\SV_WC_Payment_Gateway_Plugin {
|
|
445 |
'JP',
|
446 |
'IE',
|
447 |
'FR',
|
|
|
448 |
);
|
449 |
|
450 |
-
/**
|
451 |
-
* Filter to support country: Spain
|
452 |
-
*
|
453 |
-
* This is only meant for early access.
|
454 |
-
*
|
455 |
-
* @see https://github.com/woocommerce/woocommerce-square/issues/662
|
456 |
-
* @todo Remove this filter once Spain is supported as part
|
457 |
-
* of a general release.
|
458 |
-
*/
|
459 |
-
if ( apply_filters( 'wc_square_beta_country_support_spain', false ) ) {
|
460 |
-
$accepted_countries[] = 'ES';
|
461 |
-
}
|
462 |
-
|
463 |
$base_location = wc_get_base_location();
|
464 |
|
465 |
if ( isset( $base_location['country'] ) && ! in_array( $base_location['country'], $accepted_countries, true ) ) {
|
42 |
|
43 |
|
44 |
/** plugin version number */
|
45 |
+
const VERSION = '2.8.0';
|
46 |
|
47 |
/** plugin ID */
|
48 |
const PLUGIN_ID = 'square';
|
445 |
'JP',
|
446 |
'IE',
|
447 |
'FR',
|
448 |
+
'ES',
|
449 |
);
|
450 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
$base_location = wc_get_base_location();
|
452 |
|
453 |
if ( isset( $base_location['country'] ) && ! in_array( $base_location['country'], $accepted_countries, true ) ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: credit card, square, woocommerce, inventory sync
|
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -71,6 +71,9 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
|
|
71 |
2. The payment gateway settings.
|
72 |
|
73 |
== Changelog ==
|
|
|
|
|
|
|
74 |
= 2.7.0 - 2021.11.09 =
|
75 |
* New - `wc_square_beta_country_support_spain` filter to add Spain as a supported country. PR#663
|
76 |
* Fix - Visibility of digital wallet buttons based on account & privacy settings. PR#652
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.8.0
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
71 |
2. The payment gateway settings.
|
72 |
|
73 |
== Changelog ==
|
74 |
+
= 2.8.0 - 2022.01.24 =
|
75 |
+
* New - Add support for Square stores located in Spain. PR#704
|
76 |
+
|
77 |
= 2.7.0 - 2021.11.09 =
|
78 |
* New - `wc_square_beta_country_support_spain` filter to add Spain as a supported country. PR#663
|
79 |
* Fix - Visibility of digital wallet buttons based on account & privacy settings. PR#652
|
woocommerce-square.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Square
|
4 |
-
* Version: 2.
|
5 |
* Plugin URI: https://woocommerce.com/products/square/
|
6 |
* Description: Adds ability to sync inventory between WooCommerce and Square POS. In addition, you can also make purchases through the Square payment gateway.
|
7 |
* Author: WooCommerce
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Square
|
4 |
+
* Version: 2.8.0
|
5 |
* Plugin URI: https://woocommerce.com/products/square/
|
6 |
* Description: Adds ability to sync inventory between WooCommerce and Square POS. In addition, you can also make purchases through the Square payment gateway.
|
7 |
* Author: WooCommerce
|