• Skip to primary navigation
  • Skip to main content
LogoMain
WP Desk

WP Desk

WooCommerce Plugins

Flexible Invoices

Flexible Invoices

Automate invoicing

ShopMagic

ShopMagic

E-mail automations

Flexible Coupons

  • Pricing
  • Add-ons
  • Docs
  • Support
  • Blog
  • Ideas
  • My Account
How to Test the WooCommerce Gift Card Purchase and Checkout Workflow

Published: 2026-10-19 / Updated: 2026-10-19 / Blog

How to Test the WooCommerce Gift Card Purchase and Checkout Workflow

Patrycja Wojas

Need to test the WooCommerce gift card purchase and checkout workflow before launch? Run a controlled purchase test to confirm that every step—from selecting a value to recording the paid order—works exactly as intended. This guide covers product configuration, personalization, cart calculations, payment outcomes, voucher generation triggers, order records, and failure recovery. 

Map the expected WooCommerce gift card purchase workflow

Start by documenting the correct customer journey for each gift card product. A written reference prevents testers from accepting behavior that appears functional but does not match the store’s actual business rules.

Your WooCommerce gift card purchase workflow should identify the steps from the product page to the final order confirmation. It should also define when the voucher is generated and which order status represents a successful purchase.

Record the expected behavior for the following stages:

  1. The customer opens the gift card product page.
  2. The customer selects or enters the gift card value.
  3. The customer provides recipient and personalization details.
  4. The product is added to the cart with the correct configuration.
  5. Taxes, fees, discounts, and quantities are calculated.
  6. The customer completes checkout as a guest or registered user.
  7. The payment gateway returns a successful, pending, cancelled, or failed result.
  8. The order receives the appropriate WooCommerce status.
  9. The gift card or voucher is generated only when the intended trigger occurs.
  10. The order confirmation and administrative order record contain matching information.

Do not assume that every WooCommerce gift card plugin checkout uses the same generation event. Some stores issue a voucher after payment, others after the order reaches Processing or Completed, and customized stores may use a separate status. The expected trigger must be documented before testing begins.

Prepare test customers, products, values, and payment methods

Run transactional tests on a staging site whenever possible. WooCommerce test orders can trigger transactional emails, appear in analytics, and activate connected services just like ordinary orders. Payment gateways should be placed in their sandbox or test mode so that testers do not create real charges.

Before beginning the test, configure at least one gift card or voucher product. If the store still needs a solution for creating and selling these products, a WooCommerce gift card and voucher plugin can provide the required product workflow. The Flexible Coupons category also provides relevant options for stores working with customizable vouchers.

Create a small but representative test set rather than repeatedly purchasing a single product with one customer account. Include:

  • A registered customer with a complete billing profile.
  • A registered customer with missing or outdated account details.
  • A guest customer, if guest checkout is enabled.
  • A fixed-value gift card.
  • A product with several predefined values or variations.
  • A custom-value gift card, if supported.
  • A minimum and maximum permitted custom value, where limits apply.
  • At least one standard product to test mixed carts.
  • Each payment method available to real customers.

When testing custom amounts, include decimal and boundary values immediately below and above the permitted range. If the price comes directly from a customer field, review how to configure a custom price based on user input in WooCommerce before defining the expected results.

Payment coverage should reflect the store’s actual configuration. Include an immediate card payment, a delayed or asynchronous method if available, and an offline method such as bank transfer when enabled. Test both approved and declined transactions using the gateway’s documented test credentials.

Test the gift card product page and personalization fields

The product page is the first place where gift card data can be lost or misinterpreted. Test every customer-facing field independently and in combination with other options.

Verify gift card values and product variations

For a fixed-value product, confirm that the displayed price, cart price, and order line value are identical. For products with predefined denominations, select every available option and verify that changing the selection updates the displayed price before the product is added to the cart.

For a custom-value product, check valid and invalid input, including:

  • The minimum accepted value.
  • The maximum accepted value.
  • A value below the minimum.
  • A value above the maximum.
  • A decimal value.
  • Zero and negative values.
  • An empty field.
  • Letters, pasted symbols, and unsupported number formats.

Invalid input should produce a clear message and prevent the product from being added to the cart. It should not silently replace the entered amount with a default value.

Test recipient and personalization data

Complete every available field, including recipient name, recipient email address, sender name, delivery date, and personal message. If you sell personalized WooCommerce gift cards with custom messages, test short and long entries as well as apostrophes, accented characters, emoji, and line breaks.

