Skip to content

Resources for testing WC Payments

Vasily Belolapotkov edited this page Mar 29, 2021 · 2 revisions

Enabling Developer Mode

Most of the test flows should be executed while WC Payments is working in Developer Mode. If Live mode is required it will be noted explicitly in the testing instructions.

Follow the instructions here to enable WooCommerce Payments Developer Mode https://docs.woocommerce.com/document/payments/testing/dev-mode/#section-1

  • As an alternative to editing wp-config.php, the line can be added in a new snippet after installing and activating the “Code Snippets” plugin.

To check if Developer Mode is enabled during set up follow this instructions https://docs.woocommerce.com/document/payments/testing/dev-mode/#section-3

Note: same site cannot be reused to create a new WC Payments account. Once established, WC Payments account information is hard-wired to a site on Automattic servers. While it is possible to break that connection, it requires a manual step by Automattic engineers.

Plugin setup

Plugin installation and setup might be triggered from various places. To successfully complete the setup site must be served with a publicly accessible URL (HTTPS preferred).

Instruction and information needed to complete WC Payments setup wizard in Development Mode are provided in here https://docs.woocommerce.com/document/payments/testing/dev-mode/#section-3.

To avoid confusion with WooCommerce setup wizard the WC Payments setup wizard is referred as Know Your Customer flow (KYC flow).

Testing with WooCommerce Blocks

Some of the Critical Flows need to be tested in WooCommerce Blocks area. Those flows have corresponding flows running on default cart and checkout pages. To test the flows with WooCommerce Blocks:

  1. Install latest version of WooCommerce Blocks on the site.
  2. Create custom page on the site, add Cart and Checkout blocks to it and publish the page.
  3. Follow the instructions for corresponding Critical flow but use created page for purchases on behalf of the Shopper.

Resources and mock data

Clone this wiki locally