#neil3rd-balance
1 messages · Page 1 of 1 (latest)
Hello,
trying to make this Python code work inside Flask
ok, and what did you try? Did you get a specific error message?
a moment please, will get back to you. will read the repo
do I have to authorize the link from which the Flask and Python code will run as an endpoint inside my Stripe account?
what do you mean by "authorize" exactly?
register as an endpoint
ok, webhooks
I mean maybe you need to use webhooks, maybe you don't?
I don't know what you're trying to do or what the context is for when / why you are checking your balance, so it's incredibly hard for me to answer you.
I'll go thru my dashboard then I'll get back to this thread
moving on
how do I get to make "customers = stripe.Customer.list()" to work with the rest of my code?
or does github.com/stripe/stripe-python has its own equivalent way of achieving the same result?
sorry I don't understand the question
customers = stripe.Customer.list() that is part of github.com/stripe/stripe-python yes.
if you want e.g. the customer name it's like customers.data[0].name I believe.
where in Stripes documentation could I further read on this?
hmm, not sure what you mean? The API reference I suppose. https://stripe.com/docs/api/customers/list
like, that API returns a list of customer objects
" returns : A dictionary with a data property that contains an array of up to limit customers". So it's customers.data to get the list, and then [0] to get the first one, then .name to access a property of the Customer object. https://stripe.com/docs/api/customers/object#customer_object-name
could you provide this english sentence into a Python code?
I .. don't know what you mean, I'm sorry.