#achilles_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/1238195135301288059
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
@dry cliff hello! I'm not sure I understand the question you have. If you use our Billing product and our Subscriptions API we do the automatic payment attempt for you
yes but if all retries fail, you either move the subscription to cancelled or leave the invoice due
Gotcha that's the part I was missing. So at that point you handle the payment attempt using the Pay Invoice API: https://docs.stripe.com/api/invoices/pay
But I want this to be a on session payment flow , with stripe hosted ui to enter new payment method details if necessary. is there a way to do this?
The easiest is to send them to our Hosted Invoice Page product right? The Invoice has https://docs.stripe.com/api/invoices/object#invoice_object-hosted_invoice_url
If you really want to do this on your own website/app then you look at the Invoice, it has payment_intent: 'pi_123' and that PaymentIntent has a client_secret that you can then use to render the PaymentElement client-side on your app
cool will check this out , if every invoice has a hosted url even after all retries fail , it'll work for me