Skip to content

Commit abccc4e

Browse files
Matt Allanjames-allanshendy-a8c
committed
Always load Stripe Billing integration to support previous US stores that have existing Stripe Billing subscriptions but switched countries (#10568)
Co-authored-by: James Allan <james.allan@automattic.com> Co-authored-by: Shendy <73803630+shendy-a8c@users.noreply.github.com>
1 parent 5e34ac0 commit abccc4e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fix
3+
4+
Resolved an issue on stores that had the Stripe Billing feature enabled (US-only) and then changed their store location to an ineligible country.

includes/class-wc-payments.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -754,10 +754,8 @@ function () {
754754
}
755755

756756
// Load Stripe Billing subscription integration.
757-
if ( WC_Payments_Features::is_stripe_billing_eligible() ) {
758-
include_once WCPAY_ABSPATH . '/includes/subscriptions/class-wc-payments-subscriptions.php';
759-
WC_Payments_Subscriptions::init( self::$api_client, self::$customer_service, self::$order_service, self::$account, self::$token_service );
760-
}
757+
include_once WCPAY_ABSPATH . '/includes/subscriptions/class-wc-payments-subscriptions.php';
758+
WC_Payments_Subscriptions::init( self::$api_client, self::$customer_service, self::$order_service, self::$account, self::$token_service );
761759

762760
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '7.9.0', '<' ) ) {
763761
add_action( 'woocommerce_onboarding_profile_data_updated', 'WC_Payments_Features::maybe_enable_wcpay_subscriptions_after_onboarding', 10, 2 );

0 commit comments

Comments
 (0)