#Devonthedo88

1 messages · Page 1 of 1 (latest)

fervent marsh
#

The API endpoint URL? Or something else?

steel coral
#

charges": {
"object": "list",
"data": [
{
"id": "ch_3JXTsIFXkUN0aehr0sCjoyTF",

fervent marsh
#

That's part of a Stripe object... maybe part of a Payment Intent? What are you trying to do?

steel coral
#

transfer to a connected account when i capture a charge

#

one person said i would need the Charge ID

#

so im trying to return the charge id lol

fervent marsh
#

Ah, so you want to use the Charge as the source_transaction?

steel coral
#

yes

#

i think thats the only way right

fervent marsh
#

Yeah, so the ch_ ID in the snippet above is what you need.

steel coral
#

so charges.object

#

or charges.list

fervent marsh
#

I don't understand what you mean. Are you asking how to access that ID in your code? If so I need to know what programming language you're using.

steel coral
#

react native

#

JS

fervent marsh
#

charges.data[0].id

steel coral
#

thanks i was clueless at that

#

now source_transaction what does it acually do?

fervent marsh
#

It uses the Charge you specify as the source of the funds for the Transfer (instead of your account balance).

#

That lets you transfer the funds immediately before they settle and become available in your account balance.

steel coral
#

Oh okay exactly what we need

#

let me put all this together thanks

#

Charge ID comes from the payment indent correct?