-
Notifications
You must be signed in to change notification settings - Fork 72
Release testing instructions for WC Payments 9.2.0
Dat Hoang edited this page Mar 28, 2025
·
7 revisions
Subscription renewal should fail in live mode if subscription was placed when WooPayments was in the test and vice versa.
Testing instructions (taken from the pull request):
- Install WooCommerce Subscriptions and create a subscription product
- Create a subscription order in the test mode
- As a merchant, open the subscription order and choose "Create a pending renewal order". This command should complete successfully.
- Edit the value for the
_wcpay_mode
meta for the created order in the database tablewp_wc_orders_meta
. E.g. to "foo". - As a merchant, open the subscription order and choose "Create a pending renewal order". You will see a failure message:
Creation of the pending renewal order failed. The subscription was made in the mode "foo" that does not match the current WooPayments mode "test".

- Go to
WooCommerce -> Status -> Scheduled actions
- Find a pending action
woocommerce_scheduled_subscription_payment
with the subscription order. - Run the action.
- A failure note will appear:

- Failed actions will contain a record with an error:

- Check that there is no new order has been created for the renewal.
Note
When Shopper tries to renew a subscription themselves it appears to go into the different flow and creates a new order in the correct WooPayments mode and is unaffected by this change.
PR https://github.com/Automattic/woocommerce-payments/pull/10600
- Use cards here to pay for a few orders https://docs.stripe.com/testing?testing-method=card-numbers#refunds
- Go to the WP Admin order page, try to do refund for an order.
- Similarly, go to the recent transactions with the mentioned cards under Payments > Transaction, and try to do refund:
- Expect: all respective pending, succeeded, failed notes are added into the order. After a pending note, there may be a wait from a few to 10 minutes so that either succeeded or failed notes are added.