Expiring Codes

Make a Stripe key for Expiring Codes

Expiring Codes needs a restricted key: a Stripe key that can do only what you allow. Ours needs to create coupons and promotion codes, and nothing else. It can't see your customers, payments or payouts.

  1. In Stripe, open Developers, then API keys (or go to dashboard.stripe.com/apikeys).
  2. Click Create restricted key. If Stripe asks how you'll use it, choose the option for giving the key to another website or app.
  3. Name it Expiring Codes.
  4. Set Coupons to Write and Promotion Codes to Write. Leave everything else on None.
  5. Click Create key, copy the key (it starts with rk_live_) and paste it into your Expiring Codes settings.
Trying it out first? Switch Stripe to test mode or a sandbox and make the same key there. It starts with rk_test_, and test codes only work at test checkouts.

Let customers enter the code

Stripe only shows a code box when the checkout allows it:

To fill the code in for the reader, add it to a Payment Link: https://buy.stripe.com/your-link?prefilled_promo_code={{ subscriber.offer_code }}

Turn the key off any time under Developers, API keys, or click Disconnect in your settings and we delete it.