#Mike Taylor

1 messages · Page 1 of 1 (latest)

karmic craterBOT
sterile oyster
#

Hello! Can you give me the ID of a Transfer which you set a description on so I can take a closer look?

#

Or the ID of the corresponding Charge on the connected account (starts with py_)?

#

Based on what you said, it sounds like you're setting the description on the Transfer object, which won't work. You need to set the description on the associated Charge on the connected account instead.

violet tundra
#

tr_3LkdlvCwAArHtQSX0BrM67qC

cold crane
#

Hi @violet tundra I'm taking over

violet tundra
#

We get the source transaction, and then to a stripe.charges.update
``
const sourceTransaction = result.source_transaction;
return stripe.charges.update(
sourceTransaction,
{description: item.name}
).then ...

``

cold crane
#

OK, so if you want to set a description on the connect charge object, you should make a connect request with Stripe-Account header, where the Stripe-Account is the connected account ID

violet tundra
#

req_JjsOkMGS85PTRX

cold crane
#

OK, you are updating the charge object on your platform, not connected account.

#

You should update the charge object on the connected account, which you get from the destination_payment of the transfer, and make a connect request to update this object

violet tundra
#

ok just checking now

cold crane
#

Your code should be something like this

  {description: 'YOUR_DESCRIPTION'},
  {stripeAccount: '{{CONNECTED_STRIPE_ACCOUNT_ID}}'}
);```
violet tundra
#

thanks thats what we were looking for, trying out now

#

we never quite understand the double brackets in the docs. so is it
``
return stripe.charges.update(
destinationPayment,
{description: item.name},
{stripeAccount: accountId},
).then..

``

cold crane
#

Yes, your code looks good to me

#

By putting a {stripeAccount: accountId} in the request, you are telling Stripe that you are making a request on behalf of a connected account, so that Stripe will execute this request on the connected account in stead of platform.

violet tundra
#

thanks, that worked