Stripe - Apply coupon to customer or subscription? -
In the Strip API documentation, they show that you can apply coupons to the customer.
CUST = Strip :: Client.Phil ("cus_asdasdad") cust.coupon = "CUPPONCODE" cust.save
However, You can also apply a coupon:
cust = stripe :: client.exclude ("cus_asdasdad") sub = cust.subscriptions.retrieve ("sub_blablabla") sub.coupon = "couponcode" Sub.save
What is the difference between the two? Basically, I would like to pay $ 15 for my customer's next subscription fee, and only the next one.
To create a coupon, set one time to max_redemptions
property can do.
The difference in your question is that the coupon was sent to Customer Invoice for Customer This means that if the invoice contains membership and many invoice items , then the discount will apply to the sum of all those.
On the contrary, applying a coupon of a membership means that the discount will only apply to the cost of membership within the invoice Invoice Items will not be given a discount.
If a coupon is a "off of $ 20" type, it will not make any difference, but it will be whether the "20% Off" type.
Comments
Post a Comment