#niceone_best-practices
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/1389942496867516529
đ 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.
- niceone_unexpected, 4 days ago, 32 messages
Hmm, depends on how you have the portal configured. Invoices are payable there
is there a possibility to configure it in a way to disable access to pay invoices?
Ensure that invoice_history is disabled on the config: https://docs.stripe.com/api/customer_portal/configurations/object#portal_configuration_object-features-invoice_history-enabled
FWIW, are these one-off invoices or are they tied to a subscription?
subscription
OK, I think disabling invoice_history is enough
hmm this is quite restrictive, be he looses possibility to view hist invoices right?
Yes
basically my goal is to prevent the situation that subscription is cancelled (by stripe), but after that the user pays the related invoice, as happened for this subscription: sub_1O26WzL7qyU6wPquZtuFRBrp
btw. why Stripe allows to pay such invoice if subscription is cancelled?
Why don't you just void any open invoices for the sub on cancelation? https://docs.stripe.com/api/invoices/void
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I gues the best would be to void all invoices for cancelled subscription?
Because they could in theory use your service for the entire period, cancel on the last day and not pay a penny
ok, makes sense
Yes that is what we recommend:
- Listen for
customer.subscription.canceledevents - Get all
openinvoices for that subscription: https://docs.stripe.com/api/invoices/list - Call the
/voidendpoint for each
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.