Version Description
- 2021.02.03 =
- Fix - Add the correct variation to the cart when purchasing with Apple Pay and Google Pay from the product page. PR#581
Download this release
Release Info
| Developer | automattic |
| Plugin | |
| Version | 2.3.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.3.0 to 2.3.1
- i18n/languages/woocommerce-square.pot +14 -14
- includes/Gateway/Digital_Wallet.php +0 -1
- includes/Plugin.php +1 -1
- readme.txt +4 -1
- woocommerce-square.php +1 -1
i18n/languages/woocommerce-square.pot
CHANGED
|
@@ -2,10 +2,10 @@
|
|
| 2 |
# This file is distributed under the GNU General Public License v3.0.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: WooCommerce Square 2.3.
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-square\n"
|
| 8 |
-
"POT-Creation-Date: 2021-02-
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -434,7 +434,7 @@ msgid "The sync job has failed. Check sync records, or %s."
|
|
| 434 |
msgstr ""
|
| 435 |
|
| 436 |
#: includes/Gateway/API/Requests/Orders.php:88
|
| 437 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 438 |
#: vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/apple-pay/class-sv-wc-payment-gateway-apple-pay.php:555
|
| 439 |
msgid "Discount"
|
| 440 |
msgstr ""
|
|
@@ -475,53 +475,53 @@ msgstr ""
|
|
| 475 |
msgid "An error occurred, please try again or try an alternate form of payment."
|
| 476 |
msgstr ""
|
| 477 |
|
| 478 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 479 |
#. translators: product ID
|
| 480 |
msgid "Product with the ID (%d) cannot be found."
|
| 481 |
msgstr ""
|
| 482 |
|
| 483 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 484 |
#. translators: 1: product name 2: quantity in stock
|
| 485 |
msgid ""
|
| 486 |
"You cannot add that amount of \"%1$s\"; to the cart because there is not "
|
| 487 |
"enough stock (%2$s remaining)."
|
| 488 |
msgstr ""
|
| 489 |
|
| 490 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 491 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 492 |
msgid "Tax"
|
| 493 |
msgstr ""
|
| 494 |
|
| 495 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 496 |
msgid "This payment method cannot be used for multiple shipments."
|
| 497 |
msgstr ""
|
| 498 |
|
| 499 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 500 |
#: vendor/prospress/action-scheduler/classes/ActionScheduler_Store.php:182
|
| 501 |
msgid "Pending"
|
| 502 |
msgstr ""
|
| 503 |
|
| 504 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 505 |
#: vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/apple-pay/class-sv-wc-payment-gateway-apple-pay.php:565
|
| 506 |
msgid "Shipping"
|
| 507 |
msgstr ""
|
| 508 |
|
| 509 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 510 |
#: vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/apple-pay/class-sv-wc-payment-gateway-apple-pay.php:575
|
| 511 |
msgid "Fees"
|
| 512 |
msgstr ""
|
| 513 |
|
| 514 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 515 |
msgid ""
|
| 516 |
"Invalid request. Could not fetch the payment request data to be use in the "
|
| 517 |
"Square digital wallet."
|
| 518 |
msgstr ""
|
| 519 |
|
| 520 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 521 |
msgid "Empty cart"
|
| 522 |
msgstr ""
|
| 523 |
|
| 524 |
-
#: includes/Gateway/Digital_Wallet.php:
|
| 525 |
msgid "Unable to verify domain - missing access token."
|
| 526 |
msgstr ""
|
| 527 |
|
| 2 |
# This file is distributed under the GNU General Public License v3.0.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: WooCommerce Square 2.3.1\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-square\n"
|
| 8 |
+
"POT-Creation-Date: 2021-02-03 01:52:48+00:00\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 434 |
msgstr ""
|
| 435 |
|
| 436 |
#: includes/Gateway/API/Requests/Orders.php:88
|
| 437 |
+
#: includes/Gateway/Digital_Wallet.php:410
|
| 438 |
#: vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/apple-pay/class-sv-wc-payment-gateway-apple-pay.php:555
|
| 439 |
msgid "Discount"
|
| 440 |
msgstr ""
|
| 475 |
msgid "An error occurred, please try again or try an alternate form of payment."
|
| 476 |
msgstr ""
|
| 477 |
|
| 478 |
+
#: includes/Gateway/Digital_Wallet.php:268
|
| 479 |
#. translators: product ID
|
| 480 |
msgid "Product with the ID (%d) cannot be found."
|
| 481 |
msgstr ""
|
| 482 |
|
| 483 |
+
#: includes/Gateway/Digital_Wallet.php:284
|
| 484 |
#. translators: 1: product name 2: quantity in stock
|
| 485 |
msgid ""
|
| 486 |
"You cannot add that amount of \"%1$s\"; to the cart because there is not "
|
| 487 |
"enough stock (%2$s remaining)."
|
| 488 |
msgstr ""
|
| 489 |
|
| 490 |
+
#: includes/Gateway/Digital_Wallet.php:306
|
| 491 |
+
#: includes/Gateway/Digital_Wallet.php:402
|
| 492 |
msgid "Tax"
|
| 493 |
msgstr ""
|
| 494 |
|
| 495 |
+
#: includes/Gateway/Digital_Wallet.php:341
|
| 496 |
msgid "This payment method cannot be used for multiple shipments."
|
| 497 |
msgstr ""
|
| 498 |
|
| 499 |
+
#: includes/Gateway/Digital_Wallet.php:352
|
| 500 |
#: vendor/prospress/action-scheduler/classes/ActionScheduler_Store.php:182
|
| 501 |
msgid "Pending"
|
| 502 |
msgstr ""
|
| 503 |
|
| 504 |
+
#: includes/Gateway/Digital_Wallet.php:394
|
| 505 |
#: vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/apple-pay/class-sv-wc-payment-gateway-apple-pay.php:565
|
| 506 |
msgid "Shipping"
|
| 507 |
msgstr ""
|
| 508 |
|
| 509 |
+
#: includes/Gateway/Digital_Wallet.php:418
|
| 510 |
#: vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/apple-pay/class-sv-wc-payment-gateway-apple-pay.php:575
|
| 511 |
msgid "Fees"
|
| 512 |
msgstr ""
|
| 513 |
|
| 514 |
+
#: includes/Gateway/Digital_Wallet.php:452
|
| 515 |
msgid ""
|
| 516 |
"Invalid request. Could not fetch the payment request data to be use in the "
|
| 517 |
"Square digital wallet."
|
| 518 |
msgstr ""
|
| 519 |
|
| 520 |
+
#: includes/Gateway/Digital_Wallet.php:646
|
| 521 |
msgid "Empty cart"
|
| 522 |
msgstr ""
|
| 523 |
|
| 524 |
+
#: includes/Gateway/Digital_Wallet.php:775
|
| 525 |
msgid "Unable to verify domain - missing access token."
|
| 526 |
msgstr ""
|
| 527 |
|
includes/Gateway/Digital_Wallet.php
CHANGED
|
@@ -258,7 +258,6 @@ class Digital_Wallet {
|
|
| 258 |
*/
|
| 259 |
public function get_product_payment_request( $product_id = 0, $quantity = 1, $attributes = array(), $add_to_cart = false ) {
|
| 260 |
$data = array();
|
| 261 |
-
$attributes = array();
|
| 262 |
$items = array();
|
| 263 |
$product_id = ! empty( $product_id ) ? $product_id : get_the_ID();
|
| 264 |
$product = wc_get_product( $product_id );
|
| 258 |
*/
|
| 259 |
public function get_product_payment_request( $product_id = 0, $quantity = 1, $attributes = array(), $add_to_cart = false ) {
|
| 260 |
$data = array();
|
|
|
|
| 261 |
$items = array();
|
| 262 |
$product_id = ! empty( $product_id ) ? $product_id : get_the_ID();
|
| 263 |
$product = wc_get_product( $product_id );
|
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.3.
|
| 46 |
|
| 47 |
/** plugin ID */
|
| 48 |
const PLUGIN_ID = 'square';
|
| 42 |
|
| 43 |
|
| 44 |
/** plugin version number */
|
| 45 |
+
const VERSION = '2.3.1';
|
| 46 |
|
| 47 |
/** plugin ID */
|
| 48 |
const PLUGIN_ID = 'square';
|
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.6
|
| 6 |
Requires PHP: 5.6
|
| 7 |
-
Stable tag: 2.3.
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
|
|
@@ -72,6 +72,9 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
|
|
| 72 |
|
| 73 |
== Changelog ==
|
| 74 |
|
|
|
|
|
|
|
|
|
|
| 75 |
= 2.3.0 - 2021.02.02 =
|
| 76 |
* Feature - Apple Pay and Google Pay support (US, UK and CA stores only). PR#547
|
| 77 |
* Fix - Duplicate `idempotency_key` issues caused by order IDs being re-used on the same store URL (i.e. after restoring from a backup). PR#563
|
| 4 |
Requires at least: 4.6
|
| 5 |
Tested up to: 5.6
|
| 6 |
Requires PHP: 5.6
|
| 7 |
+
Stable tag: 2.3.1
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
|
| 72 |
|
| 73 |
== Changelog ==
|
| 74 |
|
| 75 |
+
= 2.3.1 - 2021.02.03 =
|
| 76 |
+
* Fix - Add the correct variation to the cart when purchasing with Apple Pay and Google Pay from the product page. PR#581
|
| 77 |
+
|
| 78 |
= 2.3.0 - 2021.02.02 =
|
| 79 |
* Feature - Apple Pay and Google Pay support (US, UK and CA stores only). PR#547
|
| 80 |
* Fix - Duplicate `idempotency_key` issues caused by order IDs being re-used on the same store URL (i.e. after restoring from a backup). PR#563
|
woocommerce-square.php
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
* Plugin Name: WooCommerce Square
|
| 4 |
-
* Version: 2.3.
|
| 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.3.1
|
| 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
|
