#Yetzederixx-custom-fields
1 messages ยท Page 1 of 1 (latest)
sure one sec
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If I had to guess it's the last one I posted, but I haven't gotten that far in my own code yet
So it should be an array of hashes. Not sure what that looks like syntactically in Python (it has been a while).
kk, basically an array of json then
Syntactially it would probably look like
custom_field : {
key1: 'value',
key2: 'value2'
}
But I could be wrong. Let me know when you try a couple of things and I can help debug if needed ๐
Welp it's not this heh
cfs=[
{'Gophr ID', '1234'},
{'Store ID', 'ABCD'},
{'Pickup Business Name', 'pickup_business_name'},
{'Drop Off Business Name', 'drop_off_business_name'}
]
So this doc really needs work though, well all your examples really.
The syntax is this
custom_fields=[{"name": "key1", "value": "value1"}]
The syntax is this
custom_fields=[{"name": "key1", "value": "value1"}]
That makes sense. So you were able to get it to work?
yeah
while that's technically inferrable from the docs it does leave some room for confusion
You're not wrong. I feel like it would be better if it worked like metadata where you just supply a single hash of key-value pairs, rather than the multiple hashes with a name value and a value value