python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -


I can not find anything in the source about using coupons after subscribing to a user's plan. Is it possible to use a coupon to credit a user's membership after initial subscription? If not, what is the best option?

Specifically, I want to give a user 100% coupon for that month, when they take 5 [site specific actions].

This is possible, but may not be the best idea.

Coupons are currently applied to the stripe, then apply again at the customer level and each client can have a single coupon. So if you are already offering discounts to the coupon, then the customer who is currently in the present will also give up. It also means that if you are using a recently-added multiple subscription capacity, then all of the user's subscription will be ready for the month.

Coupons can be set to "Once", only once (as the only name) can be used by any customer, so if this credit can earn more than once, You will have to maintain a 100% discount coupon continuously.

The more flexible option here would probably be to post the credit via the Strip API. If you are not using a coupon (and there is no plan for it), you can create a new 100% coupon on a monthly basis.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

java - Unable to get JDBC connection in Spring application to MySQL -