#ashishchicmic
1 messages · Page 1 of 1 (latest)
Hi there!
How are you accepting payments? Chekout Session, Payment Element, someting else?
i'm crating payment intents from backend
I want update in db that payment amount has been added to stripe and can be transferred to any connect account
Then it should be payment_intent.succeeded.
i have already implemented this event but on transfer call it says unsuffiecient balance
Can you share a request ID (req_xxx) of a transfer that failed?
there is no transfer Id as it says insuffiecient funds in stripe account
What I want is whenever a payment intent is confirmed and amount has been added to stripe balance then I need to transfer funds to some connect account. but on payment succeed event amount is not reflecting in stripe balance
I'm not asking for a transfer ID, but a request ID.
You can find it here: https://dashboard.stripe.com/test/logs
But in general: are you using the source_transaction parameter? https://stripe.com/docs/api/transfers/create?lang=node#create_transfer-source_transaction
req_ctDjzduEnF1SfE
Thanks
To fix the issue you should use the source_transaction parameter I linked above
I get but still it doesnt fulfill my requirement
What are your requirements?
I want to know if a transaction's amount has been added to my stripe balance or not
You could try balance.available: https://stripe.com/docs/api/events/types#event_types-balance.available
ok. does this event gives info that for which transaction this balance has been updated?
No. It contains a balance object, and you can see what it contains here: https://stripe.com/docs/api/balance/balance_object
alright
one more question
is there any way to check that amount for an payment intent has been added to our stripe balance
so that on balance available event I can run loop on my intents and check that this particular intent has been completed
But why are you trying to do this? That sounds really complex. What's your end goal exactly?
let me explain
Also note that a PaymentIntent contains a Charge. And a Charge contains a BalanceTransaction object. And you can just check the BalanceTransaction status to know if the balance was added to your account or not.
we have donation functionality on our portal. On donation, we want to send funds to a connect account.
so we want to send donation amount to connect account after the donation amount has been added to stripe balance
What I recommend doing: as soon as the PaymentIntent is succeeded, create a Transfer with the source_transaction parameter set. Then when the balance is added to your account, the transfer will automatically send the money to the connected account.
but this will create a confusion that for which payment intent amount has been transferred
Why?
how will I manage the status of a payment intent? that this payment intent has bee n complete