#Bart

1 messages · Page 1 of 1 (latest)

odd locustBOT
true inlet
fresh pendant
#

req_Vk6oIogQFdBzGk

#

should be that one

#

i used the code to get it

true inlet
fresh pendant
#

req_YEOuNws2oF0fyM

#

maybe this one?

#

everytime i execute the code above

#

i get an error of line1

#

the code aint even executing because line1 dosent exist

true inlet
#

req_YEOuNws2oF0fyM is also a customer creation request

fresh pendant
#

yea i found out its the sdk issue

#

the line1 dosent exist

#
            line1: '1272 Valencia Street',
            city: event["city"],
            state: event["state"],
            country: event["country"],
            postal_code: event["postal_code"],
        },```
true inlet
#

the code looks correct to me

fresh pendant
#

yes but line1 dosent exist

true inlet
fresh pendant
#

im using this one

#

and it dosent work for me

true inlet
#

Which version of Stripe Python library are you using?

fresh pendant
#

the latest

#

pip install stripe

#

just isntalled it today

true inlet
#

I use your address code with same line1 and it's working fine

#

let me check which version of Stripe python library I'm using

#

I use v4.2.0 and it's working fine as well

#

Can you double check if you're using the latest v4.2.0?

fresh pendant
#

hm

#

oe sec

#

my lambda should be using the same version

#

yup even on my personal device running 4.2.0 for sure

#

its not working

true inlet
#

this is strange

#

can you share the same code with me?

#

i'll try on mine

fresh pendant
#


# Set your secret key. Remember to switch to your live secret key in production.
# See your keys here: https://dashboard.stripe.com/apikeys
stripe.api_key = "sadasd"

# Set your secret key. Remember to switch to your live secret key in production.
# See your keys here: https://dashboard.stripe.com/apikeys
stripe.terminal.Location.create(
    display_name="TEST ACC 1",
    address={
        line1: "932 N Emily st",
        city: "Anaheim",
        state: "CA",
        country: "US",
        postal_code: "92805",
    },
    metadata={
        connected_account: "acct_1M3rMzQlK4wcdOog",
    },
)

print(body)
true inlet
#

please remove the secret key as this is a public channel

fresh pendant
#

done sorry

true inlet
#

ah

#

i found out why

#

the key should be a string, for example: 'line1' instead of line1

#

can you try to put the key into a string and check if it works?

fresh pendant
#

sure one sec

#

then why hasn't the documentation been updated

true inlet
#

the doc probably has an error. i'll report to the team once you confirm the issue is resolved

fresh pendant
#

will do, I'll confirm in a few minutes

#

@true inlet yup

#

works!

#

documentation is outdated

true inlet
#

great! i'll report to the team to update the documentation

fresh pendant
#

yea alot of the docs need to be updated i encountered this issue with alot of other stuff a while back

true inlet
#

Thanks for letting us know. If you see any outdated documentation in the future, feel free to report to https://support.stripe.com/contact. Our team will verify and update the doc accordingly 🙂