Skip to content

Testing instructions for critical flows WooCommerce Square

Sumit Bagthariya edited this page Jul 17, 2023 · 25 revisions

Can activate the plugin without any error

The plugin should be installed and activated without any error or trouble.

Test Steps

  1. Download the Plugin zip from Woo account or Github
  2. Install the plugin zip in the Plugin Uploader screen of the store

Verify WooCommerce Square Integration for SSL Compliance

Test Steps

  1. Download the Plugin zip from Woo account or GitHub
  2. Install the plugin zip in Plugin Uploader screen
  3. Access the website without using SSL by entering the URL starting with ""http://"" instead of ""https://""."

Expected Result

Without SSL should give notice in the admin area. WooCommerce Square: WooCommerce is not being forced over SSL; your customers' payment data may be at risk. Verify your site URLs here


Check Square extension related tabs and settings should appear.

After activating the Square extension, the "Square" tabs should appear in Dashboard.

Test Steps

  1. Goto wp-admin dashboard
  2. Goto Woocommerce > Setting
  3. Click on Square tab
  4. Goto Woocommerce > Setting > Payments
  5. Square Credit Card

Expected Result

Square setting tabs and square credit cards should appear as expected.

Screenshot

image image


Connect a Square account

To verify the successful connection between WordPress and Square Live/Sandbox account for payment processing.

Test Steps

  1. Enable the Sandbox Mode via the Square settings under WP Admin > WooCommerce > Settings > Payments > Square. Enable sandbox mode and then head to the section below where you’ll create an app in your Square account.

  2. Valid Square Live/Sandbox account credentials ""Sandbox Application ID"" and ""Sandbox Access Token"" Copy from square account and Past it to wordpress Sandbox settings and save .

Expected Result

  1. Square Settings, update tab should be visible

Enable/Disable Payment Gateway in WooCommerce Settings

To verify the functionality of enabling or disabling a payment gateway in the WooCommerce settings.

Test Steps

  1. Log in to the WordPress admin dashboard.
  2. Navigate to the WooCommerce settings by clicking on "WooCommerce" in the left-hand menu and selecting "Settings"
  3. Click on the "Payments" tab in the settings menu.
  4. Locate the "Square – Square Credit Card" payment gateway that needs to be enabled or disabled.
  5. Click on the "Save changes" button

Expected Result

  1. The payment gateway can be enabled or disabled from the WooCommerce settings.
  2. The "Manage" button appears if the payment gateway is enabled.
  3. The "Finish Set-up" button appears if the payment gateway is disabled.

Payment Gateway > Transaction Type > Authorization

Verify the functionality of the "Authorization" transaction type.

Test Steps

  1. Navigate the WooCommerce setting > Payment
  2. Select Square
  3. Select transaction type > Authorization

Expected Result

  1. If the transaction Type setting is set to “Authorization”, you can manually capture these payments from the WooCommerce > Orders page.
  2. An authorized transaction can be captured for up to 6 days; after 6 days, you must ask the customer to re-authorize the transaction to capture payment.
  3. A captured amount cannot differ from the authorized amount.

Payment Gateway > Transaction Type > Charge Virtual-Only Orders

Verify the functionality of the "Authorization" transaction type with options to charge virtual-only orders.

Test Steps

  1. Navigate the WooCommerce setting > Payment
  2. Select Square
  3. Select transaction type > Authorization
  4. Checkmark > Charge Virtual-Only Orders

Expected Result

Should automatically capture charges for orders with only Virtual products.


Payment Gateway > Transaction Type > Capture Paid Orders

Verify the functionality of the "Authorization" transaction type with options to charge Capture Paid orders.

Test Steps

  1. Navigate the WooCommerce setting > Payment
  2. Select Square
  3. Select transaction type > Authorization
  4. Checkmark > Capture Paid Orders

Expected Result

Should automatically capture orders when they are changed to Processing or Completed.


Payment Gateway - Accepted Card Logos

Verify the function "Accepted card logos"

Test Steps

  1. Navigate the WooCommerce setting > Payment
  2. Select Square
  3. Accepted Card Logos
  4. Select the card.

Expected Result

  1. This doesn’t determine which cards are accepted, only which card logos are shown during checkout.
  2. The checkout page should display the added card.

Payment Gateway - Accepted Card Logos - Customer Profiles

Verify Customers can save their payment methods for future use at checkout. This is required for Subscriptions and Pre-Orders products.

Test Steps

  1. Navigate the WooCommerce setting > Payment
  2. Select Square
  3. Customer Profiles
  4. Checked the checkbox"

Expected Result

The payment method should be saved for further checkout


Digital Wallet

Take payments on your store with Apple Pay and Google Pay.

Test Steps

  1. Navigate the WooCommerce setting > Payment
  2. Select Square
  3. Navigate the Digital wallet setting
  4. Enable digital wallet setting

Expected Result

  1. When digital wallets are enabled, Apple Pay and Google Pay buttons will be displayed on the Product, Cart, and Checkout pages, depending on which is available to the customer.

  2. If Apple Pay is not supported in a particular country, a WordPress dashboard message will be displayed.

  3. Apple Pay is not available with Square - there was a problem with registering your store domain with Square/Apple Pay. View the Square logs to find out what caused the registration to fail.


Verify the Digital Wallet Button type and color settings

Test Steps

  1. Navigate the WooCommerce setting > Payment
  2. Select Square
  3. Navigate the Digital wallet setting
  4. Select button type a. Buy now b. Donate c. No text
  5. Select the button color for apple pay and google pay

Expected Result

The Button type and Button color should match the settings.