#Karen27 - metadata

1 messages ยท Page 1 of 1 (latest)

waxen monolith
#

Do you have the request ID (req_123 ) from a time you tried to set this metadata?

#

The Go library should support metadata. Most often this is because Stripe does not copy metadata, even between closely related objects, so the data may be getting set somewhere slightly different than where you are expecting?

gloomy glade
#

I can see in the logs that account acct_1KW10FDFkzIILaFL has the metadata, but the update method does not return it

waxen monolith
#

Do you see it if you retrieve the account?

gloomy glade
#

No, I don't see the metadata either.

waxen monolith
gloomy glade
#

Let's see if I can find it

gloomy glade
#

req_3VMW7kb9bdTUUJ

#

This is the request ID

#

I now see the metadata is not even there.

waxen monolith
#

Yeah I am not seeing it on that call or other calls that are on that account. Can you provide the GoCode snippet where you are trying to set this metadata?

#

And can you set metadata on other objects like a Customer?

gloomy glade
#

Just one note, I dont see the metadata field in the struct &stripe.PersonParams{} (from Stripe library) all the others fields are there. Is that the expected behavior?

#

person := &stripe.PersonParams{}
person.AddMetadata("phone_country_code", "US")
//Update
acct, err := ps.stripeAccount.Update(
stripeAccountId,
&stripe.AccountParams{
Individual: person,
},
)

restive relic
#

When you say you don't see it, do you mean you cannot access the parameter or it isn't printed out as part of the existing Account struct?

#

Hi ๐Ÿ‘‹ stepping in for @waxen monolith BTW

gloomy glade
#

I can not access the parameter Hi @restive relic ๐Ÿ‘‹

restive relic
#

The reason I ask is I recently helped a user with Stripe GO. They couldn't the the default_source on a Customer because they needed to traverse the struct and expand the underlying data structure that was linked to the Customer.

gloomy glade
restive relic
gloomy glade
#

I'm using stripe-go@v67.3.0

restive relic
#

Ah, well our current release is v72.87.0 so that might be partly to blame

gloomy glade
#

It does not exist in the latest version either...

restive relic
#

I was just looking at that