From 86f06456e53f6c7438f9211f718b2a3760d4f6ee Mon Sep 17 00:00:00 2001 From: Wesley Rosa Date: Tue, 9 Sep 2025 17:11:11 -0300 Subject: [PATCH] Fix missing supports definitions for some methods --- .../payment-methods/class-wc-stripe-upe-payment-method-ach.php | 1 + .../payment-methods/class-wc-stripe-upe-payment-method-acss.php | 1 + .../class-wc-stripe-upe-payment-method-amazon-pay.php | 2 ++ .../payment-methods/class-wc-stripe-upe-payment-method-cc.php | 1 + .../payment-methods/class-wc-stripe-upe-payment-method-oc.php | 1 + .../payment-methods/class-wc-stripe-upe-payment-method-sepa.php | 2 ++ 6 files changed, 8 insertions(+) diff --git a/includes/payment-methods/class-wc-stripe-upe-payment-method-ach.php b/includes/payment-methods/class-wc-stripe-upe-payment-method-ach.php index a13e957a2b..83fe777fd0 100644 --- a/includes/payment-methods/class-wc-stripe-upe-payment-method-ach.php +++ b/includes/payment-methods/class-wc-stripe-upe-payment-method-ach.php @@ -31,6 +31,7 @@ public function __construct() { $this->supported_countries = [ 'US' ]; $this->supports[] = 'tokenization'; $this->supports[] = 'subscriptions'; + $this->supports[] = 'multiple_subscriptions'; // Check if subscriptions are enabled and add support for them. $this->maybe_init_subscriptions(); diff --git a/includes/payment-methods/class-wc-stripe-upe-payment-method-acss.php b/includes/payment-methods/class-wc-stripe-upe-payment-method-acss.php index 69db1b596f..4befec9cc0 100644 --- a/includes/payment-methods/class-wc-stripe-upe-payment-method-acss.php +++ b/includes/payment-methods/class-wc-stripe-upe-payment-method-acss.php @@ -29,6 +29,7 @@ public function __construct() { $this->supports_deferred_intent = false; $this->supports[] = 'tokenization'; $this->supports[] = 'subscriptions'; + $this->supports[] = 'multiple_subscriptions'; // Check if subscriptions are enabled and add support for them. $this->maybe_init_subscriptions(); diff --git a/includes/payment-methods/class-wc-stripe-upe-payment-method-amazon-pay.php b/includes/payment-methods/class-wc-stripe-upe-payment-method-amazon-pay.php index f29e70ee30..bb6abb3b7f 100644 --- a/includes/payment-methods/class-wc-stripe-upe-payment-method-amazon-pay.php +++ b/includes/payment-methods/class-wc-stripe-upe-payment-method-amazon-pay.php @@ -26,6 +26,8 @@ public function __construct() { 'woocommerce-gateway-stripe' ); $this->supports[] = 'tokenization'; + $this->supports[] = 'subscriptions'; + $this->supports[] = 'multiple_subscriptions'; // Check if subscriptions are enabled and add support for them. $this->maybe_init_subscriptions(); diff --git a/includes/payment-methods/class-wc-stripe-upe-payment-method-cc.php b/includes/payment-methods/class-wc-stripe-upe-payment-method-cc.php index db02502c53..bdb646617e 100644 --- a/includes/payment-methods/class-wc-stripe-upe-payment-method-cc.php +++ b/includes/payment-methods/class-wc-stripe-upe-payment-method-cc.php @@ -27,6 +27,7 @@ public function __construct() { $this->label = __( 'Credit / Debit Card', 'woocommerce-gateway-stripe' ); $this->supports[] = 'subscriptions'; $this->supports[] = 'tokenization'; + $this->supports[] = 'multiple_subscriptions'; $this->description = __( 'Let your customers pay with major credit and debit cards without leaving your store.', 'woocommerce-gateway-stripe' diff --git a/includes/payment-methods/class-wc-stripe-upe-payment-method-oc.php b/includes/payment-methods/class-wc-stripe-upe-payment-method-oc.php index 90683ce7ba..b84e81c03d 100644 --- a/includes/payment-methods/class-wc-stripe-upe-payment-method-oc.php +++ b/includes/payment-methods/class-wc-stripe-upe-payment-method-oc.php @@ -27,6 +27,7 @@ public function __construct() { $this->is_reusable = true; $this->supports[] = 'subscriptions'; $this->supports[] = 'tokenization'; + $this->supports[] = 'multiple_subscriptions'; } /** diff --git a/includes/payment-methods/class-wc-stripe-upe-payment-method-sepa.php b/includes/payment-methods/class-wc-stripe-upe-payment-method-sepa.php index 96cc1c088d..deea28bc65 100644 --- a/includes/payment-methods/class-wc-stripe-upe-payment-method-sepa.php +++ b/includes/payment-methods/class-wc-stripe-upe-payment-method-sepa.php @@ -30,6 +30,8 @@ public function __construct() { 'woocommerce-gateway-stripe' ); $this->supports[] = 'tokenization'; + $this->supports[] = 'subscriptions'; + $this->supports[] = 'multiple_subscriptions'; // SEPA Direct Debit is the tokenization method for this method as well as Bancontact and iDEAL. Init subscription so it can process subscription payments. $this->maybe_init_subscriptions();