Confirm that the information remains unchanged after each transition:

  1. From the product page to the cart.
  2. From the cart to checkout.
  3. From checkout to the order confirmation.
  4. From the customer-facing confirmation to the administrative order record.
  5. From the order record to the generated voucher data.

Check required-field validation by leaving one field empty at a time. Validation should identify the specific missing or invalid field without clearing correctly completed fields.

Check repeated edits and browser navigation

Add the product to the cart, return to the product page, change its value or recipient information, and add it again. The cart should preserve two clearly distinguishable configurations when they are intended to be separate gift cards.

Also test the browser’s Back and Forward controls, page refreshes, and repeated Add to cart clicks. These actions must not reset personalization unexpectedly or add duplicate products without a visible indication.

Verify cart calculations, quantities, fees, taxes, and discounts

WooCommerce voucher checkout testing must confirm more than the displayed gift card value. Calculate the expected subtotal, discount, fee, tax, and total independently before comparing them with the cart.

Test totals for every supported value type

Place fixed-value, variable-value, and custom-value gift cards in separate orders first. Then combine them in one cart. Confirm that every line item uses the selected value and that the total is recalculated correctly when an item is removed or its quantity changes.

Where quantity controls are available, determine whether a quantity of three represents three independent vouchers or one voucher with three times the value. The interface, cart, order record, and generated output must follow the same rule.

Check taxes and rounding

Gift card taxation depends on the voucher type, store configuration, and applicable legal requirements. Test the configured tax outcome rather than assuming that every voucher should be taxable or tax-free. WooCommerce tax totals can also vary according to whether prices include tax and whether rounding occurs per line or at subtotal level.

Use customer addresses that activate each relevant tax rate. Compare the cart with checkout after changing the billing address, because location-based tax may not be calculated until an address is available.

Pay particular attention to:

  • Multiple gift cards with decimal values.
  • Tax-inclusive and tax-exclusive displays.
  • Mixed carts containing products from different tax classes.
  • Quantities greater than one.
  • Totals that end close to a rounding boundary.
  • Payment gateway totals compared with WooCommerce totals.

Test WooCommerce coupons and promotional rules

If the store permits WooCommerce coupons to discount gift card products, test every allowed discount type. If discounts should not apply, confirm that the coupon is rejected or excluded correctly without affecting eligible products in the same cart.

WooCommerce applies coupon discounts to cart items before calculating tax, while ordinary coupons do not reduce shipping unless free shipping is specifically configured. Use this expected calculation when comparing cart and checkout totals.

Test valid, expired, restricted, and usage-limited coupons. Also check whether applying and removing a coupon repeatedly changes the gift card’s underlying voucher value. A discounted selling price must not accidentally change the generated value unless that is the defined business rule.

Test duplicate submissions and multiple gift cards in one order

Build an order containing several gift cards with different recipient details. Verify that each line remains associated with the correct value, recipient, and message.

Stores that allow quantity-based or multi-recipient purchases may use an option to send multiple PDF coupons in one order. In that workflow, confirm that the expected number of unique vouchers is created. The system must not issue one reusable file when separate codes are required or generate extra copies because checkout was submitted more than once.

For additional implementation context, see how to send multiple PDFs in one order.

Test guest and registered-customer checkout

Run the complete checkout once as a guest and once while signed in. WooCommerce allows store owners to enable or disable guest checkout and control whether accounts can be created during or after checkout. Test the exact account configuration used by the store.

Guest checkout scenarios

Confirm that a guest can complete a WooCommerce gift card voucher purchase without being redirected to account registration when guest checkout is enabled. Verify billing validation, privacy consent, payment fields, and the final order confirmation.

Check whether the purchaser’s checkout email and the gift recipient’s email remain separate. Auto-fill, account suggestions, or browser password managers must not overwrite the recipient address.

Registered-customer scenarios

Test a returning customer with stored billing details, a newly created account, and a customer who logs in during checkout. Confirm that saved details populate the correct fields without replacing product-level recipient information.

After checkout, open the customer’s account area and verify that the order appears once with the correct total and status. If the plugin provides access to purchased vouchers through the account, confirm only that the correct record is associated with the order. Detailed voucher access and delivery should be handled during the separate delivery test.

Mixed-session and account edge cases

