Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ACSS support for WooCommerce Pre-Orders #4076

Open
wants to merge 1 commit into
base: add/3831-acss-subscriptions-support
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Update - Enable/disable Amazon Pay by adding/removing it from the enabled payment methods list.
* Add - Add ACSS payment tokenization.
* Add - Add ACSS support for WC Subscriptions.
* Add - Add WooCommerce Pre-Orders support to ACSS.

= 9.3.0 - 2025-03-13 =
* Dev - Adds a new README.md file to the plugin with specific development-focused instructions.
Expand Down
6 changes: 6 additions & 0 deletions includes/abstracts/abstract-wc-stripe-payment-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -1868,6 +1868,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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,6 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
* Update - Enable/disable Amazon Pay by adding/removing it from the enabled payment methods list.
* Add - Add ACSS payment tokenization.
* 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).
Loading