#vibhav-charge-metadata
1 messages · Page 1 of 1 (latest)
Hey! Depends what you mean by 'complex'? Are you running into a specific limitation?
Have you tested out what you'd like to do?
so i am passing a value like this:
{
{"data": {"key1": "value1", "key2": "value2"}} something like this
Yep, that should work:
You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long.
https://stripe.com/docs/api/metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I think i am not clear here
let me give something else
{
...data,
metadata: {
name: 'vibhav',
address: {
city: 'bangalore',
country: 'india'
}
}
}
ll this work?
No, you can't have nested fields. They need to be top level:
metadata: {
name: 'vibhav',
address_city: 'bangalore',
address_country: 'india'
}
Np!