Skip to content

Commit f6ec664

Browse files
committed
Merge branch 'trunk' into develop
2 parents 35b0614 + 8e22fbc commit f6ec664

11 files changed

+42
-85
lines changed

changelog.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
*** Changelog ***
22

3-
= 9.4.0 - xxxx-xx-xx =
3+
= 9.5.0 - xxxx-xx-xx =
44
* Tweak - Removes the Stripe icon beside the Smart Checkout payment element from the checkout pages.
55
* Add - New setting to allow merchants to set their preferred title for the Smart Checkout payment element. Defaults to "Stripe".
66
* Dev - Implements the new Stripe order class into the compatibility classes.
77
* Dev - Updates the Code Sniffer package to version 1.0.0.
8+
9+
= 9.4.0 - 2025-04-16 =
810
* Add - New filter to allow merchants to bypass the default visibility of the express payment method buttons when taxes are based on customer's billing address (`wc_stripe_should_hide_express_checkout_button_based_on_tax_setup`).
911
* Dev - Improves Smart Checkout code with shared and new methods, on both front and backend.
1012
* Fix - Fixes the saving of payment methods when Smart Checkout is enabled.
@@ -64,9 +66,9 @@
6466
* Fix - Ensure the subscription and pre-order objects are not converted into a Stripe order object in legacy experience.
6567
* Update - Credit and Bank (BECS and ACSS) icons on the Block checkout page.
6668
* Fix - Fix BLIK visibility based on account and billing countries.
67-
* Fix - Prepare mandate data from subscription object on change payment method page.
6869
* Add - Use Stripe Configuration API to manage payment methods enabled/disabled states.
6970
* Dev - Add track events when enabling/disabling payment methods.
71+
* Fix - Prepare mandate data from subscription object on change payment method page.
7072

7173
= 9.3.2 - 2025-04-10 =
7274
* Fix - Fix express checkout for block cart and block checkout for WooCommerce 9.8.0+.

includes/admin/class-wc-rest-stripe-settings-controller.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,9 @@ private function update_enabled_payment_methods( $payment_method_ids_to_enable,
661661
return;
662662
}
663663

664-
$this->gateway->update_enabled_payment_methods( $payment_method_ids_to_enable );
664+
if ( $this->gateway instanceof WC_Stripe_UPE_Payment_Gateway ) {
665+
$this->gateway->update_enabled_payment_methods( $payment_method_ids_to_enable );
666+
}
665667
}
666668

