#ge_orgejoseph27

1 messages ยท Page 1 of 1 (latest)

mild kiteBOT
#

Hello! 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.

quasi grotto
#

can you share the invoice id?

tardy spire
#

yess

#

This is in_1OD0fJCQTcpcYTusWOkmCWB4 - in test env

quasi grotto
#

I recommend checking your request to see if it's successful in the future : https://dashboard.stripe.com/test/invoices/in_1OD0fJCQTcpcYTusWOkmCWB4. The request to void the Invoice failed cause the invoice is still in draft.

If the invoice is from a Subscription and is in draft mode, you can update the invoice to set auto_advance=false to stop Stripe from automatically finalizing the invoice and collecting payment : https://stripe.com/docs/api/invoices/update?lang=curl#update_invoice-auto_advance

tardy spire
#

Thanks Alex.

I would like to know why proration amount - Unused time on Promotional Plan after 16 Nov 2023 was generated since the payment was failure

#

If the invoice is from a Subscription and is in draft mode, you can update the invoice to set auto_advance=false to stop Stripe from automatically finalizing the invoice and collecting payment : https://stripe.com/docs/api/invoices/update?lang=curl#update_invoice-auto_advance

What does the difference when we void and auto_advance=false

quasi grotto
#

The first invoice for the subscription was voided. We don't check if the previous invoice was paid before applying proration. Since you're cancelling the Subscription after a period of time, we prorate the unused time left in that billing period

tardy spire
#

Thanks Alex,

Then how can we handle the case , since we haven't paid the subscription amount and again new invoice is get created.

quasi grotto
#

check if your previous invoice is paid. If it's not, then set proration=false when you cancel the subscription schedule

mild kiteBOT
tardy spire
#

So you are telling me that when the payment is failed and before cancelling the subscription schedule, I should update the proration=false

robust orbit
#

Hi! I'm taking over this thread.

#

Is your goal to avoid having any prorations when you cancel the Subscription?

tardy spire
#

Hi Soma

#

I will explain the way I am handling

create a subscription schdule
if payment is got failed the subscription is get cancelled and its invoice is made void

#

I was expecting that since the invoice is void nothing exist there. But i found another invoice which is going to finalise in 1 hr with proration amount.

  1. I am not clear why we are taking proration if the payment wasnt successful
  2. I my goal is that if payment got failed no invoices in the customer and customer should start the payment same from begining
robust orbit
#

So if last payment failed -> cancel subscription and don't create any new invoices?

tardy spire
#

yes Soma

robust orbit
tardy spire
#

I am cancelling subscription schedule. Should these work

robust orbit
#

Make sure to set prorate: false

tardy spire
#

Can you tell me why the alex told check if your previous invoice is paid. If it's not, then set proration=false when you cancel the subscription schedule.

why should he saying previous invoice?

robust orbit
#

Not sure. I recommend doing some tests in test mode to see how this works. But I think setting prorate: false when cancelling the Subscription should be enough.

tardy spire
#

Thanks Soma

robust orbit
#

Happy to help ๐Ÿ™‚