#2alheure-subs

1 messages · Page 1 of 1 (latest)

latent bobcat
#

Do you have a subscription ID I can take a look at, just to make sure I'm understanding what you're doing

hidden finch
#

Here is a dummy subscription : sub_1JiW3TC8LE9DxuJ6SYIUIxx5

latent bobcat
#

Thanks for sharing that! So for that subscription, the amount due came below the minimum charge amount (see https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts) so the invoice was automatically marked as paid, and the amount was added to the customer balance to be invoiced later.

For subscriptions that do not require an initial payment, the invoice will not have a Payment Intent. Instead, you should check subscription.pending_setup_intent and use the SetupIntent to collect the Payment information for future usage

hidden finch
#

Thank you for the information!

How can I know if the subscription requires an initial payment or not ?
Does it depend on the billing process (fixed-price, metered, ...) ?
Does it need to register a payment method before preparing a subscription ?
Or is there an other option I cannot find when creating a price ?

I'm sorry if these information are somewhere in the documentation, I couldn't find them.

And thank you once again for your time =)

latent bobcat
#

How can I know if the subscription requires an initial payment or not ?
When you create the subscription, if it doesn't have a status of incomplete then no payment was required.

Does it depend on the billing process (fixed-price, metered, ...) ?
Kind of - metered billing bills at the END of the billing cycle, so unless there's a one-time price or something the subscription won't need any initial payment and it'll immediately be active. That being said, fixed-price subscriptions can also be in a state where they don't require initial payment

#

Does it need to register a payment method before preparing a subscription ?
Nope, no need - you can do it after creating the subscription.

Or is there an other option I cannot find when creating a price ?
Can you clarify this question for me? Not sure I quite understand it

hidden finch
#

I was wondering if there was some checkbox (or whatelse) I couldn't see in the creation form for a product (and price)

latent bobcat
#

A checkbox that controls what?

hidden finch
#

That indicates whether the subscription requires an initial payment or not

latent bobcat
#

Ah, no there isn't a checkbox or anything like that on the price

#

A subscription needing initial payment depends on a number of factors and so it can't really be configured at a per-price level. For example, if you have a subscription that has both a metered and licensed price that will still require payment up front for the licensed price even though the metered one doesn't need it.

hidden finch
#

I see...
If I make a recap, I always have a single price per product, always in a fixed-price billing process, and my subscriptions are created with the 'payment_behavior' => 'default_incomplete' option...

Shouldn't it produce a payment intent, then ?

latent bobcat
#

Not necessarily - it wouldn't produce a Payment Intent if the subscription was trialing, and it also won't create one if the amount due is less then the minimum charge amount (as I said earlier, that's why the subscription you sent over didn't create one. it's invoice was below the minimum amount)

hidden finch
#

For the amount, that was it, sure

Thank you very much, I'll do my best to make it all work

Have a nice day (or evening if you're on an european timezone^^')