667669
/**

includes/class-wc-stripe-blocks-support.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,15 @@ final class WC_Stripe_Blocks_Support extends AbstractPaymentMethodType {
4343
public function __construct( $payment_request_configuration = null, $express_checkout_configuration = null ) {
4444
add_action( 'woocommerce_rest_checkout_process_payment_with_context', [ $this, 'add_payment_request_order_meta' ], 8, 2 );
4545
add_action( 'woocommerce_rest_checkout_process_payment_with_context', [ $this, 'add_stripe_intents' ], 9999, 2 );
46-
$this->payment_request_configuration = null !== $payment_request_configuration ? $payment_request_configuration : new WC_Stripe_Payment_Request();
47-
$this->express_checkout_configuration = null !== $express_checkout_configuration ? $express_checkout_configuration : new WC_Stripe_Express_Checkout_Element();
46+
$this->payment_request_configuration = null !== $payment_request_configuration ? $payment_request_configuration : new WC_Stripe_Payment_Request();
47+
48+
if ( null === $express_checkout_configuration ) {
49+
$gateway = WC_Stripe::get_instance()->get_main_stripe_gateway();
50+
$helper = new WC_Stripe_Express_Checkout_Helper( $gateway );
51+
$ajax_handler = new WC_Stripe_Express_Checkout_Ajax_Handler( $helper );
52+
$express_checkout_configuration = new WC_Stripe_Express_Checkout_Element( $ajax_handler, $helper );
53+
}
54+
$this->express_checkout_configuration = $express_checkout_configuration;
4855
}
4956

5057
/**

includes/class-wc-stripe-intent-controller.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ public function update_payment_intent_ajax() {
430430
* Updates payment intent or setup intent to be able to save payment method.
431431
*
432432
* @since 5.6.0
433-
* @version x.x.x
433+
* @version 9.4.0
434434
*
435435
* @param {string} $intent_id The id of the payment intent or setup intent to update.
436436
* @param {int} $order_id The id of the order if intent created from Order.
@@ -520,7 +520,7 @@ public function update_intent( $intent_id = '', $order_id = null, $save_payment_
520520
* Handle AJAX requests for creating a setup intent without confirmation for Stripe UPE.
521521
*
522522
* @since 5.6.0
523-
* @version x.x.x
523+
* @version 9.4.0
524524
*/
525525
public function init_setup_intent_ajax() {
526526
try {
@@ -548,7 +548,7 @@ public function init_setup_intent_ajax() {
548548
* Creates a setup intent without confirmation.
549549
*
550550
* @since 5.6.0
551-
* @version x.x.x
551+
* @version 9.4.0
552552
*
553553
* @param string|null $payment_method_type The type of payment method to use for the intent.
554554
* @return array

includes/payment-tokens/class-wc-stripe-acss-payment-token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* Token for ACSS.
1212
*
13-
* @since x.x.x
13+
* @since 9.4.0
1414
*/
1515
class WC_Payment_Token_ACSS extends WC_Payment_Token implements WC_Stripe_Payment_Method_Comparison_Interface {
1616
use WC_Stripe_Fingerprint_Trait;

includes/payment-tokens/class-wc-stripe-becs-debit-payment-token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Representation of a payment token for BECS.
1313
*
1414
* @class WC_Payment_Token_Becs_Debit
15-
* @since x.x.x
15+
* @since 9.4.0
1616
*/
1717
class WC_Payment_Token_Becs_Debit extends WC_Payment_Token implements WC_Stripe_Payment_Method_Comparison_Interface {
1818

includes/payment-tokens/class-wc-stripe-payment-tokens.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public static function get_instance() {
6565
/**
6666
* Normalizes the payment method labels on My Account page.
6767
*
68-
* @since x.x.x
69-
* @version x.x.x
68+
* @since 9.4.0
69+
* @version 9.4.0
7070
* @param string $label
7171
* @return string $label
7272
*/

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

readme.txt

Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: credit card, stripe, apple pay, payment request, google pay, sepa, bancont
44
Requires at least: 6.5
55
Tested up to: 6.7
66
Requires PHP: 7.4
7-
Stable tag: 9.3.2
7+
Stable tag: 9.4.0
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010
Attributions: thorsten-stripe
@@ -110,72 +110,10 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
110110

111111
== Changelog ==
112112

113-
= 9.4.0 - xxxx-xx-xx =
113+
= 9.5.0 - xxxx-xx-xx =
114114
* Tweak - Removes the Stripe icon beside the Smart Checkout payment element from the checkout pages.
115115
* Add - New setting to allow merchants to set their preferred title for the Smart Checkout payment element. Defaults to "Stripe".
116116
* Dev - Implements the new Stripe order class into the compatibility classes.
117117
* Dev - Updates the Code Sniffer package to version 1.0.0.
118-
* Add - New filter to allow merchants to bypass the default visibility of the express payment method buttons when taxes are based on customer's billing address (`wc_stripe_should_hide_express_checkout_button_based_on_tax_setup`).
119-
* Dev - Improves Smart Checkout code with shared and new methods, on both front and backend.
120-
* Fix - Fixes the saving of payment methods when Smart Checkout is enabled.
121-
* Tweak - Correctly handles the display of payment method instructions when Smart Checkout is enabled.
122-
* Dev - Implements the new Stripe order class into abstract/base classes, and the webhook handler.
123-
* Dev - Implements the new Stripe order class into the legacy checkout classes.
124-
* Dev - Do not generate filenames with underscores.
125-
* Fix - Fixes the Stripe checkout container visuals when Smart Checkout is disabled.
126-
* Dev - Implements the new Stripe order class into the express checkout classes.
127-
* Dev - Implements the new Stripe order class into the wp-admin related classes.
128-
* Dev - Replaces references to order status values with their respective constants from the WooCommerce plugin.
129-
* Tweak - Updates the Smart Checkout (classic/shortcode checkout version) to make all the payment methods look as similar as possible to any other WooCommerce payment method.
130-
* Tweak - Updates the Smart Checkout (block checkout version) to make all the payment methods look as similar as possible to any other WooCommerce payment method.
131-
* Fix - Improves the subscriptions detached admin notice, making it less intrusive and limiting the querying to 5 subscriptions (avoiding slow loading times).
132-
* Dev - Implements the new Stripe order class into the PHP unit tests.
133-
* Dev - Introduces new payment method constants for the express methods: Google Pay, Apple Pay, Link, and Amazon Pay (backend version).
134-
* Dev - Introduces a new Stripe Order class to wrap Stripe-specific logic and data on the backend.
135-
* Dev - Improves how we handle express payment method titles by introducing new constants and methods to replace duplicate code.
136-
* Fix - Fixes an issue where the order signature retrieval method could throw a fatal error when the received order parameter is actually an OrderRefund object (instead of a WC_Order).
137-
* Fix - Fixes a possible fatal error when a product added to the cart cannot be found (with Payment Request Buttons).
138-
* Add - Add Amazon Pay payment method class.
139-
* Add - Implements the Single Payment Element feature for the new checkout experience on the classic/shortcode checkout page.
140-
* Tweak - Record a Tracks event when enabling/disabling SPE
141-
* Tweak - Updates the Single Payment Element setting copy. Now it is labeled "Smart Checkout".
142-
* Update - Enable/disable Amazon Pay by adding/removing it from the enabled payment methods list.
143-
* Add - Add ACSS payment tokenization.
144-
* Add - Add BLIK payment method.
145-
* Fix - Prevent reuse of payment intents when order total doesn't match intent amount.
146-
* Update - Update payment method type for Amazon Pay orders.
147-
* Fix - Compatibility with email preview in the Auth Requested email
148-
* Update - Update Alipay and bank debit icons.
149-
* Tweak - Update payment method type check for charge.succeeded webhook.
150-
* Fix - Fixed subscription features not being properly registered when hooks were already attached.
151-
* Add - Disable unsupported payment methods in Stripe settings
152-
* Update - Update handling of PR as a country in the terminal locations endpoint.
153-
* Fix - Hide Amazon Pay in settings when legacy checkout is enabled.
154-
* Fix - Fix subscription renewal issues for Amazon Pay.
155-
* Fix - Fix ECE button width in shortcode cart page.
156-
* Tweak - SPE: Remove radio buttons
157-
* Add - Add Klarna support for some additional countries in EEA
158-
* Update - Hide express checkout buttons when no product variation is selected.
159-
* Fix - Translation warning when initializing the status page information.
160-
* Add - Add ACSS support for WC Subscriptions.
161-
* Fix - ECE checkout error when using extensions that reduce total cart amount (eg: Gift Cards)
162-
* Add - Add WooCommerce Pre-Orders support to ACSS.
163-
* Update - Remove unused shopper tracking
164-
* Add - Add BLIK support for WooCommerce Pre-Orders
165-
* Add - Test mode instructions for BLIK.
166-
* Tweak - Add save payment method parameter to update intent call for non-deferred intent payment methods.
167-
* Fix - Checkout page focus loss
168-
* Fix - Updated payment method radio button selector to correctly find the selected payment method in different themes.
169-
* Fix - Add `wc_stripe_generate_create_intent_request` filter to support mandate information in setup intent creation.
170-
* Add - Support for BECS Direct Debit as a new payment method for Australian accounts.
171-
* Update - Back button on the settings pages.
172-
* Update - Use individual product tax status instead of storewide tax setup when determining express checkout availability.
173-
* Fix - Ensure the subscription object is not converted into a Stripe order object.
174-
* Fix - Ensure the subscription and pre-order objects are not converted into a Stripe order object in legacy experience.
175-
* Update - Credit and Bank (BECS and ACSS) icons on the Block checkout page.
176-
* Fix - Fix BLIK visibility based on account and billing countries.
177-
* Fix - Prepare mandate data from subscription object on change payment method page.
178-
* Add - Use Stripe Configuration API to manage payment methods enabled/disabled states.
179-
* Dev - Add track events when enabling/disabling payment methods.
180118

181119
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

0 commit comments

Comments
 (0)