#shahriyar_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/1288468493959954442
đ 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.
- shahriyar_subscription-upgrade, 18 hours ago, 4 messages
Yeah if a invoice is past due
And its retrying
I want to create a checkout session so once they pay it by clicking a button they get redirected to the success_url
no can't use Checkout Session to pay an existing Invoice. instead you could use the Hosted Invoice url: https://docs.stripe.com/api/invoices/object?lang=node#invoice_object-hosted_invoice_url
I am currently using it, but the problem is, once paid it stays there, I have to manually go back and check
I don't understand what you mean by "once paid it stays there, I have to manually go back and check". what's the issue exactly?
So if you click a hosted_invoice_url
Once the payment is done
You just see a success message and some buttons to download receipt I guess
what I want is rather than showing those, I want the users to be redirected to a page on my website
got it, but that's not possible with the hosted invoice. you could use Checkout Session to collect payment, but that won't update the existing invoice.
Yeah but checkout session does not work for past_due invoices
I will live with it, but it will be a good addition of we can create checkout sessions for invoices too
Yeah but checkout session does not work for past_due invoices
correct
Take that as a suggestion.
I will live with it, but it will be a good addition of we can create checkout sessions for invoices too
you can use Checkout Session to create a new invoice, but not pay an existing invoice no. but thanks for the feedback!
you could also build your own payment flow with the Payment Element to pay the existing Invoice, and have full control over the UI.
Thanks, I will do that