-
Notifications
You must be signed in to change notification settings - Fork 69
Release testing instructions for WC Payments 8.7.0
- Use card
4000 0000 0000 0002
for testing. - In the checkout, as a shopper, you will still see the generic decline
Your card was declined.
- However, as a merchant, in the order note, you can see more details like this:
-
Set WooPayments to "Issue an authorization on checkout, and capture later."
-
Switch to the
develop
branch or use the plugin version without this change. -
Add an item to the cart and process the payment on the checkout page.
-
Go to the order's view screen in the WP Admin page and confirm that the transaction fee is displayed as shown below:
-
Switch to this branch.
-
Repeat the steps above.
-
On the order's view screen in WP Admin, notice that the transaction fee is no longer displayed since the transaction is not yet captured.

- Capture the transaction in the Transactions tab.
- Return to the order's view screen in WP Admin.
- Confirm that the transaction fee is now displayed.

-
Switch to the
develop
branch. or plugin version without this change. -
Ensure you have at least two shipping methods enabled.
-
Add the following filter to your code (e.g., inside
functions.php
). Note that checking out to thedevelop
branch might overwrite this change, so ensure the filter is re-added if needed. Adjust the shipping method name in the example (local_pickup
) to match one you have configured. This filter removes WooCommerce Payments as a gateway for the specified shipping method:add_filter( 'woocommerce_available_payment_gateways', function ( $available_gateways ) { $chosen_shipping = WC()->session->get( 'chosen_shipping_methods' )[0] ?? ''; if ( isset( $available_gateways['woocommerce_payments'] ) && 0 === strpos( $chosen_shipping, 'local_pickup' ) ) { unset( $available_gateways['woocommerce_payments'] ); } return $available_gateways; } );
-
Test behavior on the
develop
branch:- Ensure the filter from Step 3 is in place, as switching to the
develop
branch might overwrite it. - Go to the checkout page.
- Select the shipping method configured in the filter (e.g.,
local_pickup
). Confirm that WooCommerce Payments is not available as a payment option. - Switch to a different shipping method. Confirm that WooCommerce Payments is displayed, and payment fields are rendered.
- Switch back to the shipping method that disables WooCommerce Payments and refresh the page.
- After the page refresh, switch to another shipping method that supports WooCommerce Payments. Confirm that the checkout blocks or payment fields (e.g., credit card fields) are not rendered.
- Ensure the filter from Step 3 is in place, as switching to the
-
Switch to this branch and repeat the test:
- Perform the same steps as above.
- Confirm that this time the payment fields or credit card fields are correctly rendered for the supported shipping methods.