-
Notifications
You must be signed in to change notification settings - Fork 69
Release testing instructions for WC Payments 5.7.0
Create a new site, complete the setup wizard, and select USD as the store currency and LA, USA as the store address.
wp option update wcpay_fraud_protection_settings_active 1
- Important: To make testing this banner as easy as possible, please login to your site from a separate private (or incognito) browser window.
- Navigate to the WCPay Overview page:
/wp-admin/admin.php?page=wc-admin&path=%2Fpayments%2Foverview
. - Inspect the banner. It should look like this:
- Click the 'Learn more' button. You should be directed to the WCPay settings screen. Once the components finish loading, you should see the screen smoothly scroll down to the Fraud Protection section.
- Go back to the WCPay Overview page:
/wp-admin/admin.php?page=wc-admin&path=%2Fpayments%2Foverview
. - Click 'Remind me later'. The banner should disappear.
- Now click the Deposits link just below the Overview link in the left sidebar. Once the Deposits screen loads, click back to the Overview screen. The banner should not appear.
- The 'Remind me later' button will set a timestamp for three days in the future. The banner will not appear until that timestamp is in the past.
- Now log out and close your private browser window.
- To speed up testing, update the option that controls the banner behavior to set the
remindMeAt
timestamp tonull
. If you get the option from the database, via WP CLI, after clicking the 'Remind me later' button once, the option will look something like this:
wp option get wcpay_frt_discover_banner_settings
{"remindMeCount":1,"remindMeAt":1679751133141,"dontShowAgain":false}
- Copy and paste the returned option into a text file, then update the option to set
remindMeAt
tonull
, leaveremindMeCount
anddontShowAgain
at their current values. Paste your updated option string at the end of the WP CLI option update command. Make sure the option value is wrapped in single quotes like the example below.
wp option update wcpay_frt_discover_banner_settings '{"remindMeCount":1,"remindMeAt":null,"dontShowAgain":false}'
Success: Updated 'wcpay_frt_discover_banner_settings' option.
- Open a new private browser window, login to your site, and visit the overview page again. The banner should show up.
- Repeat steps 6 through 12 two more times.
- At this point you should have clicked the 'Remind me later' button three times. The
remindMeCount
value in the option should now be 3 and theremindMeAt
value should benull
after your final update of the option in step 11. The option should look like this:
wp option get wcpay_frt_discover_banner_settings
{"remindMeCount":3,"remindMeAt":null,"dontShowAgain":false}
- Open a new private browser window, login to your site, and visit the overview page again. The banner should appear, but this time it should include a 'Don't show me this again' button. The banner should look like this:
- Click the 'Don't show me this again' button. The banner should disappear. Now click around to different admin screens and the Overview screen periodically for the next minute. You should not see the banner render on the Overview screen any more.
- Go to Payments > Settings
- The welcome tour should pop up
- Go through the tour steps and finish it – or click on the close button
- Refresh the page – it shouldn't pop up again
- Check the welcome tour flag by running
wp option get wcpay_fraud_protection_welcome_tour_dismissed
– it should return1
- If you want to test it again, run the following command:
wp option update wcpay_fraud_protection_welcome_tour_dismissed 0
- Login into the admin of your site and visit the WCPay settings screen:
/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=woocommerce_payments
- The fraud protection section should now be rendered below the deposits section.
- Click the question mark icon beside each option under the payment risk level to ensure that the correct modal displays.
- Ensure that modals close when clicking 'Got it' button, 'X' close button, and clicking outside of the modal.
- Navigate to the WooCommerce general settings page and change your currency to a currency other than USD.
- Navigate back to the WCPay settings page and open each fraud protection modal by clicking on the question mark symbol '?'. The rule referencing $1,000.00 should now show a slightly modified text mentioning the equivalent of $1,000.00 in $store_currency.
- Go to WCPay Settings, and you should see the "Fraud Protection" section at the bottom of the page (before the "Advanced settings" link).
- Check the "Advanced" protection level and click on "Configure".
- You should be redirected to the "Advanced fraud protection" page.
- Scroll to the "Purchase Price Threshold" rule and check "Screen transactions for abnormal purchase prices".
- Check also the "Block Payment" input on the same box
- Change the "Maximum purchase price" input to be
150
. - Scroll down to the "Order Items Threshold" rule and check "Screen transactions for abnormal item counts".
- Change the "Minimum items per order" input to be
3
. - Also change the "Maximum items per order" input to be
5
. - Open your shop in incognito mode, add 2 items to the cart, and do the checkout.
- The order should be received.
- Go to the shop again, add 6 items to the cart, and do the checkout.
- The order should be received.
- Close the previous browser window and open a new one – also in incognito mode. Add products until the total cart price surpasses the equivalent of US$ 150, and do the checkout.
- An error message should appear.

- Go to Payments > Transactions.
- You should see "Risk review", and "Blocked" tabs.
- Click on "Risk review" and click on the first item of the table.
- You should be redirected to the payment details page.
- Check if the status is "Needs review" and two buttons are visible at the top of the page "Block transaction" and "Approve transaction"

- The timeline (in the middle) should contain the reason why it was put on review

- Click on "Block transaction"
- The button should be in a loading state while the "Approve transaction" button should be disabled
- After finishing the request, the data will be fetched again
- The status should be "Payment blocked"
- There should be a timeline entry with "Payment was blocked by <your_user>"
- Refresh the page and confirm that the data stills the same
- Open the transactions page again – select the "Risk review" tab and click on the first item
- Click on "Approve transaction"
- The status should be "Paid"
- There should be a timeline entry with "Payment was approved by <your_user>"
- Refresh the page and confirm that the data stills the same
- Open the transactions page again – click on the "Blocked" tab and click on the first item
- The status should be "Payment blocked"
- The timeline should contain "Payment was screened by your fraud filters and blocked." alongside the list of rules that were triggered.
- Refresh the page and confirm that the data stills the same

-
Test Cancel Confirmation Modal
-
Place an order.
-
On the admin dashboard 'Edit Order' screen, select "Cancelled" from the Order Status dropdown
-
A confirmation modal should be displayed with the option to "Do Nothing" or "Cancel Order", which warns the merchant that Cancel order will not refund the customer.
-
On click of Do Nothing, the order status dropdown is reset back to its previous status, on click of Cancel Order, it is retained as Cancelled.
-
If the order does not have any amount to be refunded (not successfully placed/ already refunded), the modal should not be displayed.
-
Regression testing of Refund Confirmation Modal
- When user clicks on Refund, the refund Confirmation Modal should be displayed as before and user can Cancel or choose to Refund the order before changing status to Refund
- If the order is already refunded, show an error. (styling of error message is changed)