#2Clutch - Python Client
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Could you share the doc you got this snippet from?
The current version is 2.64.0 and was updated 29 days ago.
I can confirm this error is still present in the Python library
stripe.error.SignatureVerificationError
<class 'stripe.error.SignatureVerificationError'>
>>> stripe.version.VERSION
'2.64.0'
and yes, i'm using the latest version
i don't know why my IDE is complaining though
So it does not error out?
well, not but that's because my token is being validated successfully (i think)
i do not have another slightly unrelated question.
when dealing with the object returned by a checkout.session.completed, there's a customer field, but there's no customer_id field.
are they one and the same?
do you mind rephrasing? i'm not sure i understand.
checkout.session.completed is a Checkout object. I suggest to find the reference in API reference: https://stripe.com/docs/api/events/types#event_types-checkout.session.completed
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 you click on the link to that object, it will go to the Checkout object page, and it has customer: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yeah, i've used and i'm able to listen to the events
but i'm looking for customer_id but i only see customer
does customer == customer_id?
i'm getting back the following
i'm confused because you're repeating what i'm saying and i'm not sure if i should take as a yes or a no
you can find a sample of what i'm getting @
if you visit that url, you'll see what i mean
Sorry for the unclear answer
but i'm looking for customer_id but i only see customer
customer is correct. You should look for customer . And the value you will get inside it is a "customer id" cus_xxx
You should always verify the event, or you won't know for sure it comes from Stripe