#ezequielg87
1 messages · Page 1 of 1 (latest)
You can disable that with prorate=false
https://stripe.com/docs/api/subscriptions/cancel?lang=curl#cancel_subscription-prorate
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
Is that what you're observing? THat sounds right but if you have examples or more details about what in unexpected please share.
events when i create a subscription
Ok, and what about this is not as you expect it ought to be?
i the next invoice the event was:
in the first case, the invoice.updated was never done
Yes, because the first invoice does not go through the draft stage, its special
It's created and immediately finalized, so theres no update
NP!
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?
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
how can i set no prorations in the last invoice or when cancel the subscription before finalize?
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?
How can I set up no prorations when cancelling the subscription before the end of the subscription? Or prorations not apply for this case?
before the end of the subscription
What does this mean? Subscription renew forever unless cancelled
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',
});
What is subscriptionEnd from?
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
If you use cancel_at for some future period, the last invoice will always be prorated
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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).
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
perfect, thanks so much!!!
You can also, for example, use a subscription schedule to cancel after some number of iterations:
https://stripe.com/docs/billing/subscriptions/subscription-schedules