From 42e7e4d871481410d99e49ab4707905fcc927676 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Wed, 22 Apr 2020 13:16:43 -0700 Subject: [PATCH] Add support for `Coupon` when for subscriptions on Checkout --- checkout_session.go | 1 + 1 file changed, 1 insertion(+) diff --git a/checkout_session.go b/checkout_session.go index 9b6aebf108..c3e2aed022 100644 --- a/checkout_session.go +++ b/checkout_session.go @@ -98,6 +98,7 @@ type CheckoutSessionSubscriptionDataItemsParams struct { type CheckoutSessionSubscriptionDataParams struct { Params `form:"*"` ApplicationFeePercent *float64 `form:"application_fee_percent"` + Coupon *string `form:"coupon"` DefaultTaxRates []*string `form:"default_tax_rates"` Items []*CheckoutSessionSubscriptionDataItemsParams `form:"items"` TrialEnd *int64 `form:"trial_end"`