#prabhaw-soti-ebpearls_api
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/1234413367829987390
đ 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.
- prabhaw-soti-ebpearls_api, 9 minutes ago, 8 messages
- prabhaw-soti-ebpearls_api, 2 days ago, 22 messages
hi there!
hello
what do you mean by "update my payment history status"?
i want to update in my database
oh, so when you receiev a payout you know to know the corresponding PaymentIntent ID? is that your question?
i want to know ( what is charge.success for , if charge success then i can update it to success ??)
yes
this is covered here: https://docs.stripe.com/expand/use-cases#charges-in-payout
charge.succeeded or payment_intent.suceeded means the payment succeeded yes.
i have tryed that but i can't get payout of balanceTransaction of certain paid intend to update payment history by payemnt intent id
but i can't get payout of balanceTransaction of certain paid intend
can you share an example of a PaymentIntent ID (pi_xxx) with this issue?
"pi_3PAnybDRWO0fOu0Z1vEj2UZ3"
I jdut deleted your message, since it contains your secret key
can you share it again without it?
no i just copy it form website
i tryed this this will return in array and data[0].source.payment_intent is there but i just want single transction of client transfet to connect accout ( i have to do
const balanceTransactions = await stripe.balanceTransactions.list({
payout: 'po_1Gl3ZLLHughnNhxyDrOia0vI',
type: 'charge',
expand: ['data.source'],
});
const charges = balanceTransactions.data.map((txn) => txn.source);
does i have hot loo p it 1000 and more data
ok i just copy it from stripe docs i think it's ok so
the PaymentIntent you shared does have a balance transaction, so I don't really understand your question.
can you clarify exactly what you are trying to do, and what is the issue?
i just want to get intent id that client pay and it payout to seller account in connect account auto payout option, on webhook of payout.secceed, failed
you are using Destination Charges, so when a payment is successful it is automatically sent to the connected account. then, if the connected account is on automatic payout, they will automatically receive the funds on their bank account.
all of this is autoamtic, so you have nothing to do.
ok but if i want to update status in my database like (accepted, depositpending, deposit failed, pending)
po_1PAcxaDRWO0fOu0ZCubmZSZW
got it. then you can listen to
payment_intent.suceededon your own accountpayout.paidon the connected account
to understand that the payout on the connected account won't include the PaymentIntent ID from the paltform account, since it's using different objets
so you'll need to keep track of the PaymentIntent ID on the paltform and the corresponding Charge ID on the connected account
payement intent id is ok but how to do with charge id (payout optiond don't have charge id ) how to fetch payment intend tha have charge id *** in payout webhook
your question is how to find the Charge ID on the connected account? have you looked at the diagram I shared above?
ok i will check it out
so what will be process , i have to balance transction of connect accoutn and get charge and get transfer and to charge of platform and intent
once you receive the payment_intent.succeeded event, then also retrieve the Charge ID of the connected account:
PaymentIntent > Charge > Transfer > Charge
ok that is already done but i want to know from payout option type
the link I shared at the very beginnig shows how to get Charges included in a payout: https://docs.stripe.com/expand/use-cases#charges-in-payout
payout-> transcton -> charge