How to Apply a Coupon to a Stripe Customer
问题 I can't find any way to apply the coupon/discount to an existing customer who has a reoccurring payment. I'm using the stripe gem. I went ahead and created the coupon on the Stripe dashboard. I see no mention on how to add a coupon on their API page. I've tried this solution below but to no avail. cu = Stripe::Customer.retrieve("cus_XXX") cu.discount = "my_coupon_id" cu.save # returns Stripe::InvalidRequestError: (Status 400) Received unknown parameter: discount There must be some sort of