All documentation

Stacklar Documentation

Discounts and Coupons for Stacklar Payments

Configure Stacklar coupon rules for Stripe and PayPal one-time payments, Stripe promotion codes, or WooCommerce coupons.

Open: Stacklar -> Edit Form -> Submit block -> Payment Discounts

Create the discount rule, then test valid and invalid coupon values.

Configure the Payment: Payment Discounts

  1. Add a Stripe Payment, PayPal Payment, or WooCommerce Checkout action to the Submit block, then open Payment Discounts and enable it.
  2. For Stripe or PayPal one-time payments, choose the Coupon field and add each code with its fixed or percentage type and amount.
  3. 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.
  4. 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.

Official reference: WooCommerce payments documentation.