#dev-josue_docs

1 messages ยท Page 1 of 1 (latest)

sacred kernelBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1333725970674221066

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

mighty forge
#

*I logged the response when creating invoice and the payment intent property is null. But when I retrieve the invoice, it the payment intent is not null.

simple python
#

๐Ÿ‘‹ happy to help

#

the payment intent gets created only once the invoice is finalized

mighty forge
#

Hello @simple python , thanks for the response.

What I want to achieve is that when invoice is mark as uncollectible, i want its payment intent to be cancelled. Is there a automatic way to this?

Current approach:

  • call mark as uncollectible invoice api endpoint
  • call cancel payment intent api endpoint

Is there a safer way to this given the payment intent is null for n period before invoice is finalized?

simple python
#

Is there a automatic way to this?
unfortunately not

#

because we assume that any invoice (even the ones considered uncollectible can still be paid

#

instead you can void the invoice which automatically cancels the PI if you prefer

#

Is there a safer way to this given the payment intent is null for n period before invoice is finalized?
I'm not sure what you mean by this

mighty forge
#

unfortunately not
because we assume that any invoice (even the ones considered uncollectible can still be paid
instead you can void the invoice which automatically cancels the PI if you prefer
I see thanks for the info.

You may disregard my second query. It is already answered. Thanks.