#sahil_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. Thank you for your patience!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
đ 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/1213135328379019304
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
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.
- sahil-invoiceitems-delete, 6 days ago, 28 messages
You want a prorated final invoice?
You can configure that in a portal configuration if so:
https://docs.stripe.com/api/customer_portal/configurations/create?gclid=deleted%2F%2F%2F#create_portal_configuration-features-subscription_cancel-proration_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Does that create a new and final invoice?
I see the Cancel API has both invoice_now and prorate params. So I am confused
ok, so I have to set the portal configurations each time before calling the poratal session API?
You can just pass the configuration id when creating the session here: https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-configuration
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yeah, but that would be the default configuration right? Which may not have the what I need.
can I modify this from the dashboard for once?
What do you mean
You control your code
That param is where you'd pass a custom configuration id
I create the Stripe client with all defaults. So I believe the portal configuration gets created with default configuration
You need to create a new portal configuration here
And pass its id to the customer portal session creation request
Yeah so that would create a new portal config each time. Would that be okay? Do those configuration disappear when the portal sessions ends?
No you just need to create it once...
Just store its id somewhere after creating it
You can reuse it
okay.