#prabhaw-soti-ebpearls_api

1 messages ¡ Page 1 of 1 (latest)

mellow bronzeBOT
#

👋 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.

inner lightBOT
#

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.

deep turtle
#

hi there!

burnt sable
#

hello

deep turtle
#

what do you mean by "update my payment history status"?

burnt sable
#

i want to update in my database

deep turtle
#

oh, so when you receiev a payout you know to know the corresponding PaymentIntent ID? is that your question?

burnt sable
#

i want to know ( what is charge.success for , if charge success then i can update it to success ??)

deep turtle
#

charge.succeeded or payment_intent.suceeded means the payment succeeded yes.

burnt sable
#

i have tryed that but i can't get payout of balanceTransaction of certain paid intend to update payment history by payemnt intent id

deep turtle
#

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?

burnt sable
#

"pi_3PAnybDRWO0fOu0Z1vEj2UZ3"

deep turtle
#

I jdut deleted your message, since it contains your secret key

#

can you share it again without it?

burnt sable
#

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);

deep turtle
#

no i just copy it form website

#

it's still your secret key, so don't share it!

burnt sable
#

does i have hot loo p it 1000 and more data

burnt sable
deep turtle
#

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?

burnt sable
#

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

deep turtle
#

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.

burnt sable
#

ok but if i want to update status in my database like (accepted, depositpending, deposit failed, pending)

#

po_1PAcxaDRWO0fOu0ZCubmZSZW

deep turtle
#

got it. then you can listen to

  • payment_intent.suceeded on your own account
  • payout.paid on 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

burnt sable
#

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

deep turtle
#

your question is how to find the Charge ID on the connected account? have you looked at the diagram I shared above?

burnt sable
#

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

deep turtle
#

once you receive the payment_intent.succeeded event, then also retrieve the Charge ID of the connected account:
PaymentIntent > Charge > Transfer > Charge

burnt sable
#

ok that is already done but i want to know from payout option type

deep turtle
burnt sable
#

payout-> transcton -> charge