#luffysenchou9488

1 messages · Page 1 of 1 (latest)

novel blazeBOT
#

Hello luffysenchou9488, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
https://discord.com/channels/841573134531821608/1164136827272306792, 0 days ago, 16 messages
https://discord.com/channels/841573134531821608/1163824919298183228, 1 days ago, 4 messages

south matrix
#

hi! I don't understand.

#

Basically, I'm creating subscriptions and not invoices directly
but Subscriptions create and charge Invoices, that's kind of the point of them.

radiant urchin
#

I want to create post-paid subscriptions, which charges the user at the end of the first month. When got into a conversation with Vanya, she suggested to use auto_advance flag to false while creating invoices.

#

But since I'm creating a subscription and not an invoice, how do i get this behaviour?

#

Requirement is to create a subscription at the start of the month with 500$, invoice gets generated for this on the start of the month, but payment will be collected at the end of the month.

south matrix
#

hmm, not sure you can. We don't really support the concept of charging at the end of the month, except for metered price plans.
if you just want to skip the very first payment, you could use a one-time 100% coupon.

south matrix
radiant urchin
#

But the concept of Invoice is to generate a document which mentions the payment overdue details. Once the payment is done, a receipt is generated.

In this sense, shouldn't the invoice gets created not necessarily on the day of collecting the payments?

south matrix
#

maybe but that's just not how it works in Stripe

#

the idea is that on Day X a new billing cycle of the subscription starts. At that time we generate an invoice that charges for that period(i.e. from X to X+31 days). The customer has to pay that(either by us automatically charging their card, with some retries, or by sending them the invoice and giving them days_until_due days to pay) otherwise the Subscription becomes 'past_due'/unpaid.

radiant urchin
#

ok, so if i need the behaviour i wanted, should i add trial days of 30 so that for the first month, he wont be charged, and from the next month onwards he'll get charged on the first of the month?

radiant urchin
#

@south matrix Can you please confirm this?

south matrix
#

it might work for your use case yes.

radiant urchin
#

cool, Can you please confirm one last thing? when i'm creating a subscription in the stripe dashboard, I am able to select the subscription start date as 1st of October and bill Bill starting as 1st of November, In this case, i'm only getting billed on 1st of November and not on 1st of October. This is showing the subscription as active from 1st of October.

Isn't this contradicting what you said? That it is not possible to charge later.

south matrix
#

what subscription ID sub_xxx is that so I can have a look and understand what the Dashboard does?

radiant urchin
#

sure, let me fetch that info for you

#

that was done in a test clock simulation which got deleted when i finished the simulation. Let me simulate that again. Please don't close this thread till then

radiant urchin
#

this is little confusing, can u pls tell me what exactly this means?

south matrix
#

which part specifically is confusing?

radiant urchin
#

When creating new subscriptions, you can configure their billing cycle anchor to fixed dates (for example, the 1st of the next month).

Basically this means, i can set the billing cycle to start on whenever I want to charge him?

south matrix
#

yes but there are limits. Like it can't be set to more than the billing period(i.e you can't set it to a time more than month from now)
StripeInvalidRequestError: billing_cycle_anchor cannot be later than next natural billing date (1700307788) for plan

#

note in any case this is not what you asked for, since it is not "Invoice gets generated for this on the start of the month, but payment will be collected at the end of the month." (as I said, that is not possible in our models), it is that the Invoice doesn't actually get created until the billing_cycle_anchor time.

radiant urchin
#

got it, now I understand the nitty gritty of subscription and invoicing.

#

Will play around by simulating what i want in the test clock.