#stef157_error
1 messages ยท Page 1 of 1 (latest)
๐ 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.
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.
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.
Can you share the ID of an Invoice where you're seeing this behavior?
Here the transaction: pi_3R1zDhKyoHboMKYf02ysFO2b
the invoice id: in_1R1yGdKyoHboMKYffHDwZ7OF
Hm, where do you see "bank_cannot_process" at?
Looks like this payment succeeded, and was then disputed. Ah, but this is for a SEPA payment, so sounds like it's the behavior described here:
https://docs.stripe.com/payments/sepa-debit#disputed-payments
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
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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.
Ah, down on the Dispute object, I see. So that does sound like the behavior I linked to.
Ok, so is there a way to mark the invoice as unpaid ?