#goddas - subscription

1 messages · Page 1 of 1 (latest)

silver orchid
#

This comes from the previous invoice with the failed payment

#

The invoice is still expected to be paid, and the subscription credit is separate from the invoice payment

#

They are getting credit for the unused time on the previous plan

fluid nest
#

This is very confusing why would they get credit if payment failed and sub cancelled? Do I need adjust 'subscription credit' manually? Or how do i handle this?

silver orchid
#

How are you updating the subscription?

#

(when you update the subscription to the new plan)

#

Otherwise, you may want to block the change until the failed invoice is paid

#

Or create a new subscription instead of re-activating a pending cancellation

#

It depends on the flow you're trying to achieve

fluid nest
#

I do want to use the prorations in cases like when a user upgrades. However this is not the case where I'd think prorations would apply. Situation is quite simple: after the payment failed, subscription cancelled automatically in 3 days. This gave the customer credit of 27days (confused here). I did create a new subscription when customer re-activated, but because of the 27-day credit he was charged the much smaller amount. So what I'm trying to achieve is how to not give 'subscription credit' when a payment fails?

#

billing is set to 'auto' in stripe if that makes any difference

silver orchid
#

This was not a new subscription though, right?

#

Can you share the invoice id?

fluid nest
#

sec

silver orchid
#

You need to make sure you handle unpaid invoices when managing upgrades/downgrades

#

ie, when handling the subscription your should inspect the latest_invoice to ensure it's paid before allow prorated credit

fluid nest
#

It was a new subscription. So the 1st subscription cancelled. Then when the user re-subbed a new subscription object was created

#

in_1KZIq1BwEM1EHrL3rpA1ea7D

#

in_1KHAXABwEM1EHrL3GIHlzbt4 - the original invoice that succeeded

#

orig sub - sub_1KCA1ZBwEM1EHrL3WZ6kVviS
new sub - sub_1KZIq1BwEM1EHrL3A14tMmAA

silver orchid
#

Thanks, looking

#

Since the customer was part way through a period, the unused portion was credited

#

I understand this is not what you expected, but this is how invoices work such that we expect you to collect on past failed payments

#

If you do credit on cancelation, you should make sure you first check that the latest invoice was paid