#asdfgh-invoice
1 messages · Page 1 of 1 (latest)
We don't automatically create invoices for one-time payments currently, unless you're using Invoicing directly: https://stripe.com/docs/invoicing
Oh, thats sad
But as long I can see, I cannot provide amount for this invoice object
And I can only bind it to subscription
Or maybe I am missing something
Oh, there is additionally invoice item object
You can use this for a one-time payment, it doesn't need to be tied to a subscription
But yes, you'd add invoice items as opposed to a flat amount parameter
And what will be the best way to provide here name, surname and tax number?
You'd create a Customer object to reflect their details: https://stripe.com/docs/invoicing/customer
Okay, but in my platform I am creating customer object automatically after successful sign up
And it only has info about customer email
And he can use my platform without providing his personal data
But there will be a checkbox in checkout with title - 'I want an invoice'
And if he wants that, then he need to provide his personal data
So I need to update this customer object, when he wants an invoice and then create invoice for updated customer?
Well your entire flow needs to be revisited really, as you can't receive an invoice for a Payment Intent
So in the cases where they check that box, you'd need to update their details and create an Invoice instead of a Payment Intent
But my platform is mobile app and I want to present a payment sheet for my customer and not sending him an invoice for payment
Invoices should be a only confirmation with his personal data
Also I cannot see any tax number parameter in customer object, so I believe that i need to provide it as a custom field, is that right?
There's a name field: https://stripe.com/docs/api/customers/create#create_customer-name
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Tax number *
Yep, it won't work with invoices that way I'm afraid. You'd need to handle the invoices yourself in that flow
Okay, thank you very much for help
One last question, how to create an invoice with amount but without need to pay for customer and without payment link?
Is this possible?
You can mark an invoice as 'paid out of band': https://stripe.com/docs/api/invoices/pay?lang=java#pay_invoice-paid_out_of_band
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks !