#sercan92_invoice-payment-status
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/1475532219169771520
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello so is the missing link right now going from Invoice -> Payment intent to get this status? Or are you trying to figure out a different part of this?
When is that function getting triggered?
It is getting triggered by my sweep function which listens to the event cash_balance_funded. Which works as intended. The only problem is that the isPaymentInFlight does not recognize pending payments -> customer who have a sepa bank card as payment method activated and the charge is pending. But currently I don’t know how to filter an invoice that is being charged or is in the pending state. I need this to tell my sweep function “this invoice is currently pending, even if funds arrive on the cash balance account, do not sweep the invoice, because chances are that the invoice will be processes sucessfully, and we don’t want to charge the customer twice”
Hello 👋
I'm stepping in as my colleague needs to go. Give me a second to catch up
Sure thing. Thank you!
Okay so you will need to examine the related payment intents for each invoice in order to determine if there is a pending payment. SEPA debits are an async payment method that can take multiple days to settle
The Payment Intent object is the only one that has a status value of processing, which is what it will have when the SEPA debit payment is pending but has not settled.