#nerder
1 messages · Page 1 of 1 (latest)
Hi there
recurring is for Subscriptions where it will be used for recurring payments. If it is omitted then yes, it won't be recurring
And it would be a one-off
ok great, so basically I then try to "buy" it using the subscription.create API it will fail
and I should use charges right?
You use Prices with Checkout or with Subscriptions/Invoices
If you are going to just take one-off payments using PaymentIntents then you don't use Prices
umm, not sure I follow here. I don't need to create a product/price to be bought and directly put the amount and create the PaymentIntent?
Let's back up
What is your model (one-off payments or recurring or both?)
And what integration flow are you interested in using? Stripe Checkout? Elements with custom flow?
I try to explain briefly, I have 3 potential use cases, and for now, I support one of them. The use cases are the following:
- Subs, recurring with a recurring (monthly, 3monthly, etc) supported already
- Subs, that cancel after the first cycle (i'm using
cancel_at_period_endfor them) almost done - One-off products todo
My integration is using the custom flow, using flutter_stripe
Ah okay
So then yeah, you won't use Products/Prices for the one-off flow unless you want to use Invoices
You would just set the amount when you create the PaymentIntent: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-amount
what's the difference?
I saw that flow in which you create invoice and then it pays
The difference is that there is an invoice that you could provide to a customer if you so desired.
And it is a bit more complicated in terms of the amount of API calls
But overall quite similar.
ok, that's great, might be my case then. Also because I need to handle a bunch of custom stuff in the app after the payment is done (keep track of used sessions)
just for context we are modeling a gym subscriptions, and they also sell drop-ins (either one class, or a bundle of 10 classes for instance)
so I guess that it might make sense to have invoicing there
thank you so much for the clarification!