diff --git a/changelog.txt b/changelog.txt index af4d804bb..2da394fb2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -36,6 +36,7 @@ * Update - Hide express checkout buttons when no product variation is selected. * Fix - Translation warning when initializing the status page information. * Add - Add ACSS support for WC Subscriptions. +* Add - Add WooCommerce Pre-Orders support to ACSS. = 9.3.1 - 2025-03-14 = * Fix - Temporarily disables the subscriptions detached notice feature due to long loading times on stores with many subscriptions. diff --git a/includes/abstracts/abstract-wc-stripe-payment-gateway.php b/includes/abstracts/abstract-wc-stripe-payment-gateway.php index 3b4bfcf1b..a1f15758d 100644 --- a/includes/abstracts/abstract-wc-stripe-payment-gateway.php +++ b/includes/abstracts/abstract-wc-stripe-payment-gateway.php @@ -1881,6 +1881,12 @@ public function create_and_confirm_intent_for_off_session( $order, $prepared_sou $request = WC_Stripe_Helper::add_payment_method_to_request_array( $full_request['source'], $request ); } + // Add mandate if it exists. + $mandate = $order->get_meta( '_stripe_mandate_id', true ); + if ( ! empty( $mandate ) ) { + $request['mandate'] = $mandate; + } + /** * Filter the value of the request. * 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 707239031..69db1b596 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 @@ -32,6 +32,9 @@ public function __construct() { // Check if subscriptions are enabled and add support for them. $this->maybe_init_subscriptions(); + + // Add support for pre-orders. + $this->maybe_init_pre_orders(); } /** diff --git a/readme.txt b/readme.txt index 8ed4614a1..44021ea45 100644 --- a/readme.txt +++ b/readme.txt @@ -145,5 +145,6 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o * Update - Hide express checkout buttons when no product variation is selected. * Fix - Translation warning when initializing the status page information. * Add - Add ACSS support for WC Subscriptions. +* Add - Add WooCommerce Pre-Orders support to ACSS. [See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).