Add a configured gift card as a guest, log in at checkout, and verify that the cart still contains all personalization data. Repeat the process by logging out, allowing the session to expire, and opening checkout in another browser tab.

If account creation is offered during checkout, check duplicate-email handling and password validation. A registration problem should not create multiple paid orders or discard the configured gift card without a clear recovery path.

Check successful payments and voucher generation triggers

A successful payment is not sufficient evidence that the workflow is correct. You must confirm that WooCommerce, the payment gateway, and the gift card plugin agree on the transaction result.

Verify immediate payment success

Complete a successful test payment and compare:

  • The total displayed immediately before placing the order.
  • The amount recorded by the payment gateway.
  • The WooCommerce order total.
  • The payment transaction identifier.
  • The resulting order status.
  • The number and value of generated gift cards.

Refresh the confirmation page and revisit it through the account area. These actions should not repeat the payment callback or generate another voucher.

Test delayed and asynchronous confirmation

Some payment methods do not confirm payment immediately. Simulate an order that remains Pending payment or On hold before receiving a successful callback. The voucher should be generated only after the configured payment or status event.

WooCommerce statuses distinguish orders awaiting payment, orders placed on hold, failed transactions, cancellations, and refunds. The exact transition can depend on the payment gateway, especially when confirmation is delayed.

If the store deliberately generates vouchers on a non-standard status, document and test how to trigger a WooCommerce certificate on a custom order status. Move the same test order through unrelated statuses and confirm that the generation action is not repeated.

Test failed, abandoned, and retried payments

Run separate scenarios for a declined payment, checkout abandonment, gateway timeout, customer cancellation, and successful retry.

For each scenario, verify that:

  • No usable voucher is generated before the required success event.
  • A failed attempt remains visible to administrators where expected.
  • The customer receives a clear next action.
  • A retry updates or replaces the correct order according to the gateway workflow.
  • The successful retry generates exactly one voucher.
  • A late payment callback cannot generate a second voucher.

When a transaction result is unclear, compare the payment gateway record with the WooCommerce order before retrying. WooCommerce recommends checking gateway logs and callbacks when the gateway reports success but the order remains pending, because an unnecessary retry may produce duplicate charges.

Test repeated Place order actions

Use a slow test connection and click the Place order button twice. Refresh during payment redirection and return with the browser’s Back control. The interface should prevent unnecessary resubmission, while server-side processing should prevent duplicate payments and vouchers.

Search the order list, gateway dashboard, logs, and voucher records after each attempt. Similar timestamps or customer details can reveal hidden duplicate transactions that are not obvious on the confirmation screen.

Verify order statuses and back-office records

WooCommerce gift card order testing should compare the customer-facing result with the data available to administrators. Open every test order and inspect the individual line item rather than relying only on the Orders overview.

Verify that the order record contains:

  • The correct gift card product and selected value.
  • The correct quantity.
  • The purchaser’s billing details.
  • The recipient name and email address.
  • The sender name and personalized message.
  • The intended delivery date, if applicable.
  • Applied WooCommerce coupons, fees, and taxes.
  • The payment method and transaction reference.
  • The correct order status and chronological order notes.
  • A clear association with each generated voucher.

Compare these details with the order confirmation shown to the customer. Sensitive internal data does not need to appear publicly, but values, recipient information, and purchased configurations must match.

If the store sells PDF gift cards in WooCommerce, confirm at this stage that the correct voucher record or generation action exists. Leave visual rendering, attachment checks, inbox placement, and device-specific PDF access for the guide that explains how to verify gift card delivery after checkout.

Check checkout behavior on mobile devices and major browsers

Repeat the core purchase workflow on both desktop and mobile. At minimum, test current versions of Chrome, Safari, Firefox, and Edge where they are relevant to the store’s audience, plus one iOS and one Android device.

Focus on transactional obstacles rather than minor visual differences. Confirm that customers can:

  • Select a gift card value without accidental changes.
  • Open and complete every personalization field.
  • Read validation messages without scrolling unpredictably.
  • Use an on-screen keyboard without covering required controls.
  • Review the order total before payment.
  • Select and complete each mobile payment method.
  • Return from an external payment page without losing the order.
  • Tap Place order once and see a clear processing state.

Test narrow screens with long recipient names and messages. Check both portrait and landscape orientation, browser autofill, and a temporary connection interruption. A recoverable mobile error should not empty the cart or create a second order.

Record results in a purchase-workflow QA checklist

