#Benoît

1 messages · Page 1 of 1 (latest)

agile cragBOT
honest lily
#

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?

buoyant scaffold
#

Hello, yes

agile cragBOT
buoyant scaffold
restive fractal
#

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

#

does that make sense @buoyant scaffold ?

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

restive fractal
#

How exactly are you creating these "one-shot" payments?

buoyant scaffold
#

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

restive fractal
#

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.

buoyant scaffold
#

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 ?

restive fractal
#

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)

buoyant scaffold
#

Ok, it seems very clear to me now, thank you very much !

#

(The Orders API doc is not marked as deprecated, it seems)

restive fractal
#

Huh, I see the label here

buoyant scaffold
#

Ok, yes.
"Deprecated" should also be written next the sub-categories titles to be very visible

#

Thanks for your help @restive fractal 👍