#dinesh_11953
1 messages ยท Page 1 of 1 (latest)
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.
i can get this description if just after succeefull transfers i will update the charge description?
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.
i want to set this py*** description with api, please help me for this?
For that you will want to use the approach I provided in my previous message, pasting again for convenience:
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
did you run into problems while trying to do that?
i am not getting your this point - 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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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.
ok i need to pass this requestOption header when updating py*** desription in api?
Yes
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?
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.
as you share above charge updating api - You will need to use the endpoint for updating Charges to change that description.
https://stripe.com/docs/api/charges/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
how we can update this with py*** id?
You pass the py_ ID as the ID of the Charge that you want to update.