#dinesh_11953

1 messages ยท Page 1 of 1 (latest)

analog spruceBOT
worthy viper
#

Hi ๐Ÿ‘‹ sounds like you're working with a Connect flow using Destionation Charges, and referring to the Payment object that gets created on the Connected Account to represent them receiving the funds.

If you want to set a description on that object, you will need to do so after it has been created. There is not a way to pass a description for that object when creating the Payment Intent from your Platform.

You will need to use the endpoint for updating Charges to change that description.
https://stripe.com/docs/api/charges/update
but will also need to make the request as your Connected Account since the object resides on that account:
https://stripe.com/docs/api/connected_accounts

Those descriptions typically aren't really visible with these type of flows. If you'd like to provide more insight about what you're hoping to accomplish, I may be able to provide additional suggestions.

proper dawn
#

i can get this description if just after succeefull transfers i will update the charge description?

worthy viper
#

Sorry, I'm having a hard time understanding that question. There will not be a description set by default after a successful Transfer on those Charge objects with the py_ prefix. You can manually set that description once those objects have been created though.

proper dawn
#

i want to set this py*** description with api, please help me for this?

worthy viper
proper dawn
worthy viper
#

The object you're accessing, the one with the py_ prefix, does not reside on your Platform account, so your Platform is not permitted to directly access it. You have to instead use the stripe-account header shown in that section of the API reference to make the request as the Connected Account that the object belongs to.

proper dawn
#

ok i need to pass this requestOption header when updating py*** desription in api?

worthy viper
#

Yes

proper dawn
#

for your 1st point you talking about this charge description modification which charge id visible in transfers details like here - Transfer overview

View receipt
Date paid
21 Nov
Amount
US$42.49
Fee
US$0.00
ID
tr_3OEv5qJ95B5ufks61mUUiBCE
Source transaction
ch_3OEv5qJ95B5ufks61Jbaxfvg
Transfer group
group_pi_3OEv5qJ95B5ufks613sU19ov
Description
KingChaneliagtoTest; dfvfv fvgfvg; zest

#

i above transfers detail there is a Source transaction
ch_3OEv5qJ95B5ufks61Jbaxfvg.. this is a charge id.. i need to update this charge desription?

worthy viper
#

No, you need to use the py_ ID you referenced before.

#

That Charge object you're referring to here (ch_3OEv5qJ95B5ufks61Jbaxfvg) is the Charge that resides on your Platform account.

proper dawn
#

how we can update this with py*** id?

worthy viper
#

You pass the py_ ID as the ID of the Charge that you want to update.