#sanjay_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/1376826244720492687
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Looking into your query!
While creating invoice with collection_method: 'charge_automatically' and auto_advance: true, do we need to finalize them again?
You don't need to finalize the Invoice when you setauto_advanceastrue.
It will finalise automatically after an hour.
It will also attempt to automatically charge the customer's payment method.
I am not seeing a request to pay for the particular invoice. Do you have a request ID where it didn't work? This is how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Will it automatically charge after finalization, or do we have to call invoices.pay() API. Because, when I tried, even if it is in finalized status, it was not paid and it was displaying:
Latest activity
PaymentIntent status:
requires_confirmation
Hey! Taking over for my colleague.
Will it automatically charge after finalization
When auto_Advance is true, it will charge autoamtically afer finalization
You can learn more about auto advance in this guide:
https://docs.stripe.com/invoicing/integration/automatic-advancement-collection#toggle-auto-advance
- Does this work in test mode?
- How much time, it takes inorder to charge automatically after finalization?
- My invoice is finalized, but payment is in incomplete state and i am able to see that PaymentIntent status: requires_confirmation in latest activity. Even though I have set auto_Advance: true, it is not automatically charging. (Note: This is in Test Mode). What could be the potential issue here?
- Does this work in test mode?
Yes
- How much time, it takes inorder to charge automatically after finalization?
If you are using Subscription, it's ~1hour
But you can use Stripe test clokc, in order to create simualtions and advance time
what about auto debit (payment) after finalization for non subscription invoices. Does it take 1 hour too?
one the invoice finalized, there isn't any grace period
The 1 hour waiting time, is for Subscription's invoices from draft to finalize status
ok, thanks
Happy to help!
I was facing one issue regd Invoice Payment .My invoice is finalized, but payment is in incomplete state and i am able to see that PaymentIntent status: requires_confirmation in latest activity. Even though I have set auto_Advance: true, it is not automatically charging. (Note: This is in Test Mode). What could be the potential issue here?
Hi, taking over as my teammate needs to step away. Let me catch up.
Can you share the specific example invoice please? It should start with in_abc123
Taking a look here
Looking at
status_transitions: {
finalized_at:
1748338368
,
marked_uncollectible_at: null,
paid_at: null,
voided_at: null,
},
Can you try https://docs.stripe.com/api/invoices/pay?api-version=2025-04-30.basil for that invoice?
yeah, this works. But i have already provided:
collection_method: 'charge_automatically',
auto_advance: true,
while creating invoice. Wont these trigger auto debit / charge automatically?
Or we have to manually call invoice.pay() API?
When you manually finalize an invoice then you're in effect disabling the automatic payment attempt