Stripe checkout.js with coupons

stripe-payments

Solution

Stripe have finally answered our prayers after having discount codes for Stripe checkout/payments on the roadmap for years

Discount codes are now here for Stripe checkout.

See here: https://stripe.com/docs/payments/checkout/discounts

You can also manually create it here: https://dashboard.stripe.com/coupons/create

For customer-facing promo codes, which is probably what we want, check out here: https://stripe.com/docs/billing/subscriptions/discounts/codes

(Technically, coupons are merchant-facing and promo codes are customer-facing)

Problem

I'm using Stripe's checkout.js because it's so easy to setup and use. Is there a way to add coupons? ``` <script src="https://checkout.stripe.com/v2/checkout.js" class="stripe-button" data-key="pk_test_czwzkTp2tactuLOEOqbMTRzG" data-amount="2000" data-name="Demo Site" data-description="2 widgets ($20.00)" data-image="/128x128.png"> </script> ```

Original source