#やまだ えしら
1 messages · Page 1 of 1 (latest)
Are these one-time invoices or associated with a subscription?
We assume one-time one
You can 'revise' invoices before they're paid: https://stripe.com/docs/invoicing/invoice-edits
Thanks!
It might have been a little different. It is not native English, so I write slowly.
What we want to do (through the API) is :
- create a one-time Invoice
- display the invoice amount on the website (payment confirmation screen)
- if it is OK, finalize the invoice and pay
If the invoice is not OK in step 2 (if you leave or return to another screen), the invoice created in step 1 will remain as a draft.
We do not want a one-time Invoice to be created every time the user goes back and forth between pages.
Back and forth between what pages? That sounds like an implementation details of your integration, not something specific to Stripe.
That sounds like an implementation details of your integration, not something specific to Stripe
Yes, I thought something like the feature to simulate an Invoice would solve this implementation, does Stripe have such a feature?
If you want to prevent creating invoices until payment, I'd recommend using the preview invoice API to generate a preview of what the cost would be. Then once your customer is happy, then create the invoice and pay it: 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.
Thank you! That is an ideal feature.
But it is Subscription based and does not appear to be usable in ONE-TIME.
It should be, doesn't need a Subscription ID to work – you just pass customer: 'cus_xxx' instead
Ok, I will try the API!
Thank you 🙂
Thanks for your always fast and accurate answers. 
np, happy to help!