• 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 WooCommerce Gift Card Redemption Rules, Edge Cases, and Refunds

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

How to Test WooCommerce Gift Card Redemption Rules, Edge Cases, and Refunds

Patrycja Wojas

How do you test WooCommerce gift card redemption rules, edge cases, and refunds before launch? Test the complete voucher lifecycle—from code generation and checkout validation to repeated use, cancellations, and refunds. Flexible PDF Coupons PRO helps stores create and deliver PDF vouchers based on WooCommerce coupons, so each test should confirm that the generated code follows the coupon conditions configured in WooCommerce.

Map the expected gift card redemption lifecycle

Begin by mapping every event that can change a voucher’s status, usage count, or available value. Flexible PDF Coupons PRO generates a PDF voucher with a WooCommerce coupon code, while the active coupon settings determine how that code can be redeemed.

Use the WooCommerce gift card and voucher plugin to configure the voucher product and document its intended value, validity period, usage limits, and restrictions. This documented configuration becomes the expected result for your tests.

If the code is issued after a customer buys a voucher, first test how gift card purchases create redeemable codes. You should also verify that customers receive accurate voucher codes before testing checkout redemption.

Define the redemption contract

Record clear answers to the following questions:

  • When is the generated voucher code ready to use?
  • Can it be redeemed once or reused under the configured usage limits?
  • Which products and categories are eligible?
  • Is there a minimum or maximum spend?
  • Can the voucher be combined with promotional coupons?
  • When does the voucher expire?
  • What should happen after a failed order, cancellation, or refund?

Flexible PDF Coupons PRO delivers the voucher and its code, but redemption eligibility is governed by the associated WooCommerce coupon configuration. Tax settings, shipping methods, payment gateways, custom code, and other checkout extensions may also affect the final order.

Create a focused test matrix

Give every scenario a test ID and record its setup, action, expected result, actual result, order number, and evidence. Use separate voucher codes for tests that may permanently alter usage counters or other coupon data.

Your matrix should include:

  • Valid, invalid, expired, disabled, and exhausted codes
  • Guest and registered customers
  • Eligible, excluded, and mixed-product carts
  • Orders below, equal to, and above the minimum spend
  • Permitted and prohibited coupon combinations
  • Successful, failed, cancelled, and refunded orders
  • Repeated and simultaneous redemption attempts
  • Desktop and mobile checkout

Use simple test values that make errors easy to detect. For example, combine a $50 voucher with carts worth $49.99, $50, and $50.01. Include at least one cart that produces fractional tax or discount values so that rounding problems become visible.

Test valid codes and standard redemption

Start with an eligible product and a valid code generated by Flexible PDF Coupons PRO. Enter the code in the WooCommerce coupon field and continue through checkout. Do not stop after seeing the discount in the cart because usage records and order data may change later in the order workflow.

Confirm that:

  • The code is accepted in the cart or checkout coupon field.
  • The configured discount is applied exactly once.
  • The order total and line calculations are correct.
  • The voucher is visible in the cart, checkout, confirmation, and order record.
  • Refreshing the page does not apply the discount again.
  • Removing and reapplying the code produces the same result.
  • The storefront calculation matches the administration panel.

Change quantities and remove or add products after applying the voucher. WooCommerce should recalculate the discount according to the active coupon conditions without duplicating it or leaving an ineligible discount in the cart.

Test invalid, expired, disabled, and used codes

A rejected voucher should leave the cart unchanged and display a useful message. Test codes with leading or trailing spaces, changed letter case, missing characters, transposed characters, and visually similar characters.

Also press the apply button more than once and refresh the page immediately after submitting the code. These actions must not create duplicate discounts or alter coupon usage unexpectedly.

Test expiration boundaries

Redeem a voucher before its expiration date and repeat the attempt at and after the configured boundary. Record the store timezone and the exact moment at which the coupon becomes unavailable.

The date printed on the PDF should agree with the coupon configuration. Use the guide on how to display the coupon expiration date on WooCommerce gift cards to ensure that customers receive consistent validity information.

