#morteza_api

1 messages ยท Page 1 of 1 (latest)

nocturne plazaBOT
warm sirenBOT
#

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.

nocturne plazaBOT
#

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

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

vestal shore
#

I want to calculate balance for issuing cards and I need to add approved authorizations' amount and subtract it from the spending limit, but the question is what if they were refunede !!

#

even in sample issuing treasury project, for calculate spending they are only summing approved authorizations

proven kelp
#

Hello
Give me a few minutes to catch up here.
I'll respond as soon as I can ๐Ÿ™‚ thanks

vestal shore
#

sure

warm sirenBOT
storm nymph
#

Hello

vestal shore
#

hey there

storm nymph
#

So you are trynig to track an Issuing Card's balance relative to their spending limit?

vestal shore
#

yes

storm nymph
#

Yeah I don't think refunds are taken into account here

vestal shore
#

for now want to use stripe api and we plan to do it on our end using webhooks

storm nymph
#

Is that the concern? That you aren't seeing refunds reduce the spending limit amount?

#

Because I believe that is expected

#

And look at those which are type: capture but not refund

vestal shore
#

but transactions itself are created after authorization is closed I guess

#

so I should then consider pending authorizations as well, right ?

storm nymph
#

Yes I believe that's right

#

You can test that to be sure, but my understanding is that pending authorizations are also taken into account for the spending limit

#

I believe it would instantly be closed as a declined authorization if it exceeds the spending limit

vestal shore
#

ok then

#

thanks

storm nymph
#

Sure thing

vestal shore
#

I think I need to check if the authorization is approved and at the same time it's pending, to make sure pending is not because of waiting for approval

#

then along with transactions data we'll be correct

storm nymph
#

Yep that sounds right to me

#

Err wait it shouldn't be both "approved" and "pending"

#

Like the status can only either be closed, pending, reversed

#

Once it is approved then it would have a status of closed

vestal shore
#

no

#

it's closed when it gets captured

#

when money is realy transfered to mechant

storm nymph
#

Oh yes you are correct, sorry.

#

If the merchant uses manual capture then that won't be immediate

vestal shore
#

yes