# Building a Coupon Engine

> Episode of [Syntax - Tasty Web Development Treats](https://podistic.com/podcast/syntax-tasty-web-development-treats.md) · Published April 25, 2022 · Duration 26:18

- **Listen on Podistic:** https://podistic.com/episode/building-a-coupon-engine
- **Audio:** https://traffic.megaphone.fm/FSI8405873308.mp3?updated=1749229605 (audio/mpeg)

## About this episode

In this Hasty Treat, Scott and Wes talk about the coupon engines they’ve built and use on their courses.
 Prismic - Sponsor  Prismic is a Headless CMS that makes it easy to build website pages as a set of components. Break pages into sections of components using React, Vue, or whatever you like. Make corresponding Slices in Prismic. Start building pages dynamically in minutes. Get started at prismic.io/syntax.
 LogRocket - Sponsor  LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.
  Show Notes   00:26 Welcome
  01:12 Sponsor: Prismic
  02:32 Sponsor: LogRocket
  04:06 What we use for coupons
  Stripe

  Braintree

  06:27 Structure of our coupons
  10:43 Products and carts
  13:59 Country validation
  15:11 Affiliate codes
  16:36 Chaining rules together
  19:41 Tracking coupons
  20:54 Automatically applied coupons
  22:12 Quick tips for coupons
   Tweet us your tasty treats   Scott’s Instagram

  LevelUpTutorials Instagram

  Wes’ Instagram

  Wes’ Twitter

  Wes’ Facebook

  Scott’s Twitter

  Make sure to include @SyntaxFM in your tweets
