#FallenBlade
1 messages · Page 1 of 1 (latest)
No. Invoices use Payment Intents, but Payment Intents do not use Invoices
I see, thanks for your answer.
Can you give me a link how to create a one-time payment? and also a starter guide to create invoices?
Here's the quickstart for payments: https://stripe.com/docs/payments/quickstart
Here's the one for Invoices: https://stripe.com/docs/invoicing/integration/quickstart
Thanks!
I'm quite confused here. I want my customer to be charged automatically. Do I need to put days_until_due when I set my collection_method to charge_automatically ?
I believe days_until_due is optional, so you shouldn't need to set it
Thanks
Does invoice returns paymentIntent and client secret? if so, how do you get those?
Invoices will return the Payment Intent, and the Payment Intent has a client secret. You can either retrieve the Invoice and expand the Payment Intent, or you can retrieve the Invoice to get the Payment Intent ID and make a separate call with it to get the client secret.
Client secret: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-client_secret
Expanding: https://stripe.com/docs/expand
I see. Thank you for the resources. I'll read them.
Thanks for reading the docs (I know I threw a lot at you). Not everyone does, but it makes the conversations much more productive