#bragma_code

1 messages ¡ Page 1 of 1 (latest)

green rivetBOT
#

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

raven stream
#

Hi, let me help you with this.

earnest nest
#

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?

raven stream
#

What do you mean by "payment via app" exactly?

earnest nest
#

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

raven stream
#

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.

earnest nest
#

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?

raven stream
raven stream
#

With auto-advance=true, this happens as soon as it's finalized.

green rivetBOT
earnest nest
#

Ok thanks, it is more clear. I mean, the documentation is good, but the topic is complex

earnest nest
static pewter
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

earnest nest
#

No I think everything is clear, now I have to write some code. I'll let you know, thanks have a nice day!

green rivetBOT