Once a coupon is active in WP SmartPay, customers can apply it at checkout without any additional setup on your end. This article explains the customer experience when using a discount code.
Where the Coupon Field Appears
On any payment form that has coupons enabled, a Have a coupon code? link or input field appears on the checkout form — typically below the amount fields and above the pay button.
Applying a Code
- The customer clicks Have a coupon code? (if collapsed) to reveal the input.
- They type or paste their code into the field.
- They click Apply.
- SmartPay validates the code instantly (no page reload).
- If valid, the checkout amount updates to show the discount applied and the new total.
Removing a Code
After applying a code, a Remove link appears next to the applied discount. Clicking it removes the discount and restores the original amount — without the customer needing to refresh the page.
Error Messages
If a code cannot be applied, the customer sees an inline error message:
- "Invalid coupon code" — The code does not exist or has a typo.
- "This coupon has expired" — The current date is past the coupon's end date.
- "This coupon has reached its usage limit" — The maximum number of uses has been reached across all customers.
- "You have already used this coupon" — Per-customer usage limit reached for this email address.
- "This coupon is not valid for this form" — The coupon is restricted to specific forms and this form is not included.
What the Customer Sees at Checkout
After a valid code is applied, the checkout form shows a breakdown:
- Subtotal (original price)
- Coupon code — discount amount (e.g., SAVE20 — −$20.00)
- Total (price after discount)
The customer sees the exact saving before clicking the pay button, which improves conversion and reduces refund requests from confused buyers.
Tip: Coupon codes are not case-sensitive. A customer enteringsave20,SAVE20, orSave20will all resolve to the same coupon.