Die Artikel sind auf Englisch verfügbar.

How to Test WooCommerce

Test WooCommerce account setup, order-created webhook delivery, WhatsApp template rules, activity, and delayed sending.

Last updated

On this page

Before You Start

  1. Prepare a WooCommerce store where you can create test orders.
  2. Create and approve a WhatsApp template in WAPI, for example: Hi {{1}}, your order {{2}} has been received. Total: {{3}}.
  3. Use a safe WhatsApp-capable customer phone number in country-code format, for example 923XXXXXXXXX.

Add the WooCommerce Account

  1. Open Integration Marketplace > WooCommerce > Accounts.
  2. Click Add Account.
  3. Enter the store label, store URL, consumer key, consumer secret, and a strong webhook secret.
  4. Save the account.
  5. Confirm the saved account row shows Account ID, status, webhook URL copy action, and webhook secret copy action.

Configure WooCommerce Webhook

  1. In WAPI, copy the Webhook URL from the same saved WooCommerce account row.
  2. Copy the Webhook Secret from that same account row.
  3. In WooCommerce, create a webhook for the event you want to test, such as Order Created.
  4. Use the copied WAPI Webhook URL as the Delivery URL.
  5. Paste the copied secret into the WooCommerce Secret field.
  6. Set the webhook status to Active and save it.

Create the WAPI Rule

  1. Open WooCommerce > Mappings/Rules & Jobs.
  2. Click Add Rule.
  3. Select the saved WooCommerce account.
  4. Choose Order Created as the event.
  5. Choose Send WhatsApp template as the action.
  6. Choose Customer Billing Phone or another order phone source as the recipient.
  7. Select the approved WhatsApp template.
  8. Map every template variable, for example {{1}} to Billing First Name, {{2}} to Order Number, and {{3}} to Order Total.
  9. Choose Send immediately for the first test and save the enabled rule.

Place and Confirm a Test Order

  1. Place one test order in WooCommerce using the safe WhatsApp-capable phone number.
  2. Return to WAPI and open WooCommerce > Mappings/Rules & Jobs.
  3. Confirm Job History shows the order event as processed.
  4. Open Recent Activity and confirm the WooCommerce event appears.
  5. Confirm the WhatsApp message arrives on the test phone.

Test a Delayed Rule

  1. Edit the same rule and change Timing to Delay by minutes.
  2. Enter a short delay such as 5 minutes and save.
  3. Place another safe test order.
  4. Wait until the due time has passed.
  5. Open Settings > Cron Worker and run Connector Delayed Automation if you want to process due delayed jobs manually.
  6. Confirm the delayed WhatsApp message arrives after the due time.

What to Check if It Fails

  1. Confirm WooCommerce webhook status is Active.
  2. Confirm the Delivery URL and Secret came from the same WAPI saved account row.
  3. Confirm the WAPI rule is enabled and uses the same event WooCommerce sends.
  4. Confirm every template variable is mapped.
  5. Confirm the customer phone number is present and can receive WhatsApp.
Next ArticleHow to Test Shopify