#louis_balance-trx

1 messages ยท Page 1 of 1 (latest)

mortal jacinthBOT
#

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

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

torpid rover
ancient gull
#

Would that field be set on the correct value even if the bank sends the funds late?

torpid rover
#

Yes I think so, because the amount will be available in your Balance only when received

mortal jacinthBOT
#

louis_balance-trx

ancient gull
#

Ok I was confused by the wording "become" and here I understood that the value wouldn't change ("The Balance Transaction available_on dates will remain constant throughout this change."), implying that the field value is known when the payment is created

But now I think it just meant that during the migration process, available_on wouldn't change for existing payment?

#

Thanks

hollow vault
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

#

I think you're confusing two concepts

#

the Stripe Balance availability and the Payout date

#

the Stripe Balance availability is when the amount will be available in your Stripe Balance

ancient gull
#

Yes I am talking about stripe balance availability (customer funds -> Stripe balance), not payment date (Stripe balance -> our bank account)

hollow vault
#

ok perfect

#

then as my colleague suggested the available_on field is the one you're looking for

ancient gull
#

Is there a maximum delay between balance_transaction.created and balance_transaction.available_on?

Like if it takes too long it is marked as failed and funds will be refused by stripe afterwards if they still arrive?

#

Or, better, is there a way to fetch balance transactions where available_on is is the past?

hollow vault
#

Is there a maximum delay between balance_transaction.created and balance_transaction.available_on?
it depends on the LPM

#

Like if it takes too long it is marked as failed and funds will be refused by stripe afterwards if they still arrive?
if the charge has succeeded this won't happen

ancient gull
hollow vault
#

LPM = local payment methods

ancient gull
hollow vault
#

the balance transaction won't be created until the charge has succeeded anyways

ancient gull
hollow vault
#

sorry I meant won't be available

ancient gull
#

Ok, thanks for your answers, I'll try to find a solution

hollow vault
#

what are you trying to solve?

ancient gull
#

Our accountant wants invoices only for payment that are in the Stripe balance, so we have to manually create invoice serial numbers for only the payment that are in the Stripe balance (instead of when the payment is created). Before the "Changes to Balance Transaction behavior for debit payment methods", we could reliably create this because every balance transaction created was indeed available in the balance transaction.
Now I think I will have to add a delay that could be variable when payments take longer, but this will delay all other invoices

#

(these invoices are thus internal to our system, we don't use Stripe Invoices)

hollow vault
#

you can just filter those that don't have any available_on

ancient gull
#

Yes and I would keep in memory the earliest "pending" invoice

mystic parcelBOT
ancient gull
#

Filtering instead of waiting would need some code refactoring and e already add a static delay of 14 days before invoice creation because of another legacy payment provider, so I'll just wait for balance transactions to be available and we'll assess from there ๐Ÿ™‚

#

Last question : before the "Changes to Balance Transaction behavior for debit payment methods", would balance_transaction.available_on always be equal to balance_transaction.created ?

lapis fern
#

yes

ancient gull
#

Thanks

mortal jacinthBOT
ancient gull
#

Does this impact balance transactions of reporting category "refund" too? (will the available_on property be != created?)

lapis fern
#

no it's only for the BT associated with the payment

ancient gull
#

OK thanks

#

I got everything, thank you all ๐Ÿ™‚