#hopp8435_unexpected

1 messages ยท Page 1 of 1 (latest)

odd tokenBOT
#

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

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

raven wave
#

I do:

        return await stripe.issuing.Authorization.TestHelpers.create_async(
            stripe_account=stripe_account_id,
            amount=amount,
            card=card_id,
            merchant_data=merchant_data,
        )

into:

        await stripe.issuing.Authorization.TestHelpers.capture_async(
            stripe_account=stripe_account_id,
            authorization=authorization.id,
            capture_amount=int(amount * 0.25),  # Capture only 25% of original amount
            close_authorization=True,  # Close auth to release unused reserves
        )
#

this is to simulate a partial capture flow.

#

But in test mode I am not seeing an event that releases the reserve

unreal ermine
#

Hi ๐Ÿ‘‹ taking a look

raven wave
#

cool let me know if you need any ids

unreal ermine
#

Apologies for the delay. I've been juggling a couple threads at once, and Issuing isn't one of my strongest areas, so I need to brush up on this flow too. I'm still looking though.

#

Ah okay, so you are seeing the Authorization go into a closed state, you're just looking to confirm that the additional funds that had been held by the authorization initially were also released?

raven wave
#

Yeah I want to understand that if an authorization is close then whatever different between the sum of authorization transactions and the authorization (whether greater or less than) can be safely released

unreal ermine
#

I see the Issuing Transaction option that collected the partial capture in this Event:
https://dashboard.stripe.com/test/events/evt_1RbRJTQxuKKfHJqAApsLhWrL

Then looking at the diagram at the top of this page, it looks like we're also looking for Balance Transaction objects representing the release of the held funds:
https://docs.stripe.com/issuing/purchases/transactions?issuing-capture-type=multi_capture

raven wave
#

oh I see

unreal ermine
#

If you list Balance Transactions for your account, and specify type to be issuing_authorization_release in that request, do you see a Balance Transaction with what looks like the amount of the original auth in the list of results?
https://docs.stripe.com/api/balance_transactions/list

raven wave
#

let me check

odd tokenBOT
raven wave
#

yeah ok this will work

#

thanks!