#ritzpar_code
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/1346254925385957430
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- ritzpar_code, 1 hour ago, 8 messages
- ritzpar_api, 5 days ago, 15 messages
- ritzpar_api, 5 days ago, 9 messages
- ritzpar_api, 6 days ago, 5 messages
Hi roadrunner_stripe
Sure, I'm trying to get all the fees charged by Stripe after a charge is successfully created
Is this possible ?
Or do i have to wait for some other event ?
This is possible, though you'll need to inspect the BalanceTransaction tied to the Charge
This might help: https://docs.stripe.com/expand/use-cases#stripe-fee-for-payment
Note that, if you're using capture_method: automatic_async you'll need to wait for the charge.updated event to let you know that a BalanceTransaction has been created
More details here: https://docs.stripe.com/payments/payment-intents/asynchronous-capture
I tried that example but it code doesn't work with latest Java API definition
I've set my capture_method to manual and issued a capture fund call. All of that works and I get a "charge.succeeded" webhook call but the balance object is always null
Hello! I'm taking over and catching up...
Yeah, you're running into the async capture behavior described above. Make sure you read through this doc fully to understand what's happening and how to correctly handle it: https://docs.stripe.com/payments/payment-intents/asynchronous-capture
Really ? The payment intent object has it set differently ( pi_3Qygu8CVUvdI84gC0EC4jzV0 )
capture method is set to manual
Ops, wrong object ID. It is pi_3QygzZCVUvdI84gC1m2WFoJl
Looking...
Even if the behavior is that of a automatic capture, wouldn't the balance object be available ?
Oh, okay, that makes sense because you haven't captured it yet. You won't get a Balance Transaction until that Payment Intent is captured.
Hmm .. really ? Ok, I'll need to do some debugging on my end. Thanks everyone.