#sanjay_api

1 messages ¡ Page 1 of 1 (latest)

limpid acornBOT
#

👋 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.

cinder river
#

Hi! Looking into your query!

limpid acornBOT
cinder river
#

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 set auto_advance as true.

#

It will finalise automatically after an hour.

#

It will also attempt to automatically charge the customer's payment method.

west schooner
wanton willow
#

Hey! Taking over for my colleague.

Will it automatically charge after finalization
When auto_Advance is true, it will charge autoamtically afer finalization

west schooner
# wanton willow You can learn more about auto advance in this guide: <https://docs.stripe.com/in...
  1. Does this work in test mode?
  2. How much time, it takes inorder to charge automatically after finalization?
  3. 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?
wanton willow
#
  1. Does this work in test mode?
    Yes
#
  1. 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

limpid acornBOT
west schooner
#

what about auto debit (payment) after finalization for non subscription invoices. Does it take 1 hour too?

wanton willow
#

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

west schooner
#

ok, thanks

wanton willow
#

Happy to help!

west schooner
#

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?

wanton steppe
#

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

west schooner
#

in_1RTJreCpfpVCWu67LxPTYZrJ
this is the invoice id

wanton steppe
#

Taking a look here

#

Looking at

status_transitions: {
finalized_at:
1748338368
,
marked_uncollectible_at: null,
paid_at: null,
voided_at: null,
},

west schooner
#

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?

silent shoal
#

When you manually finalize an invoice then you're in effect disabling the automatic payment attempt

west schooner
#

i provided
collection_method: 'charge_automatically',
auto_advance: true,

but in this case, invoice was not paid automatically?What could be the potential issue here

#

is /pay API mandatory even if i provide:
collection_method: 'charge_automatically',
auto_advance: true,
?