Skip to content

Release testing instructions for WC Payments 5.9.0

Allie Mims edited this page May 15, 2023 · 4 revisions

Adding support for 3 new countries in WC Payments

In this new version of WC Payments (5.9.0), we are adding support for 3 new countries:

  • Romania (with currency RON - Romanian Leu)
  • Croatia (with currency EUR - Euro)
  • Bulgaria (with currency BGN - Bulgarian Lev)

Please make sure to run the following testing scenario for each country.

  1. Create a new site with WooCommerce Payments plugin installed, complete the setup wizard (KYC flow) using the current country address as a store address
  2. After KYC flow completion go to Payments > Settings page to confirm the account is created and its status displayed.
  3. Before starting tests, double check the currency is set correctly for each country. If not, go to WooCommerce > Settings > General and change the currency.
  4. Please make sure the store has multi-currency enabled and EUR is one of the currencies.
  5. Please make sure the store has a currency widget to change currencies when shopping. If not, please add one from Appearance > Widgets. Click the + button and search for "currency switcher block". Place it in the page and save changes
  6. Now go to Payments > Settings page, and make sure all these payment methods are displayed for each country: Card payments, iDEAL, Bancontact, EPS, P24, Giropay, and SEPA.
  7. Turn these payment methods on by selecting the checkbox near each method. Scroll down and click Save.
  8. Open the store/website and make sure you're selecting the country's currency from the dropdown and add a product to the cart.
  9. Pay for your order using a test card like 4242424242424242.
  10. Once the order is completed, go to Payments > Transactions screen in WP Admin and make sure the transaction is showing correctly.
  11. Back to the store, change your currency to EUR this time and add a new product to your cart. (This is not necessary for Croatia given the currency is already EUR)
  12. In the checkout page, make sure payment methods like iDeal, SEPA, etc are showing and you can select one. Pick one of these payment methods (other than card) and pay for the order.
  13. Once the order is completed, go to Payments > Transactions screen in WP Admin and make sure the transaction is showing correctly.
  14. Now, back to the store, add a product to the cart, and head to the checkout screen. Now pay using the card 4000000000000259 to trigger a dispute.
  15. Navigate to Payments > Disputes in WP Admin and make sure the dispute is showing correctly.
  16. That's it. This process can be repeated for another country now.

Fraud and Risk Tools Testing

Test: No filtering on non-WCPay transactions

  1. Go to WooCommerce > Settings > Payments > All payment methods (/wp-admin/admin.php?page=wc-settings&tab=checkout&section)
  2. Enable Check payments.
  3. Add an item to your cart and check out using Check payments.
  4. Go to WooCommerce > Orders in the admin and view/edit the new order. It should be On Hold.
  5. Confirm a Fraud & Risk meta box is displayed similar to the below.
  6. Confirm the Learn more link goes to: https://woocommerce.com/document/woocommerce-payments/fraud-and-disputes/fraud-protection/?status_is=fraud-meta-box-not-wcpay-learn-more

no-filter-on-non-wcpay-txs

Test: Terminal payment message

  1. Add the below snippet to your client site like through Code Snippets or a manual edit.
  2. Go to WooCommerce > Orders and view/edit an existing order.
  3. Look for the _wcpay_fraud_meta_box_type field in the Custom Fields section.
  4. Update the field Value to terminal_payment, and click Update for the order.
  5. Once the page refreshes, the meta box should resemble the screenshot.

Snippet:

add_filter( 'is_protected_meta', '__return_false', 999 );

terminal-pmt

The following tests need to be carried out with the testing site configured in some or all of the following ways:

  1. UPE disabled and manual auth/capture enabled.
  2. UPE disabled and manual auth/capture disabled.
  3. Legacy UPE enabled and manual auth/capture enabled.
  4. Legacy UPE enabled and manual auth/capture disabled.
  5. Split UPE enabled and manual auth/capture enabled.
  6. Split UPE enabled and manual auth/capture disabled.

