#comfy-metadata-connect

1 messages · Page 1 of 1 (latest)

solid houndBOT
#

Hello! We'll be with you shortly. 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.

lethal vapor
#

here's what I'm trying to do if it makes sense, but metadata doesn't seem to be allowed as a child of transfer_data and so the metadata just gets lost

fervent parrot
#

Hi, the metadata you set the request from the platform account will not automatically transfer to the objects on your connected accounts. You'd need to attain the charge object from the transfer to then make a call to update it with the metadata.

lethal vapor
#

I see, is there a doc for how I would do that?

#

Is it this?

fervent parrot
#

We document some of how this works here, https://support.stripe.com/questions/how-metadata-works-with-related-objects. The specific steps are:

Get the corresponding payment id. To do this, get the id of the transfer associated with the charge which is in the transfer property on the charge object. Then, you would retrieve that transfer and you’d see the destination_payment property corresponding to the payment on the connected account (py_XXX).

You can get all of this in one API call by using the expand feature, https://stripe.com/docs/api/expanding_objects and passing transfer to get the transfer property expanded in the response. This gives you access to the payment id (py_XXX) directly in that API call. Then, you can make a call to update the charge with the metadata: https://stripe.com/docs/api/charges/update

#

There is not a document directly showing the steps

lethal vapor
fervent parrot
#

Yes!

#

That updates the transfer object

lethal vapor
#

OK so update the transfer not update the charge?

fervent parrot
#

That is correct

lethal vapor
#

OK thank you, wish me luck

fervent parrot
#

Sure!

solid houndBOT
fast pulsar
#

comfy-metadata-connect

lethal vapor
#

I got it working 🙂 just FYI I found the transfer ID by expanding latest_charge

fast pulsar
#

nice!