Skip to content

Release testing instructions for WC Payments 4.4.0

Luiz Reis edited this page Jul 1, 2022 · 13 revisions

Test Stripe Link payment method in blocks

Stripe Link payment method was recently added in version 4.1.0 The same functionality as on regular checkout is now implemented also for blocks.

Testing instructions

  • Make sure that the classic checkout is not broken. This includes Stripe Link payment method.
  • Install https://github.com/woocommerce/woocommerce-blocks plugin
  • Create a new checkout page with it
  • Retry all of the tests from the classic checkout within the checkout block (this includes also Stripe Link payment method) .

Test Card Loader UI

Test that credit card loader element works as before and no changes observed in

  • Checkout
  • Blocks Checkout
  • Subscription Payment
  • Any other pages showing payment form.
  • On different popular themes

Test multicurrency subscription renewal, switch and re-subscribe (related pull request)

This test requires WooCommerce Subscriptions installed and active, and Storefront theme.

Prerequisite - set up payments, subscription product, and multi-currency
  1. Onboard WooCommerce Payments and install and activate WC Subscriptions.
  2. Publish a subscription product:
  • Go to WooCommerce admin dashboard, click Products > Add New in sidebar.
  • Type a product name e.g. Coffee Subscription.
  • Scroll down to Product data box and select Simple subscription from Product type dropdown.
  • Enter a price e.g. 20 in Subscription price ($) field.
  • Select a renewal term, e.g. every day.
  1. Set up multi currency. Needs to be activated in Woo settings and WCPay, and a currency switcher displayed for customer on store front end.
  • In WooCommerce admin dashboard, go to Payments > Settings.
  • Click Multi-currency tab.
  • Click Add currencies and add one or more additional currencies, e.g. Yen, Euro etc.
  • Scroll down to Store settings.
  • Ensure Add a currency switcher to the Storefront theme on breadcrumb section..
  • Click Save changes.

You should now have a subscription product in your store that shoppers can purchase in their chosen currency.

Test multicurrency subscription renewal
  1. Complete prerequisite setup above.
  2. Purchase a subscription in customer currency (not store default).
  3. Go to subscription in admin dashboard.
  4. Select action Create pending renewal order, click Update.
  5. As customer, go to My account, click Subscriptions, scroll down to Related orders.
  6. Click Pay. Confirm correct (customer) currency is displayed in checkout.
Test multicurrency subscription switch
  1. Complete prerequisite setup above.
  2. In WooCommerce > Settings > Subscriptions, enable both Allow switching options. (See below pic)
  3. Set up subscription products that subscriber can switch between (aka upgrade/downgrade). Easiest way is setting up a variable subscription product with 2 or more levels (e.g. Basic | Pro attribute). Can also switch between grouped products.
    • Click on Products > Add new in WooCommerce admin dashboard sidebar.
    • Type a product name e.g. Coffee Subscription.
    • Scroll down to Product data box and select Variable subscription from Product type dropdown.
    • Click Attributes.
    • Click Add next to Custom product attribute dropdown.
    • Type Level in Name: box.
    • Type Basic | Regular | Pro in Value(s) box.
    • Check Used for variations checkbox.
    • Click Save attributes.
    • Click Variations.
    • Select Create variations from all attributes from dropdown and click Go. Click OK in Are you sure… modal to continue. Click OK in 3 variations added modal.
    • Click disclosure triangle (on right) in first variation and add a price in Subscription price ($) field.
    • Repeat for all variations.
    • Click Save changes.
    • Scroll up to top of page and click Publish on right to publish the variable subscription product.
  4. As shopper, subscribe to one of the variation products.
  5. Go to My account, click Subscriptions.
  6. Click switchable subscription to view details/options.
  7. Click Upgrade or Downgrade. Select a variation to switch to and click Switch subscription. Confirm correct (customer) currency is displayed in checkout.
Screen Shot 2022-06-14 at 11 15 26 AM
Test multicurrency resubscribe
  1. Complete prerequisite setup above.
  2. Purchase a subscription in customer currency (not store default).
  3. Go to subscription in admin dashboard.
  4. Click Cancel for the subscription. Subscription should now be cancelled, so shopper can resubscribe.
  5. As customer, go to My account, click Subscriptions
  6. Click Resubscribe. Refer to docs for details - resubscribing is a kind of renewal.
  7. Confirm correct (customer) currency is displayed in checkout.

Dispute notification indicator and list table

When a payment is disputed and needs a response, an notification indicator will now appear on the Payments → Disputes admin menu item and by default navigating to the disputes screen will list disputes which need a response.

Note: There will be some data lagginess caused by server delays when testing the following flows, we'll attempt to improve this in a future release.

Testing instructions

  1. Purchase of any simple product through the frontend checkout flow using a disputed payment method. eg (card: 4000000000000259)
  2. Complete a second purchase using a different disputed payment method (card: 4000000000001976)
  3. Go to the WooCommerce admin dashboard.
  4. Navigate to the Payments menu.

You should see a red bubble next to the Payments → Disputes submenu item indicating you have 2 disputed payments which need a response.

Screen Shot 2022-06-30 at 11 41 08 am
  1. Click on the Disputes menu item.

The the disputes list screen will be shown and only list disputes which need a response.

Screen Shot 2022-06-30 at 11 44 39 am
  1. Click on one of the disputes.
  2. Accept the dispute by clicking Accept dispute. When prompted click Ok.
  3. Refresh the next page as it will still list the dispute you just accepted.
    • This is due to the server delays I mentioned.

The list table should now only list 1 dispute and the notification indicator in the menu navigation should now only reference 1 dispute.

Screen Shot 2022-06-30 at 11 52 53 am
  1. Follow the steps above to Accept the last remaining dispute.
    • Remember to refresh the page after accepting the dispute.

The list table should now be empty and the notification indicator in the menu navigation should be gone.

Screen Shot 2022-06-30 at 11 56 48 am
  1. Now that there aren't any disputes which need a response, click on the Payments → Disputes menu item.

The user will will now be directed to a table that will all disputes (Won, lost, etc).

Screen Shot 2022-06-30 at 12 02 29 pm

Authenticated server-controlled links handler

  1. Navigate to {your_site}/wp-admin/admin.php?wcpay-link-handler&type=invalid_type
    • Make sure you're redirected to the overview page and an error notice is displayed image
  2. Navigate to {your_site}/wp-admin/admin.php?wcpay-link-handler&type=login_link
    • Make sure you're redirected to Stripe's express dashboard
  3. Open {your_site}/wp-admin/admin.php?wcpay-link-handler&type=login_link in an incognito tab
    • Check that you're prompted for the admin's credentials
    • Enter the credentials and make sure that you're redirected to the express dashboard
Clone this wiki locally