#sj-uncollectable-invoice

1 messages ยท Page 1 of 1 (latest)

sage sinewBOT
#

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.

rugged chasm
#

What do you mean by immediately? Can you share more details about your use case?

mild bobcat
#

So I am just trying to create a new set up intent to pay the charge immediately when the user enters the card info. basically trying to charge the invoice immediately with the newly created set up intent.

rugged chasm
#

I'm still a bit confused. If you have an invoice with an amount, you should use the invoice's PaymentIntent to charge the customer immediately. No need to create a separate SetupIntent

mild bobcat
#

you're right. But the thing is when i try to use the invoice's payment intent to finish the payment and the payment intent is canceled, it will result in an error.

#dev-help message

I am trying to find a solution to this. And what I thought of is to try creating a new set up intent and use that to finish the payment. Is this a possible solution? Or could there be another way?

rugged chasm
#

I think the thing to do here is to void the Invoice and create a new Invoice

mild bobcat
#

could you elaborate that a bit more?

Basically what i'm trying to do is:

  1. Attempt to pay the invoice with payment intent first.
  2. If payment intent is in a "canceled" state, do not use the latest invoice's payment intent.
  3. Somehow complete the invoice and save the payment method
#

wondering how to do 3..

rugged chasm
#

Just to be clear, this isn't a one-off invoice?

mild bobcat
#

it's recurring invoice

rugged chasm
#

Could you share an example invoice ID? I'd like to see how the PI got to a 'canceled' state

mild bobcat
#

invoice: in_1Oj9GLKvLOXsN9xSfTmbeXq4
pi: pi_3Oj9GNKvLOXsN9xS2WUm5rzf

rugged chasm
#

Sorry for the delay!

#

Okay, I see this PaymentIntent was canceled due to multiple failed confirmations/payment attempts

#

At this point, the invoice can no longer be paid. It can be marked as void or uncollectible only

sage sinewBOT
mild bobcat
#

got it. So the only way we can use the payment intent would be to void the lastest invoice, createa a new invoice, and create a new payment intent, correct? Is there a way to attach a new payment to this invoice?

inner wing
#

Hi ๐Ÿ‘‹

My colleague needed to go so I've taken over. Your first statement is correct. You would mark it as void and create a new invoice.

mild bobcat
#

thanks!! let me try that first. We can close this ticket ๐Ÿ™‚