#debbbole
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
the "blue" message is the one i'm talking about: our sub costs 99โฌ/year, the current user can pay 50โฌ for the first year (and apply a special corporate discount, 15โฌ one shot), but he/she will pay 99โฌ/year in the next renewals... the message is assuming he/she will pay 50โฌ because we setup the session with that special price (that will be upgraded after we receive the notification checkout.session.complete)
hi @visual urchin ! really tnx! ๐
we are doing this because the Checkout session/paywall supports only one discount at a time, so we managed to achieve this "playing" with prices
I'm reading through your message, will be with you shortly
take your time, my "fault": it's a wall-of text ๐ i tried to describe my scenario to help understand the choices we made ๐
when creating a coupon https://stripe.com/docs/api/coupons/create you need to use a combination of 2 parameters https://stripe.com/docs/api/coupons/create#create_coupon-duration repeating and https://stripe.com/docs/api/coupons/create#create_coupon-duration_in_months 12
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
with that the coupon would only be applicable on the first year of the subscription and the message should reflect that
but this way the user couldn't add any other coupon
we need to let the user add another coupon, Checkout Session supports only one coupon
we are "upgrading" the subscription from 50โฌ/year to 99โฌ/year after the checkout.session.complete event, we just need to tell the user the truth ๐ but i can't find any way to customize that message
I don't follow what does that have to do with your use-case
sorry I might be a bit lost
just give me a sec to re-read your initial message
i'll try my best to describe it, sorry in advance for my english ๐ :
- we have 99โฌ subs
- we offer special corporate discount codes
- we offer special 1st year subs prices of 50โฌ in some use cases
- the checkout session supports only 1 discount code, so we cant create the session as usual and add a coupon, because this will prevent the user to "stack" his corporate discount
- so, we are creating a session with the 50โฌ price and no attached coupon, this way the user can add another discount code on the paywall
- when we receive the
checkout.session.completeevent, if we find it as a "special 50โฌ one" we upgrade the price to the default 99โฌ price
the problem is: in the Checkout paywall there's that blue message telling the user he will pay the special 50โฌ price in the following renewals, but we would like to tell him the real future renewal price (or disable that message)
I see the issue now
just give me a moment to think about what solutions do we have here
rly tnx! ๐
I'm trying to test something to try and replicate for you if this is possible or not
are you still here?
I think it's better if you write to https://support.stripe.com/contact/email?topic=api_integration and mention that you've talked to tarzan on discord, this way I would be able to continue working on this async and will get back to you with my findings. would that be ok with you?
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
yep, it is ๐ rly tnx for your help! i'll write you soon ๐
please do let me know when you do
ok ๐ will it be of any use if i tell you (in my email) some plan/price/coupon IDs so you can check for "configuration" problems?
yes please add as many details as you can so it would be easier for me to look into it
ok, rly tnx, i'll write you asap ๐