oscarychen/drf-stripe-subscription

Attach coupon to customer

joshuakoh1 opened this issue · 2 comments

A callback to attach a coupon to a customer would be nice on:

  1. Input passed on first creation of customer
  2. Function on stripe_user that can be called manually

https://stripe.com/docs/billing/subscriptions/coupons?dashboard-or-api=api
https://stripe.com/docs/api/customers/update

Are you using the Stripe hosted Checkout? a customer can use coupon there when checking out.

@oscarychen It's different attaching a coupon to the customer vs letting them apply it themselves.

If you provide a coupon code, the customer will have a discount applied on all recurring charges. Charges you create through the API will not have the discount.