Skip to content

Release testing instructions for WC Payments 9.2.0

Valery Sukhomlinov edited this page Mar 26, 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):

Test that renewal is successful when the mode is the same

  • 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.

Test that renewal order is not created when mode mismatch and renewal is done by the merchant

  • Edit the value for the _wcpay_mode meta for the created order in the database table wp_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".
image

Test that renewal order is not created when mode mismatch and renewal is done automatically

  • 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:
image
  • Failed actions will contain a record with an error:
image
  • 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.

Clone this wiki locally