#mboras_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1297856364256956529
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mboras_webhooks, 3 days ago, 18 messages
๐ happy to help
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
kk you've sent for subscription_update_confirm
but I want to let user first to choose plan and then apply on selected plan discount
Can I pass that discount to subscription_update
no unfortunately that's not possible
you can simply do it in the webhook handler if you want
or you let them choose what to upgrade before you get them to the customer portal
yes exactly
I have one more question for promo codes (I forget every time what is what here hahahh)
so I'll send with sendgrid 1000+ users email with some promo code
they can use that promo code only once on whatever product they want
how do I set that promo code can be used per customer only once, but I don't want to set limit on number of customers who can use it (because I don't know it)
so I send code to tarzan and karlleklo
- I want that each of you can use it only one time and after that if you try to use it, it'll be invalid for you
does https://docs.stripe.com/billing/subscriptions/coupons?dashboard-or-api=api#limit-by-first-time-order work for the use case?
I think it'll not be good because some of my free plan legacy users have had plus plan and they cancelled it, but they still use my software
and also my free plan users "have had transaction" since my free plan is free product in stripe
then another option is to create a Customer in advance, and then create separate promo codes that are limited to those specific customers, and share those codes
so each customer will have its own promo code and they can use it only once?
and I need to send to all of them email with different code?
I don't like this approach ๐ฆ
can I maybe use this approach that I've talked with tarzan
- send them email that they have 50% one time discount for yearly plan (I'll give them discount only for that product) -> in email there won't be any code or anything, just say to them to go in my app and navigate to customer portal
- in my app when I am sending request to create customer portal If user has all checks that I want to give him 50% discount once for yearly plan I use https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-flow_data-subscription_update_confirm-discounts
- that discount'll be only applied for yearly product once (one year)
- user'll not see in customer portal what code is used so he can't share that code with others
So basically I want to programatically auto-apply code on yearly product for my customers, but don't allow them to "hack me" with sharing that code to others
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
maybe. I'd suggest trying it out in test mode
you understood what I am asking?
maybe I haven't explained good
something like this
I understand but I'm not sure what input I can give you
ok