Version Description
2021-06-11 =
Fix - Credit card icons and credit card input on custom shortcode checkout pages.
See changelog for all versions.
Download this release
Release Info
Developer | woothemes |
Plugin | WooCommerce Stripe Payment Gateway |
Version | 5.2.3 |
Comparing to | |
See all releases |
Code changes from version 5.2.2 to 5.2.3
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
*** Changelog ***
|
2 |
|
|
|
|
|
|
|
3 |
= 5.2.2 - 2021-06-10 =
|
4 |
* Fix - The absence of a cart causing fatal errors when rendering the Cart or Checkout block.
|
5 |
|
1 |
*** Changelog ***
|
2 |
|
3 |
+
= 5.2.3 - 2021-06-11 =
|
4 |
+
* Fix - Credit card icons and credit card input on custom shortcode checkout pages.
|
5 |
+
|
6 |
= 5.2.2 - 2021-06-10 =
|
7 |
* Fix - The absence of a cart causing fatal errors when rendering the Cart or Checkout block.
|
8 |
|
includes/class-wc-gateway-stripe.php
CHANGED
@@ -440,7 +440,7 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
|
|
440 |
public function payment_scripts() {
|
441 |
if (
|
442 |
! is_product()
|
443 |
-
&& ! WC_Stripe_Helper::
|
444 |
&& ! isset( $_GET['pay_for_order'] ) // wpcs: csrf ok.
|
445 |
&& ! is_add_payment_method_page()
|
446 |
&& ! isset( $_GET['change_payment_method'] ) // wpcs: csrf ok.
|
440 |
public function payment_scripts() {
|
441 |
if (
|
442 |
! is_product()
|
443 |
+
&& ! WC_Stripe_Helper::has_cart_or_checkout_on_current_page()
|
444 |
&& ! isset( $_GET['pay_for_order'] ) // wpcs: csrf ok.
|
445 |
&& ! is_add_payment_method_page()
|
446 |
&& ! isset( $_GET['change_payment_method'] ) // wpcs: csrf ok.
|
includes/class-wc-stripe-helper.php
CHANGED
@@ -599,13 +599,12 @@ class WC_Stripe_Helper {
|
|
599 |
}
|
600 |
|
601 |
/**
|
602 |
-
* Checks if this page
|
603 |
*
|
604 |
-
* @since 5.2.
|
605 |
* @return boolean
|
606 |
*/
|
607 |
-
public static function
|
608 |
-
return
|
609 |
-
|| wc_post_content_has_shortcode( 'woocommerce_checkout' );
|
610 |
}
|
611 |
}
|
599 |
}
|
600 |
|
601 |
/**
|
602 |
+
* Checks if this page is a cart or checkout page.
|
603 |
*
|
604 |
+
* @since 5.2.3
|
605 |
* @return boolean
|
606 |
*/
|
607 |
+
public static function has_cart_or_checkout_on_current_page() {
|
608 |
+
return is_cart() || is_checkout();
|
|
|
609 |
}
|
610 |
}
|
includes/payment-methods/class-wc-stripe-payment-request.php
CHANGED
@@ -654,7 +654,7 @@ class WC_Stripe_Payment_Request {
|
|
654 |
// If page is not supported, bail.
|
655 |
if (
|
656 |
! $this->is_product()
|
657 |
-
&& ! WC_Stripe_Helper::
|
658 |
&& ! isset( $_GET['pay_for_order'] )
|
659 |
) {
|
660 |
return;
|
654 |
// If page is not supported, bail.
|
655 |
if (
|
656 |
! $this->is_product()
|
657 |
+
&& ! WC_Stripe_Helper::has_cart_or_checkout_on_current_page()
|
658 |
&& ! isset( $_GET['pay_for_order'] )
|
659 |
) {
|
660 |
return;
|
languages/woocommerce-gateway-stripe.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce Stripe Gateway 5.2.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
8 |
-
"POT-Creation-Date: 2021-06-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce Stripe Gateway 5.2.3\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
8 |
+
"POT-Creation-Date: 2021-06-11 23:05:30+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: woocommerce, automattic, royho, akeda, mattyza, bor0, woothemes
|
3 |
Tags: credit card, stripe, apple pay, payment request, google pay, sepa, sofort, bancontact, alipay, giropay, ideal, p24, woocommerce, automattic
|
4 |
Requires at least: 4.4
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 5.2.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
Attributions: thorsten-stripe
|
@@ -126,7 +126,8 @@ If you get stuck, you can ask for help in the Plugin Forum.
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
-
= 5.2.
|
130 |
|
131 |
-
* Fix -
|
132 |
|
|
2 |
Contributors: woocommerce, automattic, royho, akeda, mattyza, bor0, woothemes
|
3 |
Tags: credit card, stripe, apple pay, payment request, google pay, sepa, sofort, bancontact, alipay, giropay, ideal, p24, woocommerce, automattic
|
4 |
Requires at least: 4.4
|
5 |
+
Tested up to: 5.7
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 5.2.3
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
Attributions: thorsten-stripe
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 5.2.3 - 2021-06-11 =
|
130 |
|
131 |
+
* Fix - Credit card icons and credit card input on custom shortcode checkout pages.
|
132 |
|
133 |
+
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).
|
woocommerce-gateway-stripe.php
CHANGED
@@ -5,11 +5,11 @@
|
|
5 |
* Description: Take credit card payments on your store using Stripe.
|
6 |
* Author: WooCommerce
|
7 |
* Author URI: https://woocommerce.com/
|
8 |
-
* Version: 5.2.
|
9 |
* Requires at least: 4.4
|
10 |
-
* Tested up to: 5.
|
11 |
* WC requires at least: 3.0
|
12 |
-
* WC tested up to: 5.
|
13 |
* Text Domain: woocommerce-gateway-stripe
|
14 |
* Domain Path: /languages
|
15 |
*/
|
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
21 |
/**
|
22 |
* Required minimums and constants
|
23 |
*/
|
24 |
-
define( 'WC_STRIPE_VERSION', '5.2.
|
25 |
define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
|
26 |
define( 'WC_STRIPE_MIN_WC_VER', '3.0' );
|
27 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '3.3' );
|
5 |
* Description: Take credit card payments on your store using Stripe.
|
6 |
* Author: WooCommerce
|
7 |
* Author URI: https://woocommerce.com/
|
8 |
+
* Version: 5.2.3
|
9 |
* Requires at least: 4.4
|
10 |
+
* Tested up to: 5.7
|
11 |
* WC requires at least: 3.0
|
12 |
+
* WC tested up to: 5.4
|
13 |
* Text Domain: woocommerce-gateway-stripe
|
14 |
* Domain Path: /languages
|
15 |
*/
|
21 |
/**
|
22 |
* Required minimums and constants
|
23 |
*/
|
24 |
+
define( 'WC_STRIPE_VERSION', '5.2.3' ); // WRCS: DEFINED_VERSION.
|
25 |
define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
|
26 |
define( 'WC_STRIPE_MIN_WC_VER', '3.0' );
|
27 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '3.3' );
|