-
Notifications
You must be signed in to change notification settings - Fork 69
Resources for testing WC Payments
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 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).
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:
- Install latest version of WooCommerce Blocks on the site.
- Create custom page on the site, add Cart and Checkout blocks to it and publish the page.
- Follow the instructions for corresponding Critical flow but use created page for purchases on behalf of the Shopper.
- US address (Automattic’s address): 60 29th Street #343 San Francisco, CA 94110
- UK address (Automattic’s address): 100 New Bridge Street London, EC4V 6JA
- Stripe test cards: https://stripe.com/docs/testing#cards
- Cards and mock data for testing disputes: https://stripe.com/docs/testing#disputes
- Plugin page on WordPress.org: https://wordpress.org/plugins/woocommerce-payments/
- Older versions of the plugin (at the bottom of the page) on WordPress.org: https://wordpress.org/plugins/woocommerce-payments/advanced/