Skip to content
New issue

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

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

Already on GitHub? # to your account

Add ACSS support for WooCommerce Pre-Orders #4076

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from

Conversation

ricardo
Copy link
Member

@ricardo ricardo commented Mar 14, 2025

Changes proposed in this Pull Request:

Add ACSS Pre-Orders support.

Testing instructions

  1. Enable the ACSS feature flag:
    • Use the Stripe Dev Tools plugin to enable the ACSS feature flag.
  2. Enable ACSS in Stripe:
    • Navigate to the Stripe Dashboard.
    • Enable "Canadian Pre-Authorized Debits" in the payment methods settings.
  3. Enable ACSS in WC Stripe:
    • Go to WooCommerce > Settings > Payments > Stripe.
    • Enable "Pre-Authorized Debit (ACSS)".
  4. Listen to webhooks:
npm run listen
  1. Change the store currency to CAD.
  2. From the checkout page, use the following information for the address:
    • Country: Canada
    • Province: British Columbia
    • City: Vancouver
    • Postcode: K1A 0B1

Pre-Order (Charge Up Front)

  1. Create a product, enable Pre-Orders, set When to Charge to Upfront.
  2. On the storefront, purchase this product with ACSS and use a customer account.
  3. Verify the order in WooCommerce → Orders (payment captured immediately).
  4. In WooCommerce → Pre-Orders, release the product and confirm no additional charge occurs.

Pre-Order (Charge Upon Release)

  1. Create a product, enable Pre-Orders, set When to Charge to Upon Release.
  2. On the storefront, purchase this product with ACSS and use a customer account (no immediate charge).
  3. Verify the order in WooCommerce → Orders (should show a pre-order status).
  4. In WooCommerce → Pre-Orders, release the product and confirm the customer is charged via ACH at release.

In both scenarios, please check the order notes and status logs for any anomalies.


  • Covered with tests (or have a good reason not to test in description ☝️)
  • Tested on mobile (or does not apply)

Changelog entry

  • This Pull Request does not require a changelog entry. (Comment required below)
Changelog Entry Comment

Comment

Post merge

@ricardo ricardo requested review from a team and cesarcosta99 and removed request for a team March 14, 2025 23:00
Copy link
Contributor

@cesarcosta99 cesarcosta99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and test well!

  • ✅ Pre-Order (Charge Up Front)
    • Classic and Blocks checkouts
  • ✅ Pre-Order (Charge Upon Release)
    • Classic and Blocks checkouts

Base automatically changed from add/3831-acss-subscriptions-support to develop March 27, 2025 03:19
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants