#Benoît
1 messages · Page 1 of 1 (latest)
Hello is there a specific doc that you got orders.create from? If so would you be able to send me a link to it?
Hello, yes
Hello 👋
Taking over, Orders API has been deprecated so if you're building a new integration with it, we'd recommend against that.
That being said, one-time payments don't usually generate invoices.
Invoices are only generated for recurring payments OR if you create a one-off invoice
The only exception is if you use Stripe Checkout
In that case, you do have an option to generate post payment invoice
https://stripe.com/docs/payments/checkout/post-payment-invoices
does that make sense @buoyant scaffold ?
I'm a little confused about some Stripe concepts.
In my app, my users can subscribe (and the i see invoices), but they also can pay "one shot" to download some files.
In both cases, i need my customer to have access to his invoices, subscription invoices and his one-shot payment invoices
How exactly are you creating these "one-shot" payments?
When the user click on a button, i use "orders.create" to create an order, and then i pass the order ID to the "orders.pay" method
but that's a one-time payment, right?
As I explained earlier, invoices are only generated for recurring prices OR if you generate the invoice separately.
What i call a "one shot" payment is the fact that it create a payment for my user that is paid automatically.
Is this what you call the "one-time" payment ?
Do you mean i should create an invoice, associate it to my user, and instantiate the payment of this invoice ?
Yes the alternative would be to create an invoice for the one-off payment
https://site-admin.stripe.com/docs/api/invoices/create
If you set collection_method to charge_automatically when you create the invoice then Stripe would charge the default payment method that the customer has on file.
What i call a "one shot" payment is the fact that it create a payment for my user that is paid automatically.
Is this what you call the "one-time" payment ?
One-time payment is a payment that doesn't repeat (on an interval like a subscription)
Ok, it seems very clear to me now, thank you very much !
(The Orders API doc is not marked as deprecated, it seems)
Huh, I see the label here