#ashishchicmic

1 messages · Page 1 of 1 (latest)

magic stratusBOT
weak apex
#

Hi there!

#

How are you accepting payments? Chekout Session, Payment Element, someting else?

azure condor
#

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

weak apex
#

Then it should be payment_intent.succeeded.

azure condor
#

i have already implemented this event but on transfer call it says unsuffiecient balance

weak apex
#

Can you share a request ID (req_xxx) of a transfer that failed?

azure condor
#

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

weak apex
#

I'm not asking for a transfer ID, but a request ID.

azure condor
#

req_ctDjzduEnF1SfE

weak apex
#

Thanks

#

To fix the issue you should use the source_transaction parameter I linked above

azure condor
#

I get but still it doesnt fulfill my requirement

weak apex
#

What are your requirements?

azure condor
#

I want to know if a transaction's amount has been added to my stripe balance or not

weak apex
azure condor
#

ok. does this event gives info that for which transaction this balance has been updated?

weak apex
azure condor
#

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

weak apex
#

But why are you trying to do this? That sounds really complex. What's your end goal exactly?

azure condor
#

let me explain

weak apex
#

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.

azure condor
#

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

weak apex
#

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.

azure condor
#

but this will create a confusion that for which payment intent amount has been transferred

weak apex
#

Why?

azure condor
#

how will I manage the status of a payment intent? that this payment intent has bee n complete