Version Description
- 2022-06-30 =
- Fix - Replace unnecessary throws with empty string when keys are invalid.
See changelog for all versions.
Download this release
Release Info
| Developer | automattic |
| Plugin | |
| Version | 6.4.3 |
| Comparing to | |
| See all releases | |
Code changes from version 6.4.2 to 6.4.3
- changelog.txt +3 -0
- includes/class-wc-gateway-stripe.php +4 -4
- languages/woocommerce-gateway-stripe.pot +2 -6
- readme.txt +3 -4
- woocommerce-gateway-stripe.php +2 -2
changelog.txt
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
*** Changelog ***
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
= 6.4.2 - 2022-06-29 =
|
| 4 |
* Fix - Fix terminal location creation if site title is missing.
|
| 5 |
* Fix - Add compatibility with WooCommerce 6.6.
|
| 1 |
*** Changelog ***
|
| 2 |
|
| 3 |
+
= 6.4.3 - 2022-06-30 =
|
| 4 |
+
* Fix - Replace unnecessary throws with empty string when keys are invalid.
|
| 5 |
+
|
| 6 |
= 6.4.2 - 2022-06-29 =
|
| 7 |
* Fix - Fix terminal location creation if site title is missing.
|
| 8 |
* Fix - Add compatibility with WooCommerce 6.6.
|
includes/class-wc-gateway-stripe.php
CHANGED
|
@@ -992,7 +992,7 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
|
|
| 992 |
public function validate_publishable_key_field( $key, $value ) {
|
| 993 |
$value = $this->validate_text_field( $key, $value );
|
| 994 |
if ( ! empty( $value ) && ! preg_match( '/^pk_live_/', $value ) ) {
|
| 995 |
-
|
| 996 |
}
|
| 997 |
return $value;
|
| 998 |
}
|
|
@@ -1000,7 +1000,7 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
|
|
| 1000 |
public function validate_secret_key_field( $key, $value ) {
|
| 1001 |
$value = $this->validate_text_field( $key, $value );
|
| 1002 |
if ( ! empty( $value ) && ! preg_match( '/^[rs]k_live_/', $value ) ) {
|
| 1003 |
-
|
| 1004 |
}
|
| 1005 |
return $value;
|
| 1006 |
}
|
|
@@ -1008,7 +1008,7 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
|
|
| 1008 |
public function validate_test_publishable_key_field( $key, $value ) {
|
| 1009 |
$value = $this->validate_text_field( $key, $value );
|
| 1010 |
if ( ! empty( $value ) && ! preg_match( '/^pk_test_/', $value ) ) {
|
| 1011 |
-
|
| 1012 |
}
|
| 1013 |
return $value;
|
| 1014 |
}
|
|
@@ -1016,7 +1016,7 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
|
|
| 1016 |
public function validate_test_secret_key_field( $key, $value ) {
|
| 1017 |
$value = $this->validate_text_field( $key, $value );
|
| 1018 |
if ( ! empty( $value ) && ! preg_match( '/^[rs]k_test_/', $value ) ) {
|
| 1019 |
-
|
| 1020 |
}
|
| 1021 |
return $value;
|
| 1022 |
}
|
| 992 |
public function validate_publishable_key_field( $key, $value ) {
|
| 993 |
$value = $this->validate_text_field( $key, $value );
|
| 994 |
if ( ! empty( $value ) && ! preg_match( '/^pk_live_/', $value ) ) {
|
| 995 |
+
return '';
|
| 996 |
}
|
| 997 |
return $value;
|
| 998 |
}
|
| 1000 |
public function validate_secret_key_field( $key, $value ) {
|
| 1001 |
$value = $this->validate_text_field( $key, $value );
|
| 1002 |
if ( ! empty( $value ) && ! preg_match( '/^[rs]k_live_/', $value ) ) {
|
| 1003 |
+
return '';
|
| 1004 |
}
|
| 1005 |
return $value;
|
| 1006 |
}
|
| 1008 |
public function validate_test_publishable_key_field( $key, $value ) {
|
| 1009 |
$value = $this->validate_text_field( $key, $value );
|
| 1010 |
if ( ! empty( $value ) && ! preg_match( '/^pk_test_/', $value ) ) {
|
| 1011 |
+
return '';
|
| 1012 |
}
|
| 1013 |
return $value;
|
| 1014 |
}
|
| 1016 |
public function validate_test_secret_key_field( $key, $value ) {
|
| 1017 |
$value = $this->validate_text_field( $key, $value );
|
| 1018 |
if ( ! empty( $value ) && ! preg_match( '/^[rs]k_test_/', $value ) ) {
|
| 1019 |
+
return '';
|
| 1020 |
}
|
| 1021 |
return $value;
|
| 1022 |
}
|
languages/woocommerce-gateway-stripe.pot
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: WooCommerce Stripe Gateway 6.4.
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
| 7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 12 |
-
"POT-Creation-Date: 2022-06-
|
| 13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
| 14 |
"X-Generator: WP-CLI 2.5.0\n"
|
| 15 |
"X-Domain: woocommerce-gateway-stripe\n"
|
|
@@ -210,22 +210,18 @@ msgid "Your Stripe testing webhook endpoint URL, obtained from your Stripe dashb
|
|
| 210 |
msgstr ""
|
| 211 |
|
| 212 |
#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:139
|
| 213 |
-
#: includes/class-wc-gateway-stripe.php:995
|
| 214 |
msgid "The \"Live Publishable Key\" should start with \"pk_live\", enter the correct key."
|
| 215 |
msgstr ""
|
| 216 |
|
| 217 |
#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:151
|
| 218 |
-
#: includes/class-wc-gateway-stripe.php:1003
|
| 219 |
msgid "The \"Live Secret Key\" should start with \"sk_live\" or \"rk_live\", enter the correct key."
|
| 220 |
msgstr ""
|
| 221 |
|
| 222 |
#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:163
|
| 223 |
-
#: includes/class-wc-gateway-stripe.php:1011
|
| 224 |
msgid "The \"Test Publishable Key\" should start with \"pk_test\", enter the correct key."
|
| 225 |
msgstr ""
|
| 226 |
|
| 227 |
#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:175
|
| 228 |
-
#: includes/class-wc-gateway-stripe.php:1019
|
| 229 |
msgid "The \"Test Secret Key\" should start with \"sk_test\" or \"rk_test\", enter the correct key."
|
| 230 |
msgstr ""
|
| 231 |
|
| 2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: WooCommerce Stripe Gateway 6.4.3\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
| 7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 12 |
+
"POT-Creation-Date: 2022-06-30T03:30:31+00:00\n"
|
| 13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
| 14 |
"X-Generator: WP-CLI 2.5.0\n"
|
| 15 |
"X-Domain: woocommerce-gateway-stripe\n"
|
| 210 |
msgstr ""
|
| 211 |
|
| 212 |
#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:139
|
|
|
|
| 213 |
msgid "The \"Live Publishable Key\" should start with \"pk_live\", enter the correct key."
|
| 214 |
msgstr ""
|
| 215 |
|
| 216 |
#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:151
|
|
|
|
| 217 |
msgid "The \"Live Secret Key\" should start with \"sk_live\" or \"rk_live\", enter the correct key."
|
| 218 |
msgstr ""
|
| 219 |
|
| 220 |
#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:163
|
|
|
|
| 221 |
msgid "The \"Test Publishable Key\" should start with \"pk_test\", enter the correct key."
|
| 222 |
msgstr ""
|
| 223 |
|
| 224 |
#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:175
|
|
|
|
| 225 |
msgid "The \"Test Secret Key\" should start with \"sk_test\" or \"rk_test\", enter the correct key."
|
| 226 |
msgstr ""
|
| 227 |
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: credit card, stripe, apple pay, payment request, google pay, sepa, sofort,
|
|
| 4 |
Requires at least: 5.7
|
| 5 |
Tested up to: 5.9
|
| 6 |
Requires PHP: 7.0
|
| 7 |
-
Stable tag: 6.4.
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
|
@@ -128,8 +128,7 @@ If you get stuck, you can ask for help in the Plugin Forum.
|
|
| 128 |
|
| 129 |
== Changelog ==
|
| 130 |
|
| 131 |
-
= 6.4.
|
| 132 |
-
* Fix -
|
| 133 |
-
* Fix - Add compatibility with WooCommerce 6.6.
|
| 134 |
|
| 135 |
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).
|
| 4 |
Requires at least: 5.7
|
| 5 |
Tested up to: 5.9
|
| 6 |
Requires PHP: 7.0
|
| 7 |
+
Stable tag: 6.4.3
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
| 128 |
|
| 129 |
== Changelog ==
|
| 130 |
|
| 131 |
+
= 6.4.3 - 2022-06-30 =
|
| 132 |
+
* Fix - Replace unnecessary throws with empty string when keys are invalid.
|
|
|
|
| 133 |
|
| 134 |
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).
|
woocommerce-gateway-stripe.php
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
* Description: Take credit card payments on your store using Stripe.
|
| 6 |
* Author: WooCommerce
|
| 7 |
* Author URI: https://woocommerce.com/
|
| 8 |
-
* Version: 6.4.
|
| 9 |
* Requires at least: 5.7
|
| 10 |
* Tested up to: 5.9
|
| 11 |
* WC requires at least: 6.2
|
|
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 21 |
/**
|
| 22 |
* Required minimums and constants
|
| 23 |
*/
|
| 24 |
-
define( 'WC_STRIPE_VERSION', '6.4.
|
| 25 |
define( 'WC_STRIPE_MIN_PHP_VER', '7.0.0' );
|
| 26 |
define( 'WC_STRIPE_MIN_WC_VER', '6.2' );
|
| 27 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '6.3' );
|
| 5 |
* Description: Take credit card payments on your store using Stripe.
|
| 6 |
* Author: WooCommerce
|
| 7 |
* Author URI: https://woocommerce.com/
|
| 8 |
+
* Version: 6.4.3
|
| 9 |
* Requires at least: 5.7
|
| 10 |
* Tested up to: 5.9
|
| 11 |
* WC requires at least: 6.2
|
| 21 |
/**
|
| 22 |
* Required minimums and constants
|
| 23 |
*/
|
| 24 |
+
define( 'WC_STRIPE_VERSION', '6.4.3' ); // WRCS: DEFINED_VERSION.
|
| 25 |
define( 'WC_STRIPE_MIN_PHP_VER', '7.0.0' );
|
| 26 |
define( 'WC_STRIPE_MIN_WC_VER', '6.2' );
|
| 27 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '6.3' );
|
