Version Description
- 2019-02-01 =
- Fix - Idempotency key reuse issue when checking out.
Download this release
Release Info
Developer | ferdev |
Plugin | WooCommerce Square |
Version | 1.0.35 |
Comparing to | |
See all releases |
Code changes from version 1.0.34 to 1.0.35
- changelog.txt +3 -0
- includes/payment/class-wc-square-gateway.php +1 -1
- languages/woocommerce-square.pot +5 -5
- readme.txt +4 -1
- woocommerce-square.php +2 -2
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
*** WooCommerce Square Changelog ***
|
2 |
|
|
|
|
|
|
|
3 |
= 1.0.34 - 2018-11-07 =
|
4 |
* Update - Fieldset tag to div tag in payment box to prevent unwanted styling.
|
5 |
* Fix - Provide unique idempotency ID to the order instead of random unique number.
|
1 |
*** WooCommerce Square Changelog ***
|
2 |
|
3 |
+
= 1.0.35 - 2019-02-01 =
|
4 |
+
* Fix - Idempotency key reuse issue when checking out.
|
5 |
+
|
6 |
= 1.0.34 - 2018-11-07 =
|
7 |
* Update - Fieldset tag to div tag in payment box to prevent unwanted styling.
|
8 |
* Fix - Provide unique idempotency ID to the order instead of random unique number.
|
includes/payment/class-wc-square-gateway.php
CHANGED
@@ -289,7 +289,7 @@ class WC_Square_Gateway extends WC_Payment_Gateway {
|
|
289 |
|
290 |
try {
|
291 |
$data = array(
|
292 |
-
'idempotency_key' => apply_filters( 'woocommerce_square_idempotency_key',
|
293 |
'amount_money' => array(
|
294 |
'amount' => (int) WC_Square_Utils::format_amount_to_square( $order->get_total(), $currency ),
|
295 |
'currency' => $currency,
|
289 |
|
290 |
try {
|
291 |
$data = array(
|
292 |
+
'idempotency_key' => apply_filters( 'woocommerce_square_idempotency_key', uniqid(), $order ),
|
293 |
'amount_money' => array(
|
294 |
'amount' => (int) WC_Square_Utils::format_amount_to_square( $order->get_total(), $currency ),
|
295 |
'currency' => $currency,
|
languages/woocommerce-square.pot
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the WooCommerce Square package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce Square 1.0.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://github.com/woocommerce/woocommerce-square/issues\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-i18n1.0.
|
16 |
|
17 |
#: includes/admin/class-wc-square-admin-integration.php:20
|
18 |
#: includes/admin/class-wc-square-privacy.php:12
|
1 |
+
# Copyright (C) 2019 WooCommerce
|
2 |
# This file is distributed under the same license as the WooCommerce Square package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce Square 1.0.35\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://github.com/woocommerce/woocommerce-square/issues\n"
|
8 |
+
"POT-Creation-Date: 2019-02-01 18:23:59+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: 2019-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-i18n1.0.1\n"
|
16 |
|
17 |
#: includes/admin/class-wc-square-admin-integration.php:20
|
18 |
#: includes/admin/class-wc-square-privacy.php:12
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: credit card, square, woocommerce, inventory sync
|
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 5.0
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -57,6 +57,9 @@ If you get stuck, you can ask for help in the Plugin Forum.
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
60 |
= 1.0.34 - 2018-11-07 =
|
61 |
* Update - Fieldset tag to div tag in payment box to prevent unwanted styling.
|
62 |
* Fix - Provide unique idempotency ID to the order instead of random unique number.
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 5.0
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 1.0.35
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 1.0.35 - 2019-02-01 =
|
61 |
+
* Fix - Idempotency key reuse issue when checking out.
|
62 |
+
|
63 |
= 1.0.34 - 2018-11-07 =
|
64 |
* Update - Fieldset tag to div tag in payment box to prevent unwanted styling.
|
65 |
* Fix - Provide unique idempotency ID to the order instead of random unique number.
|
woocommerce-square.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Square
|
4 |
-
* Version: 1.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
|
@@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
23 |
|
24 |
if ( ! class_exists( 'Woocommerce_Square' ) ) :
|
25 |
|
26 |
-
define( 'WC_SQUARE_VERSION', '1.0.
|
27 |
|
28 |
/**
|
29 |
* Main class.
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Square
|
4 |
+
* Version: 1.0.35
|
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
|
23 |
|
24 |
if ( ! class_exists( 'Woocommerce_Square' ) ) :
|
25 |
|
26 |
+
define( 'WC_SQUARE_VERSION', '1.0.35' );
|
27 |
|
28 |
/**
|
29 |
* Main class.
|