Skip to content

Commit 2ec3d78

Browse files
committed
Merge remote-tracking branch 'origin/release/6.4.3' into trunk
2 parents 62eb705 + 28886f0 commit 2ec3d78

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

changelog.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*** Changelog ***
22

3-
= 6.5.0 - 2022-xx-xx =
3+
= 6.4.3 - 2022-06-30 =
4+
* Fix - Replace unnecessary throws with empty string when keys are invalid.
45

56
= 6.4.2 - 2022-06-29 =
67
* Fix - Fix terminal location creation if site title is missing.

includes/class-wc-gateway-stripe.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -992,31 +992,31 @@ public function process_admin_options() {
992992
public function validate_publishable_key_field( $key, $value ) {
993993
$value = $this->validate_text_field( $key, $value );
994994
if ( ! empty( $value ) && ! preg_match( '/^pk_live_/', $value ) ) {
995-
throw new Exception( __( 'The "Live Publishable Key" should start with "pk_live", enter the correct key.', 'woocommerce-gateway-stripe' ) );
995+
return '';
996996
}
997997
return $value;
998998
}
999999

10001000
public function validate_secret_key_field( $key, $value ) {
10011001
$value = $this->validate_text_field( $key, $value );
10021002
if ( ! empty( $value ) && ! preg_match( '/^[rs]k_live_/', $value ) ) {
1003-
throw new Exception( __( 'The "Live Secret Key" should start with "sk_live" or "rk_live", enter the correct key.', 'woocommerce-gateway-stripe' ) );
1003+
return '';
10041004
}
10051005
return $value;
10061006
}
10071007

10081008
public function validate_test_publishable_key_field( $key, $value ) {
10091009
$value = $this->validate_text_field( $key, $value );
10101010
if ( ! empty( $value ) && ! preg_match( '/^pk_test_/', $value ) ) {
1011-
throw new Exception( __( 'The "Test Publishable Key" should start with "pk_test", enter the correct key.', 'woocommerce-gateway-stripe' ) );
1011+
return '';
10121012
}
10131013
return $value;
10141014
}
10151015

10161016
public function validate_test_secret_key_field( $key, $value ) {
10171017
$value = $this->validate_text_field( $key, $value );
10181018
if ( ! empty( $value ) && ! preg_match( '/^[rs]k_test_/', $value ) ) {
1019-
throw new Exception( __( 'The "Test Secret Key" should start with "sk_test" or "rk_test", enter the correct key.', 'woocommerce-gateway-stripe' ) );
1019+
return '';
10201020
}
10211021
return $value;
10221022
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "woocommerce-gateway-stripe",
33
"title": "WooCommerce Gateway Stripe",
4-
"version": "6.4.2",
4+
"version": "6.4.3",
55
"license": "GPL-3.0",
66
"homepage": "http://wordpress.org/plugins/woocommerce-gateway-stripe/",
77
"repository": {

readme.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: credit card, stripe, apple pay, payment request, google pay, sepa, sofort,
44
Requires at least: 5.7
55
Tested up to: 5.9
66
Requires PHP: 7.0
7-
Stable tag: 6.4.2
7+
Stable tag: 6.4.3
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010
Attributions: thorsten-stripe
@@ -128,6 +128,7 @@ If you get stuck, you can ask for help in the Plugin Forum.
128128

129129
== Changelog ==
130130

131-
= 6.5.0 - 2022-xx-xx =
131+
= 6.4.3 - 2022-06-30 =
132+
* Fix - Replace unnecessary throws with empty string when keys are invalid.
132133

133134
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

woocommerce-gateway-stripe.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Take credit card payments on your store using Stripe.
66
* Author: WooCommerce
77
* Author URI: https://woocommerce.com/
8-
* Version: 6.4.2
8+
* Version: 6.4.3
99
* Requires at least: 5.7
1010
* Tested up to: 5.9
1111
* WC requires at least: 6.2
@@ -21,7 +21,7 @@
2121
/**
2222
* Required minimums and constants
2323
*/
24-
define( 'WC_STRIPE_VERSION', '6.4.2' ); // WRCS: DEFINED_VERSION.
24+
define( 'WC_STRIPE_VERSION', '6.4.3' ); // WRCS: DEFINED_VERSION.
2525
define( 'WC_STRIPE_MIN_PHP_VER', '7.0.0' );
2626
define( 'WC_STRIPE_MIN_WC_VER', '6.2' );
2727
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '6.3' );

0 commit comments

Comments
 (0)