Skip to content

Commit 1833465

Browse files
author
Kristófer R
committed
Merge branch 'trunk' into develop
2 parents d380487 + 7f3cbdd commit 1833465

File tree

7 files changed

+17
-10
lines changed

7 files changed

+17
-10
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
= 7.1.0 - 2022-xx-xx =
44

5+
= 7.0.1 - 2022-11-11 =
6+
* Fix - Issue where subscription renewal payments were being charged twice no longer present.
7+
58
= 7.0.0 - 2022-11-10 =
69
* Add - Update Express Checkout section UI.
710
* Add - Auto-complete first and last name on checkout form when using Link payment method.

includes/admin/class-wc-stripe-inbox-notes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static function create_upe_notes() {
5555
WC_Stripe_UPE_Availability_Note::init();
5656

5757
require_once WC_STRIPE_PLUGIN_PATH . '/includes/notes/class-wc-stripe-upe-stripelink-note.php';
58-
WC_Stripe_UPE_StripeLink_Note::init( new WC_Stripe_UPE_Payment_Gateway() );
58+
WC_Stripe_UPE_StripeLink_Note::init( WC_Stripe::get_instance()->get_main_stripe_gateway() );
5959
}
6060

6161
public static function get_campaign_2020_cutoff() {

includes/notes/class-wc-stripe-upe-stripelink-note.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ private static function get_note_class() {
6767
/**
6868
* Init Link payment method notification
6969
*
70-
* @param WC_Stripe_UPE_Payment_Gateway $gateway
70+
* @param WC_Stripe_Payment_Gateway $gateway
7171
*
7272
* @return void
7373
* @throws \Automattic\WooCommerce\Admin\Notes\NotesUnavailableException
7474
*/
75-
public static function init( WC_Stripe_UPE_Payment_Gateway $gateway ) {
75+
public static function init( WC_Stripe_Payment_Gateway $gateway ) {
7676
if ( ! WC_Stripe_Feature_Flags::is_upe_checkout_enabled() ) {
7777
return;
7878
}
@@ -84,6 +84,10 @@ public static function init( WC_Stripe_UPE_Payment_Gateway $gateway ) {
8484
return;
8585
}
8686

87+
if ( ! is_a( $gateway, 'WC_Stripe_UPE_Payment_Gateway' ) ) {
88+
return;
89+
}
90+
8791
// If store currency is not USD, skip
8892
if ( 'USD' !== get_woocommerce_currency() ) {
8993
return;

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": "7.0.0",
4+
"version": "7.0.1",
55
"license": "GPL-3.0",
66
"homepage": "http://wordpress.org/plugins/woocommerce-gateway-stripe/",
77
"repository": {

readme.txt

Lines changed: 1 addition & 1 deletion
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: 6.0
66
Requires PHP: 7.0
7-
Stable tag: 7.0.0
7+
Stable tag: 7.0.1
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010
Attributions: thorsten-stripe

woocommerce-gateway-stripe.php

Lines changed: 4 additions & 4 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: 7.0.0
8+
* Version: 7.0.1
99
* Requires at least: 5.8
1010
* Tested up to: 6.0
1111
* WC requires at least: 6.8
@@ -21,7 +21,7 @@
2121
/**
2222
* Required minimums and constants
2323
*/
24-
define( 'WC_STRIPE_VERSION', '7.0.0' ); // WRCS: DEFINED_VERSION.
24+
define( 'WC_STRIPE_VERSION', '7.0.1' ); // WRCS: DEFINED_VERSION.
2525
define( 'WC_STRIPE_MIN_PHP_VER', '7.3.0' );
2626
define( 'WC_STRIPE_MIN_WC_VER', '6.8' );
2727
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '6.9' );
@@ -63,14 +63,14 @@ class WC_Stripe {
6363
/**
6464
* The *Singleton* instance of this class
6565
*
66-
* @var Singleton
66+
* @var WC_Stripe
6767
*/
6868
private static $instance;
6969

7070
/**
7171
* Returns the *Singleton* instance of this class.
7272
*
73-
* @return Singleton The *Singleton* instance.
73+
* @return WC_Stripe The *Singleton* instance.
7474
*/
7575
public static function get_instance() {
7676
if ( null === self::$instance ) {

0 commit comments

Comments
 (0)