Version Description
- 2022-11-11 =
- Fix - Issue where subscription renewal payments were being charged twice no longer present.
See changelog for all versions.
Download this release
Release Info
| Developer | automattic |
| Plugin | |
| Version | 7.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 7.0.0 to 7.0.1
changelog.txt
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
*** Changelog ***
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
= 7.0.0 - 2022-11-10 =
|
| 4 |
* Add - Update Express Checkout section UI.
|
| 5 |
* Add - Auto-complete first and last name on checkout form when using Link payment method.
|
| 1 |
*** Changelog ***
|
| 2 |
|
| 3 |
+
= 7.0.1 - 2022-11-11 =
|
| 4 |
+
* Fix - Issue where subscription renewal payments were being charged twice no longer present.
|
| 5 |
+
|
| 6 |
= 7.0.0 - 2022-11-10 =
|
| 7 |
* Add - Update Express Checkout section UI.
|
| 8 |
* Add - Auto-complete first and last name on checkout form when using Link payment method.
|
includes/admin/class-wc-stripe-inbox-notes.php
CHANGED
|
@@ -55,7 +55,7 @@ class WC_Stripe_Inbox_Notes {
|
|
| 55 |
WC_Stripe_UPE_Availability_Note::init();
|
| 56 |
|
| 57 |
require_once WC_STRIPE_PLUGIN_PATH . '/includes/notes/class-wc-stripe-upe-stripelink-note.php';
|
| 58 |
-
WC_Stripe_UPE_StripeLink_Note::init(
|
| 59 |
}
|
| 60 |
|
| 61 |
public static function get_campaign_2020_cutoff() {
|
| 55 |
WC_Stripe_UPE_Availability_Note::init();
|
| 56 |
|
| 57 |
require_once WC_STRIPE_PLUGIN_PATH . '/includes/notes/class-wc-stripe-upe-stripelink-note.php';
|
| 58 |
+
WC_Stripe_UPE_StripeLink_Note::init( WC_Stripe::get_instance()->get_main_stripe_gateway() );
|
| 59 |
}
|
| 60 |
|
| 61 |
public static function get_campaign_2020_cutoff() {
|
includes/notes/class-wc-stripe-upe-stripelink-note.php
CHANGED
|
@@ -67,12 +67,12 @@ class WC_Stripe_UPE_StripeLink_Note {
|
|
| 67 |
/**
|
| 68 |
* Init Link payment method notification
|
| 69 |
*
|
| 70 |
-
* @param
|
| 71 |
*
|
| 72 |
* @return void
|
| 73 |
* @throws \Automattic\WooCommerce\Admin\Notes\NotesUnavailableException
|
| 74 |
*/
|
| 75 |
-
public static function init(
|
| 76 |
if ( ! WC_Stripe_Feature_Flags::is_upe_checkout_enabled() ) {
|
| 77 |
return;
|
| 78 |
}
|
|
@@ -84,6 +84,10 @@ class WC_Stripe_UPE_StripeLink_Note {
|
|
| 84 |
return;
|
| 85 |
}
|
| 86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
// If store currency is not USD, skip
|
| 88 |
if ( 'USD' !== get_woocommerce_currency() ) {
|
| 89 |
return;
|
| 67 |
/**
|
| 68 |
* Init Link payment method notification
|
| 69 |
*
|
| 70 |
+
* @param WC_Stripe_Payment_Gateway $gateway
|
| 71 |
*
|
| 72 |
* @return void
|
| 73 |
* @throws \Automattic\WooCommerce\Admin\Notes\NotesUnavailableException
|
| 74 |
*/
|
| 75 |
+
public static function init( WC_Stripe_Payment_Gateway $gateway ) {
|
| 76 |
if ( ! WC_Stripe_Feature_Flags::is_upe_checkout_enabled() ) {
|
| 77 |
return;
|
| 78 |
}
|
| 84 |
return;
|
| 85 |
}
|
| 86 |
|
| 87 |
+
if ( ! is_a( $gateway, 'WC_Stripe_UPE_Payment_Gateway' ) ) {
|
| 88 |
+
return;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
// If store currency is not USD, skip
|
| 92 |
if ( 'USD' !== get_woocommerce_currency() ) {
|
| 93 |
return;
|
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 7.0.
|
| 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-11-
|
| 13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
| 14 |
"X-Generator: WP-CLI 2.7.1\n"
|
| 15 |
"X-Domain: woocommerce-gateway-stripe\n"
|
| 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 7.0.1\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-11-11T05:47:54+00:00\n"
|
| 13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
| 14 |
"X-Generator: WP-CLI 2.7.1\n"
|
| 15 |
"X-Domain: woocommerce-gateway-stripe\n"
|
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: 6.0
|
| 6 |
Requires PHP: 7.0
|
| 7 |
-
Stable tag: 7.0.
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
|
@@ -128,12 +128,7 @@ If you get stuck, you can ask for help in the Plugin Forum.
|
|
| 128 |
|
| 129 |
== Changelog ==
|
| 130 |
|
| 131 |
-
= 7.0.
|
| 132 |
-
*
|
| 133 |
-
* Add - Auto-complete first and last name on checkout form when using Link payment method.
|
| 134 |
-
* Add - Allow subscription orders to be paid with Link payment method.
|
| 135 |
-
* Add - Add inbox notification for Link payment method.
|
| 136 |
-
* Tweak - Adjust texts and links in WC admin advanced settings.
|
| 137 |
-
* Add - Restrict the Link payment method only for US merchants.
|
| 138 |
|
| 139 |
[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: 6.0
|
| 6 |
Requires PHP: 7.0
|
| 7 |
+
Stable tag: 7.0.1
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
| 128 |
|
| 129 |
== Changelog ==
|
| 130 |
|
| 131 |
+
= 7.0.1 - 2022-11-11 =
|
| 132 |
+
* Fix - Issue where subscription renewal payments were being charged twice no longer present.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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: 7.0.
|
| 9 |
* Requires at least: 5.8
|
| 10 |
* Tested up to: 6.0
|
| 11 |
* WC requires at least: 6.8
|
|
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 21 |
/**
|
| 22 |
* Required minimums and constants
|
| 23 |
*/
|
| 24 |
-
define( 'WC_STRIPE_VERSION', '7.0.
|
| 25 |
define( 'WC_STRIPE_MIN_PHP_VER', '7.3.0' );
|
| 26 |
define( 'WC_STRIPE_MIN_WC_VER', '6.8' );
|
| 27 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '6.9' );
|
|
@@ -63,14 +63,14 @@ function woocommerce_gateway_stripe() {
|
|
| 63 |
/**
|
| 64 |
* The *Singleton* instance of this class
|
| 65 |
*
|
| 66 |
-
* @var
|
| 67 |
*/
|
| 68 |
private static $instance;
|
| 69 |
|
| 70 |
/**
|
| 71 |
* Returns the *Singleton* instance of this class.
|
| 72 |
*
|
| 73 |
-
* @return
|
| 74 |
*/
|
| 75 |
public static function get_instance() {
|
| 76 |
if ( null === self::$instance ) {
|
| 5 |
* Description: Take credit card payments on your store using Stripe.
|
| 6 |
* Author: WooCommerce
|
| 7 |
* Author URI: https://woocommerce.com/
|
| 8 |
+
* Version: 7.0.1
|
| 9 |
* Requires at least: 5.8
|
| 10 |
* Tested up to: 6.0
|
| 11 |
* WC requires at least: 6.8
|
| 21 |
/**
|
| 22 |
* Required minimums and constants
|
| 23 |
*/
|
| 24 |
+
define( 'WC_STRIPE_VERSION', '7.0.1' ); // WRCS: DEFINED_VERSION.
|
| 25 |
define( 'WC_STRIPE_MIN_PHP_VER', '7.3.0' );
|
| 26 |
define( 'WC_STRIPE_MIN_WC_VER', '6.8' );
|
| 27 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '6.9' );
|
| 63 |
/**
|
| 64 |
* The *Singleton* instance of this class
|
| 65 |
*
|
| 66 |
+
* @var WC_Stripe
|
| 67 |
*/
|
| 68 |
private static $instance;
|
| 69 |
|
| 70 |
/**
|
| 71 |
* Returns the *Singleton* instance of this class.
|
| 72 |
*
|
| 73 |
+
* @return WC_Stripe The *Singleton* instance.
|
| 74 |
*/
|
| 75 |
public static function get_instance() {
|
| 76 |
if ( null === self::$instance ) {
|
