#ezequielg87

1 messages · Page 1 of 1 (latest)

tall salmonBOT
zealous moth
brisk timber
#

Another question: About subscriptions events: the first invoiced is created with number and the invoice.update does not exist. From 2rd invoice in invpooice.create number is null, but exist the event invoice.update with the invoice number. Is correct?

zealous moth
#

Is that what you're observing? THat sounds right but if you have examples or more details about what in unexpected please share.

brisk timber
#

events when i create a subscription

zealous moth
#

Ok, and what about this is not as you expect it ought to be?

brisk timber
#

i the next invoice the event was:

#

in the first case, the invoice.updated was never done

zealous moth
#

Yes, because the first invoice does not go through the draft stage, its special

#

It's created and immediately finalized, so theres no update

brisk timber
#

Perfect!

#

thanks so much!!!

zealous moth
#

NP!

tall salmonBOT
brisk timber
#

Hi again! When I create a subscription, I set cancel_at: subscriptionEndDate, collection_method: 'charge_automatically' and proration_behavior: 'none'. This applies to all invoices in the case of prorations?

zealous moth
#

No, proration_behavior only applies to any prorations that might happen as a result of that request

#

For example, if that cancel date were within the current billing period it would no prorate

#

If you make other change later prorations would apply unless you set to none then too

brisk timber
#

how can i set no prorations in the last invoice or when cancel the subscription before finalize?

zealous moth
#

how can i set no prorations in the last invoice
Set the cancel time to be the end of the period so the invoice is for the full period

#

or when cancel the subscription before finalize?
not sure what you mean, can you rephrase?

brisk timber
#

How can I set up no prorations when cancelling the subscription before the end of the subscription? Or prorations not apply for this case?

zealous moth
#

before the end of the subscription
What does this mean? Subscription renew forever unless cancelled

brisk timber
#

I create a subscription:const subscription = await stripe.subscriptions.create({
customer,
items: [{ price: price.id }],
cancel_at: subscriptionEnd,
collection_method: 'charge_automatically',
proration_behavior: 'none',
});

zealous moth
#

What is subscriptionEnd from?

brisk timber
#

if the admin cancel the subscription before cancel_at the las payment no is refounded, true?

#

subscriptionEnd is a date param in my function on node js

#

because the subscription are for 1 wekly, 2 wekly .... n weaklys... the same with month and be-weakly

zealous moth
#

If you use cancel_at for some future period, the last invoice will always be prorated

brisk timber
#

How to avoid this? The subscription works as plan in this system. The plan has start and end date, and it can be extended. If the client ends their plan, they can "buy" a new plan (another subscription).

zealous moth
#

You can't specifically avoid that -- if you want the final invoice to be for the full price amount, set the future end date to be the full period

brisk timber
#

perfect, thanks so much!!!

zealous moth