Skip to content

Release testing instructions for WC Payments 5.2.0

Cvetan Cvetanov edited this page Dec 20, 2022 · 14 revisions

When deactivating WCPay plugin, warn merchant that active WCPay Subscriptions will continue collecting payment - PR#5169

Basic setup

  1. Ensure your WooCommerce site is set up and the WooCommerce Subscriptions plugin is not installed or not active.
  2. Ensure WooCommerce Payments is onboarded and set up. You will need to use USA store location to enable WCPay Subscriptions. For full details refer to this flow: Set up store for WCPay Subscriptions
  3. Create a WCPay subscription product
  4. Purchase WCPay subscription as shopper

You should now have an active WCPay Subscription.

Deactivate WCPay Plugin to see the warning modal & test deactivate/cancel flow

  1. Go to Dashboard > Plugins.
  2. Scroll down to WooCommerce Payments.
  3. Click Deactivate.
    • You should see the following modal warning:
Screenshot 2022-11-28 at 9 29 42 AM
  1. Click Cancel
    • WCPay should still be active.
  2. Repeat step 3 - click Deactivate.
  3. Click Yes, deactivate WooCommerce Payments - you accept that subscriptions will continue renewing, you have a plan for how to handle that (e.g. reactivate plugin, this is temporary).
    • Plugin should deactivate as normal.

Repeat test with no WCPay Subscriptions active

Reactivate WCPay & ensure you have an active subscription (Basic setup above).

  1. Go to Dashboard > WooCommerce > Subscriptions.
  2. Find active subscriptions - should have green Active status.
Screenshot 2022-11-28 at 10 06 18 AM
  1. In status column, click Suspend link.
  2. Repeat Deactivate WCPay Plugin test steps. The modal should not be displayed.

Ensure Currency Rates are getting pulled correctly from the server - PR#2737

A small change was made to how currency rates are fetched from the server. This will ensure they are still working correctly.

  1. Using a new store, onboard a new WCPay account.
  2. Go to WooCommerce > Settings > General and set the Currency to United State Dollars (USD).
  3. After onboarding is complete, go to WooCommerce > Settings > Multi-Currency. Click Add currencies, and add a few different currencies (e.g. Japanese Yen, Euros, British Pounds, Australian Dollars). Save the change. You should see all of the currencies you selected in the Enabled currencies section, along with their exchange rate. Verify that the exchange rate looks sensible for each, based on the conversion rate from USD into the currency. (You can use a currency exchange site to check the current rate. It doesn't need to be exact, because the rates are cached and there are fluctuations. But if the current rate of USD -> EUR is 0.94671102, we'd expect the value displayed in WCPay to be correct to 2DP (0.94 or 0.95 in this case).
Screenshot 2022-12-12 at 10 50 31

Fix recurring payments on Indian CCs – PR##3011

Note: Stripe simulates the async nature of the renewal process delaying 5-10 minutes both success and failure responses.

Requirements

  • Place orders in INR using Multi-currency or updating your store currency.
  • Be sure you're listening to Stripe webhooks as the implementation relies on them. (npm run listen)
  • Create a subscription product below ₹15,000 INR and another one over it.

WC Subscriptions – Single subscription

  • Enable WooCommerce Subscriptions and be sure you have early renewals enabled.
  • Place and order with the following cards and subscription amounts.
    • 4000003560000123 – less than ₹15k
    • 4000003560000123 – greater than ₹15k
    • 4000003560000297 – any amount
    • 4000003560000248 – any amount
    • 4000003560000263 – any amount
  • Wait a minute for the mandate to be active.
  • Go to WooCommerce → Status → Scheduled Actions → Pending and filter by woocommerce_scheduled_subscription_payment.
  • Run all the hooks where subscription_id matches the 5 subscriptions you have just created.
  • Wait patiently for Stripe webhook 🕙.
  • Order notes should match the following table.
*123 <15k *123 >15k *297 *248 *263
success success-over-15k fail-cancel-pause-297 fail-notification-248 fail-mandate-cancelled-263

WC Subscriptions – Multiple subscriptions

  • Enable WooCommerce Subscriptions and be sure you have early renewals enabled.
  • Place an order using card 4000003560000123 with multiple subscriptions with:
    • Same interval.
    • Different interval.
  • Wait a minute for the mandate to be active.
  • Go to WooCommerce → Status → Scheduled Actions → Pending and filter by woocommerce_scheduled_subscription_payment.
  • Run all the hooks where subscription_id matches the 2 subscriptions you have just created.
  • Wait patiently for Stripe webhook 🕙.
  • Renewals should succeed.

UPE vs classic checkout

The previous testing instructions should work for both UPE and classic checkout. Please test it using the missing one.

WCPay Subscriptions

Does not apply.

Stripe Link is enabled for merchants outside the US - PR#5276

The issue could be replicated only with a non-US account with an active Stripe Link capability.

How to replicate?

  • Connect to a non-US account with an active Stripe Link capability.
  • Notice Stripe Link is unavailable on Payments -> Settings.
  • Notice the email field on the checkout page is on the top, and Stripe Link is an available payment method.

Verify the fix

  • Connect to a non-US account with an active Stripe Link capability.
  • Verify the Stripe Link is unavailable on Payments -> Settings.
  • Verify the email field on the checkout page is NOT on the top.
  • Verify the Stripe Link is NOT an available payment method on the checkout page.
Clone this wiki locally