For expired, disabled, exhausted, or previously used codes, confirm that:

  • No discount is added.
  • No usage counter changes after rejection.
  • The cart and checkout return consistent results.
  • The message does not reveal customer or order information.
  • An administrator can identify the reason for rejection.

Verify spend, product, and category restrictions

Flexible PDF Coupons PRO relies on the conditions of the generated WooCommerce coupon. If the coupon is restricted by spend, product, category, sale status, or customer email, test each condition separately before combining them.

For a minimum-spend condition, test a cart immediately below the threshold, exactly at the threshold, and immediately above it. Repeat the scenarios with tax, shipping, fees, and another promotion present.

Test mixed eligible and excluded carts

Create carts containing:

  • One eligible and one excluded product
  • Products from eligible and excluded categories
  • A sale item and a regular-price item
  • A product assigned to multiple categories
  • Multiple quantities of an eligible product
  • Eligible and excluded variations, where relevant

Apply the code and then remove the only eligible item. The discount should be recalculated or rejected according to the coupon settings. No discount should remain attached to an ineligible cart.

Test reusable vouchers and usage limits

A voucher can be configured for one-time or repeated use by changing the WooCommerce coupon usage limits and conditions. Flexible PDF Coupons PRO prints and delivers the generated code; it does not replace those configured redemption rules.

Test repeated use by the same registered customer, a guest using the same email address, and a different account. Include attempts made from another browser or device. If redemption is limited to specific customer emails, confirm that both accepted and rejected addresses behave as configured.

Where the voucher represents a reusable campaign rather than a single-use gift, compare the results with the guidance on reusable vouchers and coupon conditions.

Include attempts to bypass a limit by:

  • Switching from an account to guest checkout
  • Changing the letter case of an email address
  • Using another browser or device
  • Editing billing details
  • Retrying a failed payment
  • Submitting checkout twice

Check combinations with coupons and promotions

Define whether the voucher may be combined with promotional coupons. Then test it with percentage, fixed-cart, fixed-product, free-shipping, and individual-use promotions.

Apply the promotion first and the voucher second, then reverse the order. Removing either code should leave the same result that would be produced if the remaining code had been applied alone.

If combinations are prohibited by the coupon settings, WooCommerce should reject the second code without unexpectedly removing a valid discount. If your campaign also uses promotional codes, align the setup with your process for creating WooCommerce coupons.

Test taxes, shipping, currencies, and rounding

Run test orders with taxable and non-taxable products, different tax classes, taxable shipping, free shipping, and address-dependent tax rates. Change the address after applying the voucher to make sure recalculated tax does not leave an incorrect discount.

Use carts with multiple quantities and fractional values to expose one-cent differences. Compare the cart, checkout, order confirmation, PDF invoice if used, and WooCommerce order administration.

If the store uses multiple currencies, establish whether the coupon amount is interpreted in the store currency or transformed by the currency extension. Test redemption before and after changing the displayed currency and updating exchange rates.

Currency conversion and rounding must not:

  • Increase the voucher’s value unexpectedly
  • Deduct more than the eligible order amount
  • Change when checkout is refreshed
  • Produce different storefront and administration totals

Verify cancellations and refunds

Refund testing must distinguish between the payment gateway transaction, WooCommerce refund record, and coupon usage data. A refund does not automatically mean that a customer has received a new voucher or that the original PDF code has regained value.

Flexible PDF Coupons PRO creates the voucher code and PDF document, while refunds are handled through the store’s WooCommerce order workflow. Before launch, define whether your policy requires an administrator to issue a replacement voucher, adjust the original coupon, or refund the payment method used for the order.

Test full and partial refunds

Complete separate scenarios for:

  • A full refund of an order using only a voucher
  • A partial item refund
  • A custom-amount refund
  • A shipping-only refund
  • A mixed voucher and payment-gateway order
  • A cancellation before payment completion
  • A failed payment after the code was applied
  • A refund followed by another redemption attempt

After each action, inspect the coupon usage records, order notes, customer notification, payment refund, and continued usability of the original code. Reload the administration screen and repeat only in a controlled environment to confirm that an action cannot restore value or issue compensation twice.

