#turtleannie-customer.io
1 messages · Page 1 of 1 (latest)
hello! unfortunately we don't know how customer.io works so you'd want to reach out to their customer support team instead
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.
Can you share your account id so that I can take a closer look at how your integration works? You can find your account id by logging in to https://dashboard.stripe.com/settings/account. It'll be in the upper right hand corner and looks like acct_123
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
acct_18dhKjEXK9HNp5BH
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
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?
the way your integration works now, the data sent in subscription_schedule.created can't be customized to include the customer email
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?
you'll need a developer to include the customer email when creating the subscription schedule
i would include the customer email in the metadata when creating the subscription schedule : https://stripe.com/docs/api/subscriptions/create#create_subscription-metadata
hmm