Document each scenario with its expected result before testing it. A simple pass or fail column is useful, but a complete record should also identify the environment, browser, customer type, payment method, order number, and observed status transition.

Use the following WooCommerce gift card purchase workflow checklist as a final transactional review:

  1. Confirm that each fixed, variable, and custom value is accepted or rejected correctly.
  2. Verify that required personalization fields block incomplete submissions.
  3. Check that recipient details and messages persist from product page to order record.
  4. Confirm that quantities produce the intended number of vouchers.
  5. Recalculate subtotals, taxes, fees, discounts, and final totals.
  6. Test gift card products alone and in mixed carts.
  7. Complete guest, logged-in, and account-creation checkout scenarios.
  8. Test every enabled payment method in its test environment.
  9. Simulate approved, declined, abandoned, delayed, and retried payments.
  10. Confirm that the intended order status triggers voucher generation.
  11. Verify that unrelated status changes do not create additional vouchers.
  12. Compare the customer confirmation with the WooCommerce order record.
  13. Check payment references, order notes, voucher records, and gateway logs.
  14. Repeat critical scenarios on mobile and in major desktop browsers.
  15. Retest every corrected defect and its related edge cases.

A launch-blocking defect is any issue that can charge the wrong amount, lose recipient data, prevent checkout, expose private information, generate a voucher without payment, or create missing or duplicate vouchers. Resolve these failures before moving the campaign to production.

Key conclusions from WooCommerce voucher checkout testing

The most important conclusions from transactional testing are:

  • Product data must remain consistent: value, recipient, sender, and message should survive every checkout transition.
  • Totals require independent verification: check fixed, variable, and custom values together with taxes, fees, quantities, and WooCommerce coupons.
  • Payment success and voucher generation are separate events: verify the intended trigger rather than assuming that order creation is sufficient.
  • Failure paths are essential: abandoned, declined, delayed, retried, and duplicated transactions expose risks that a successful card payment cannot reveal.
  • Administrative records must match the customer experience: discrepancies make fulfilment and support difficult even when payment succeeds.
  • One paid purchase should create one intended set of vouchers: repeated callbacks, refreshes, and double clicks must not create extras.

Summary

To test WooCommerce gift card checkout effectively, treat the purchase as a complete transaction rather than checking only whether a voucher appears. Validate product configuration, personalization, cart calculations, guest and account checkout, payment responses, order statuses, generation triggers, and back-office records.

Once the purchase workflow passes, continue with dedicated delivery testing and then continue with gift card redemption testing. Separating purchase, delivery, and redemption tests makes defects easier to diagnose while still providing complete coverage of the customer journey.

Frequently asked questions

How do I test a WooCommerce gift card purchase?

Create a test gift card product, enable a payment gateway’s sandbox mode, and complete the full journey from product configuration to order confirmation. Verify the selected value, recipient data, cart total, payment result, order status, and generated voucher record.

Should a gift card be generated before payment is confirmed?

Normally, a usable gift card should be generated only after the store’s defined payment or order-status trigger occurs. Test pending, failed, cancelled, and delayed payments to confirm that unpaid orders cannot create active vouchers.

How can I prevent duplicate vouchers during checkout?

Test double clicks, page refreshes, payment retries, delayed callbacks, and browser navigation. A single successful purchase should create only the intended number of vouchers, even if the gateway sends the same confirmation more than once.

Which WooCommerce gift card checkout scenarios are essential?

Test fixed and custom values, personalization fields, guest and registered checkout, coupons, taxes, mixed carts, every enabled payment method, failed and delayed payments, mobile devices, and all order statuses that can trigger voucher generation.

About Patrycja Wojas

Master's degree in Finance and Accounting. In love with marketing — and it's mutual — since the age of 18.

Espresso in the morning is non-negotiable, dark humor comes standard — boring people with no passion or sense of humor can keep walking, there's no room for them in her life.

A few truths: 400 horsepower under the hood instead of silence, a shovel in hand instead of a gym membership, home office from any corner of the world, and a nephew she gives her whole heart to.

  • Terms & Conditions
  • Privacy Policy
  • Support Policy
  • Refund Policy

© 2026 WP Desk WP Desk & Flexible Coupons

Manage Consent

We use necessary cookies to make our site work. We'd also like to set additional cookies to understand site usage, enhance your browsing experience, and serve personalized ads or content. By clicking ‘Accept All,’ you consent to our use of additional cookies.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}