#thebeard_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/1360257206553022596
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, taking a look here
You'd want to update the Configuration and NOT the Portal Session
I do not know a ton about the Dashboard but here is how to achieve it via the API: https://docs.stripe.com/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update
but when i retrieve configuration. it does promotion codes allowed in the configuration via the api
request id : req_hw3IJInM93xB68
It looks like you recently enabled it. Can you create another Customer Portal Session and share the screenshot from the UI please?
Can you share the request ID for creating this new session please?
i see the issue. i see that discounts are allowed on subscription_update_confirm and not on subscription_update. and the stripe portal does not allow coupons and instead we need to pass coupon via api. am i correct here?
is there a way to apply coupons in portal sessions similar to checkout?
request id: req_I6URq764T3rOeN
Let me test something real quick
Can you click on 'Continue' and on the nesr page, you should see the promo option like this
Did it work?
nice, i see it now
but it seems like i have to update quantity to enable the continue
so my use case is this
user is in trialng status, i ask them to update payment method, and while they add for payment method, they can add a promotion code for when trial ends
I think that is because the subscription has to be updated, otherwise we're showing the current subscription they are on.
There is not a functionality to add a promotion code when they only update the payment method no. You can control this on your end, and potentially add a discounted price to update to after they add a payment method.
yea, that makes sense. thanks for looking into it