Coupons

Coupon codes with percentage and fixed discounts for Payload ecommerce carts

Community 2 241/wk MIT v1.0.2

Installation

pnpm add payload-coupons

About

Coupons adds discount codes to a Payload shop, with percentage and fixed amount discounts. Each code can be scoped to products or categories, exclude items, cap total and per customer uses, and run within a validity window. A code that cannot be used is refused with a stable reason, so a customer never gets a silent price change.

Money stays in whole minor units. A percentage discount is split across the cart lines so the line amounts always add up to the discounted total. Redemptions are claimed in the database, so two simultaneous orders cannot both take the last use.

Package info

Package name
payload-coupons
Latest version
1.0.2
Unpacked size
65 kB
License
MIT
Weekly downloads
241
Last publish
Nov 17, 2026

More from Poseidonas

View profile

Sells digital products with signed download links that expire and stop on refund

Adds order states, status history, internal notes and tracking to orders

Sends transactional emails when orders are created or change status

Sequential, human readable order numbers that stay unique under concurrency

Records full and partial refunds per order line, with optional restock and audit trail

Customer product reviews with verified purchase badges and moderated star ratings

Similar plugins

More in Commerce

Syncs Payload collections with Stripe customers and products, and handles Stripe webhooks

Adds products, carts, orders and Stripe checkout collections to Payload