Test simultaneous redemption and duplicate requests

Open the same checkout in two sessions and attempt to use a limited voucher at nearly the same time. Inspect both orders and the coupon usage data after submission.

Repeat the test by double-clicking the order button, submitting two browser tabs, refreshing during payment, returning with the browser back button, and retrying after a timeout.

The exact accepted order depends on the checkout workflow, but duplicate requests must not bypass usage limits or apply the same voucher more times than permitted.

Compare customer and administrator records

For every completed or rejected scenario, compare the storefront result with the back-office data. Review:

  • Coupon code, status, and expiration
  • Configured value and discount type
  • Associated order numbers
  • Usage limits and recorded uses
  • Refunded amounts
  • Order notes and timestamps
  • Customer emails and voucher documents

If customers receive printable documents, confirm that PDF gift cards in WooCommerce display the same code, value, expiration date, and terms used by the redemption system.

Complete the sign-off checklist

Run the final checklist in a staging environment that matches production.

  1. Confirm that a valid code applies the correct discount once.
  2. Reject invalid, disabled, expired, and exhausted codes safely.
  3. Verify spend, product, category, sale-item, and customer restrictions.
  4. Test one-time and reusable voucher configurations.
  5. Confirm that usage limits cannot be bypassed.
  6. Test permitted and prohibited coupon combinations.
  7. Validate taxes, shipping, fees, currencies, and rounding.
  8. Test full and partial refunds and mixed-payment orders.
  9. Check failed, cancelled, retried, and refunded orders.
  10. Attempt simultaneous redemption and duplicate submission.
  11. Compare customer messages, order notes, and coupon records.
  12. Retest every corrected defect before approval.

Store screenshots, test codes, order numbers, expected results, and observed results with the test report. Then follow the complete pre-launch gift card QA process to cover voucher purchase, PDF generation, email delivery, redemption, and store operations.

Test Flexible PDF Coupons PRO before launch

Create branded PDF vouchers connected to WooCommerce coupon rules.

Flexible PDF Coupons PRO lets you sell and deliver printable gift cards and vouchers while using WooCommerce conditions to control redemption, validity, eligible products, and usage limits.

WooCommerce gift card and voucher plugin

Summary

Testing WooCommerce gift card redemption requires more than checking whether a code produces a discount. Validate the code generated by Flexible PDF Coupons PRO against its WooCommerce coupon settings, including expiration, eligibility, usage limits, combinations, taxes, shipping, cancellations, and refunds.

A voucher campaign is ready when valid codes work consistently, rejected codes leave the cart unchanged, restrictions cannot be bypassed, records agree across the storefront and administration panel, and the refund policy explains exactly how voucher-funded orders are handled.

Frequently asked questions

How do I test a WooCommerce gift card code?

Create a voucher in a staging store, purchase or generate it through Flexible PDF Coupons PRO, and enter its code in the WooCommerce coupon field. Complete checkout and compare the discount, order record, coupon usage, email, and PDF voucher with the expected configuration.

Does Flexible PDF Coupons PRO control redemption rules?

The plugin creates and delivers PDF vouchers with WooCommerce coupon codes. Redemption conditions such as expiration, eligible products, customer restrictions, and usage limits come from the associated WooCommerce coupon configuration.

Can a voucher be used more than once?

It can be reused only when its WooCommerce coupon settings permit repeated use. Test the configured total and per-customer usage limits with registered customers, guests, different browsers, and repeated checkout requests.

What happens to a voucher after a refund?

The result depends on the store’s refund policy and WooCommerce workflow. Do not assume that refunding an order automatically creates a replacement PDF voucher or restores the original code. Test the actual process and document whether administrators must adjust or replace the voucher.

Can gift vouchers be combined with promotional coupons?

That depends on the coupon configuration, including individual-use and exclusion settings. Test both application orders and confirm that a rejected combination does not remove an otherwise valid discount.

Should voucher tests be performed on the live store?

No. Run destructive, refund, concurrency, and duplicate-request scenarios in a staging environment that matches the production store. Use live testing only for a limited final verification with controlled orders and payment methods.

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}