Skip to content

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):

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.

Add pending refund notes

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: Markup on 2025-03-28 at 11:14:05
  • 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.
Clone this wiki locally