#bragma_code
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/1282978263353917474
đ 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.
- bragma_best-practices, 23 hours ago, 10 messages
- bragma_best-practices, 5 days ago, 36 messages
Hi, let me help you with this.
AutoAdvance will move the Invoice into the next state automatically, i.e. draft -> open -> send/pay (depending on the type of the Invoice). You can find more info here: https://docs.stripe.com/invoicing/integration/automatic-advancement-collection
Ok, if I understand correctly, for payment via app (I don't want to send the request by email) I need to set CollectionMethod = "charge_automatically". Supposing the customer has a payment method attached, will AutoAdvance = true cause the invoice to grab the money automatically if I finalize it from api?
Supposing the customer has a payment method attached, will AutoAdvance = true cause the invoice to grab the money automatically if I finalize it from api?
Basically yes, it will also finalize automatically after 1 hour: https://docs.stripe.com/invoicing/integration/automatic-advancement-collection#toggle-auto-advance
What do you mean by "payment via app" exactly?
We have added mobile SDKs (iOS and Android) and use elements to ask cards etc. In our setup we used payment intents and everything was ok. But now I want to create (server sid) an invoice instead of a pi and I am unsure how to configure the invoice
So now I am testing with invoices... AutoAdvance false, invoices are not finalized (by api/server), still if I create an ephimeral key everything works. But I am unsure if this is ok
You can configure it to charge_automatically, but if Invoice and Customer doesn't have a default Payment Method set, you will need to grab the attached PaymentIntent, and collect the payment details via your app's checkout, as with standalone PaymentIntents.
invoices are not finalized
The difference with AutoAdvance=true is that you just need to send an extra request yourself to finalize the Invoice.
Ok I didn't know about this. Still, it's puzzling because now I have AutoAdvance = false, I never finalize invoices but still the flow you explain above seems to work
It seems finalization is not required... Unless the SDK finalizes it and I don't know
Also I have another doubt. What happens if the customer already has a default payment method? Will it grab the money without passing through the app?
I,e. customer has default card, AutoAdvance=true, CollectionMethod = "charge_automatically" ---> pay without asking the user?
Do you have an example Invoice ID?
The Customer.invoice_settings.default_payment_method is charged when an open Invoice is instructed to "pay": https://docs.stripe.com/api/invoices/pay
With auto-advance=true, this happens as soon as it's finalized.
Ok thanks, it is more clear. I mean, the documentation is good, but the topic is complex
I can create an invoice in test mode and share the link, sure
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
No I think everything is clear, now I have to write some code. I'll let you know, thanks have a nice day!