#Hemant-customer-email

1 messages ยท Page 1 of 1 (latest)

bleak oxide
proven jetty
#

let me check this documention. Thanks @bleak oxide

bleak oxide
#

NP! ๐Ÿ™‚

hearty streamBOT
#

This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact

proven jetty
#

Hi

#

I tried expanding "customer_email" but in webhook, i got this exception :

] due to exception [This property cannot be expanded (customer_email).; request-id: req_yHU21g6l9FDHlK]
com.stripe.exception.InvalidRequestException: This property cannot be expanded (customer_email).; request-id: req_yHU21g6l9FDHlK

bleak oxide
#

ah you'd need to expand customer and then access email from that object

proven jetty
#

ohh, i thought since "customer_email" is available there, i should be able to do that too ๐Ÿ˜ฆ

bleak oxide
#

Oh yeah tbh I missed that ๐Ÿคฆโ€โ™‚๏ธ
You don't need to expand customer_email. You can just use it as is.
sessionObj.customer_email

proven jetty
#

will i get customer email right away ?

bleak oxide
#

Yup you can give it a try in testmode

proven jetty
#

Sure hanzo

#

Nope, i get null for "sessionObj.customer_email"

#

now , what is the option ?

#

CustomerDetail as expanded item ?

bleak oxide
#

can you share the a session ID that you're testing with? I can take a quick look and see

proven jetty
#

sure

#

cs_test_a1p255fpUV8YDuyl1snctWK998XnLgSR0PC0x0Gvmf8RWsBNylJzFCwXZE

#

Event : evt_1KcBItAEkdu20a8XqktQZnRc

bleak oxide
#

ah okay so it seems like there's a customer attached to it
so you can expand the customer and access the email from the customer object.

proven jetty
#

Sure @bleak oxide LEt me try that out. Thanks buddy