Each test below will list which configuration numbers above need to be tested.

Use the WCPay Dev Tools plugin (/wp-admin/admin.php?page=wcpaydev) to switch between non-UPE, Legacy UPE, and Split UPE modes.

To enable manual auth/capture (issue an authorization on checkout and capture later), visit the Transactions section of WCPay settings (/wp-admin/admin.php?page=wc-settings&tab=checkout&section=woocommerce_payments) and check the second checkbox: Issue an authorization on checkout, and capture later. Then click the save changes button at the bottom of the page.

Set a fraud protection rule for testing. We have found that the Order Items Threshold, was the easiest to use. In the fraud protection section of the WCPay settings page, click the Advanced radio button, then the configure button. On the advanced settings page, scroll to the Order Items Threshold setting, click the toggle to enable it. Then add '2' to the Maximum items per order input field. Click the Save changes button.

Test: Blocked order test

Test with all six configurations.

  1. Add 3 items to your cart to trigger Your Rule.
  2. Attempt to check out.
  3. You should receive this error: Error: There's a problem with this payment. Please try again or use a different payment method.
  4. Go to WooCommerce > Orders in the admin and there should be a new Pending Payment order, view/edit that order.
  5. The order should have a Fraud & Risk meta box and Order notes similar to the below.
  6. The link in the meta box should be: https://{YOUR_SITE}/wp-admin/admin.php?page=wc-admin&path=/payments/transactions/details&id={ORDER_NUMBER}&status_is=block&type_is=meta_box
  7. The link in the order note should be: https://{YOUR_SITE}wp-admin/admin.php?page=wc-admin&path=/payments/transactions/details&id={ORDER_NUMBER}&status_is=block&type_is=order_note

blocked-order

Test: Allowed order with manual auth/capture enabled

Test with configurations: 1, 3, 5.

  1. Add one item to your cart and proceed to check out and place the order.
  2. Go to WooCommerce > Orders in the admin and there should be a new On hold order, view/edit that order.
  3. The order should have a Fraud & Risk meta box and Order notes similar to the below.

allowed-order-with-manual-auth-capture

Test: Capturing Allowed order with auth/capture enabled via webhook

Test with configurations: 1, 3, 5.

  1. Go to Payments > Transactions > Uncaptured
  2. The order should appear in the list, click the Capture button.
  3. After receiving the confirmation that the charge has been captured, go to the order under WooCommerce > Orders.
  4. The order should have updated to Processing/Completed status.
  5. The order should have a Fraud & Risk meta box and Order notes similar to the below.

capture-allowed-order-via-webhook

Test: Cancelling auth for allowed order

Test with configurations: 1, 3, 5.

  1. You will need to place another order like the one in the 'Allowed order with manual auth/capture enabled' test above.
  2. In the new order, choose Cancel authorization under Order actions, and then click the arrow or Update button.
  3. The order should have updated to Canceled status.
  4. The order should have a Fraud & Risk meta box and Order notes similar to the below.

cancel-auth-for-allowed-order

Test: Allowed order with manual auth/capture disabled

Test with configurations: 2, 4, 6.

  1. Add one item to your cart and proceed to checkout.
  2. Check out.
  3. Go to WooCommerce > Orders in the admin and there should be a new Processing/Complete order, view/edit that order.
  4. The order should have a Fraud & Risk meta box and Order notes similar to the below.

allowed-order-manual-auth-cap-disabled

Test: Payment started message - UPE methods with manual auth/capture disabled

Test with configurations: 4 and 6.

  1. Add one item to your cart and proceed to checkout.
  2. Check out using card: 4000000000000002
  3. The transaction will be declined.
  4. Go to WooCommerce > Orders in the admin and there should be a new Failed order, view/edit that order.
  5. The order should have a Fraud & Risk meta box and Order notes similar to the below.
  6. The No action taken message is displayed because fraud filtering never took place.

pmt-started-upe-manual-auth-cap-disabled

Clone this wiki locally