#ea_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/1278272463767207958
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
By manually calling curl https://api.stripe.com/v1/payment_intents/pi_3Psh3BFb7Lp0rmcN1IwoBWdP \ -u sk_test_QIRpEa26896aZbJxdimzuud400EP9K6wun: \ -d "expand[]=latest_charge.balance_transaction" i can see the fee property as expected...
Seems like charge is not yet ready when receiving payment_intent.succeeded...
hi! the BT can be null initially yes , because it's not created until the charge is captured, which happens async
https://docs.stripe.com/upgrades#2024-04-10
https://docs.stripe.com/payments/payment-intents/asynchronous-capture
okay, how should i procedd then ?
I want to let my merchants pay the stripe fees in addition of my application fees :/
This hard block me since many weeks ๐ข
there are multiple solutions; there are additional webhooks you can listen to be notified when the BT is available, or you can disable this with capture_method="automatic"
Okay, seems to work better with capture_method="automatic" ! Now i got this message "You have insufficient available funds in your Stripe account", my account have 60$ and i just want to transfert 1326 (13.26$ to a merchant) https://dashboard.stripe.com/test/logs/req_7NBnZ65B1uWoKL?t=1724834627
Can you help me on that ?
That mean payment will be done by my banking account and not by stripe internal account ?
I'm getting confused
(seems to be overpowered for a little usecase, did i follow the right way ?)
you charge an end-customer for $100. Your platform receives those funds (minus Stripe fee). Those funds are not immediately available to you, they take a few days before we release them to you. When they're available, you can call v1/transfers to transfer some/all of those funds to a connected account.
I'd suggest carefully reading my answer on StackOverflow and especially consider source_transaction and the docs at https://docs.stripe.com/connect/separate-charges-and-transfers?platform=web&ui=stripe-hosted#transfer-availability
In the doc, source_transaction use a CHARGE_ID, doc didn't tell us what is this CHARGE_ID ? Where i got it ?
It's the paymentIntent.id ?
it's payment_intent.latest_charge.id