#Dharunkumar Natarajan
1 messages · Page 1 of 1 (latest)
Are you the developer building this integration?
yes
I'm trying to use that promo as a customer as well(by going through the checkout flow as a user of my platform) to make sure the promo works as expected and it throws this error
Can you share the request ID from you browser dev tools when you try and apply the promo code?
looking at the network tab, then the request-id in the response headers for the erroring request
request-id: req_tzLmjvFLhUMfm8
Ok thanks - i don't see any restrictions on the promo/coupon that would explain this
yeah..that's why I'm also confused
the only thing I notice is that the prorated due is $45.54 today and the promo code is $50 off for two months, since the code amount is greater than the due amount, does it affect in any way?
but I tried with a promo which is lesser in denomination(only $5) with coupon id: Ner2a2nX and promo id: promo_1N3YfYG3LDN6ekHV0EsXyIBP and it fails with the same error.
request-id: req_Iwn7SHFe8HebLV
Hmm ok thanks for trying that, looking at these too
Still looking at this!
Me as well!
It looks like this is a known limitation of the API at the moment:
You can’t apply
amount_offcoupons to Checkout Sessions with a defaultproration_behaviorofcreate_prorations.
https://stripe.com/docs/payments/checkout/billing-cycle#limitations
Unfortunately that leaves me not quite sure what you should do here. That billing cycle anchor and prorations seem pretty integral to what you are doing here and the promotion code is as well.
Also to be clear we are working to address this limitation. Not sure on the timeline though so I am unsure what you may want to do in the meantime
% off still coupons work. So the best compromise may to be to use % off coupons for now until this limitation is addressed.
so if I want to discount $50 for my $50 subscription every month for the first two months, instead of using "fixed amount discount for $50", I can use 100% discount with the "Percentage discount" to achieve the same?
but will the percentage discount stop at $50? because I also have a metered pricing for this product and I do not want to discount their metered usage by 100%
I think you can specify the 100% off coupon to only work for the product of the $50/month price and it wouldn't get applied to the metered billing parts of the invoice.
Would you mind creating a coupon like that and testing one more time in test mode? Currently trying to repro something for another thread
sure, will try
I think it applies for the product as a whole and not to individual prices in a product, so it is discounting the metered usage as well
Ah, in that case you will want them to have separate products. In Stripe Products are meant to represent different things you are charging for and prices are meant to be different periods or amounts that you pay for that thing. So for example silver vs gold plans would be different products but monthly vs yearly rates would be different prices