#stef157_error

1 messages ยท Page 1 of 1 (latest)

near houndBOT
#

๐Ÿ‘‹ 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/1354454701722308659

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

sacred jungleBOT
inland lava
#

Hi ๐Ÿ‘‹ can you tell me a bit more about what you're trying to accomplish?

I can help provide insight on which of our APIs or features to use to best achieve your desired business logic, but determining what you want to do here is a business decision for you to make.

small ore
#

Hi Toby,
Recently, a customer had an issue with their direct debit.
So they were never charged, but their invoice is still considered "valid."

And they have access to my software.

I understand that I should be able to block their access via the webhook.
But I'd also like the invoice not to be considered paid, since it was never paid.

inland lava
#

Can you share the ID of an Invoice where you're seeing this behavior?

small ore
#

Here the transaction: pi_3R1zDhKyoHboMKYf02ysFO2b

#

the invoice id: in_1R1yGdKyoHboMKYffHDwZ7OF

inland lava
#

I'm not aware of a way to change the state of the Invoice at this point, if that is possible, it's something you would need to discuss with our Support team:
https://support.stripe.com/?contact=true

#

For handling this programmatically, you can listen to Dispute related Events, check whether they're associated with a payment for an invoice for a subscription, and then take the appropriate action for your use case if so.

small ore
inland lava
#

Ah, down on the Dispute object, I see. So that does sound like the behavior I linked to.

near houndBOT
small ore
#

Ok, so is there a way to mark the invoice as unpaid ?