#turtleannie-customer.io

1 messages · Page 1 of 1 (latest)

stable raft
#

hello! unfortunately we don't know how customer.io works so you'd want to reach out to their customer support team instead

gritty plaza
#

i contacted the team and got the answer that the problem is from Stripe.

The message they sent: Since it doesn't appear that you have captured the person's email in Stripe, the data.object.customer is not an object (it is instead a string value that corresponds with their id attribute). So, because you're not passing the person's email identifier from Stripe that error is showing when you attempt to lookup and assign a value from data.object.customer.email.

stable raft
gritty plaza
#

acct_18dhKjEXK9HNp5BH

stable raft
#

for context, neither the subscription_schedule.created nor the customer.subscription.created events are going to contain the customer email. Since you're using payment links / Checkout, if you want to retrieve the customer email upon successful subscription creation, what i'd suggest is to listen for checkout.session.completed, check that the mode=subscription and you should be able to find the customer email in either customer_details.email or customer_email - see https://dashboard.stripe.com/events/evt_1LV67AEXK9HNp5BHY9NqlgPW

gritty plaza
#

thank you very much, i will try this way as well. one last question: is it possible to customize the data sent with the subscription_schedule.created event? if possible how can i do it?

stable raft
#

the way your integration works now, the data sent in subscription_schedule.created can't be customized to include the customer email

gritty plaza
#

thank you so much your support was invaluable 🙏

#

i asking out of curiosity: what kind of integration or structure should we create in order to receive e-mails with this event? is there a document describing this?

stable raft
#

you'll need a developer to include the customer email when creating the subscription schedule

gritty plaza
#

hmm