#zxcvbnm123
1 messages · Page 1 of 1 (latest)
You can preview what an upcoming invoice will look like with this endpoint: https://stripe.com/docs/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Are you using our first party Stripe libraries (I think that is stripe-node here) or are you using the third party library vuestripe?
https://github.com/stripe/stripe-node
https://vuestripe.com/
Gotcha, thank you for the info.
And what exactly are you looking for sample code of? Is there a specific flow you are working with here?
I don't know how many other vue specific samples we have but we may have others that are helpful to you here
also i have 2 product i must make i want in my panel the client in my web
the client with pay element can pay
one product with different prices (e.g. order size,..)
before he can pay i would like a preview for invoice
after pay button automatic invoice is sent
Ah gotcha, I don't think we have a full example of that specific flow but we do have docs that cover each part of that
The retrieve an upcoming invoice part is covered well in the API reference, you can display the info from that API response to your user any way you want https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice
We have these docs for actually creating the one off invoice https://stripe.com/docs/invoicing/integration