Open: Stacklar -> Edit Form -> Submit block -> Payment Discounts
Configure the Payment: Payment Discounts
- Add a Stripe Payment, PayPal Payment, or WooCommerce Checkout action to the Submit block, then open Payment Discounts and enable it.
- For Stripe or PayPal one-time payments, choose the Coupon field and add each code with its fixed or percentage type and amount.
- For a Stripe subscription, choose the promotion mode and map form coupon values to Stripe Promotion Code IDs. For WooCommerce, choose a static coupon or a coupon field.
- Set the Invalid coupon message, then test a valid code, an invalid code, and a submission with the coupon field left empty.
Payment Options
- Enable payment discounts: Turns discount handling on after a Stripe, PayPal, or WooCommerce action is added.
- Coupon field: Selects the form field that contains a Stripe or PayPal one-time coupon code.
- Coupon rules: Sets each code, fixed or percentage type, amount, and enabled state.
- Stripe subscription promotion mode: Maps a form value to a Stripe Promotion Code ID when subscriptions use promotions.
- WooCommerce coupon source: Uses no coupon, a static code, or a code from a form field.
- Invalid coupon message: Sets the message returned when Stacklar cannot accept a code.
Run a Test Payment
- Valid codes reduce the expected amount.
- Invalid codes do not create an incorrect payment.
- Payment records show the final amount and saved coupon details.
Frequently Asked Questions
Where do I open these settings?
Open Stacklar -> Edit Form -> Submit block -> Payment Discounts.
What should I verify after making changes?
Valid codes reduce the expected amount.
Related Guides
Official reference: WooCommerce payments documentation.