Steps to pull an email address from Stripe checkout session

Totally new at this. Can someone tell me the scenario steps necessary to pull the customer’s email from a Stripe checkout session. So far I’m watching for completed checkout sessions. I’m pretty sure I need to Retrieve a Customer at some point, but how do I get from the checkout session to there? The fields that checkout session is offering are:

  • Created
  • Event Type
  • Event ID
  • Object
  • Raw Webhook Data

Thanks in advance for any help!

Welcome to the Make community!

According to the official Stripe documentation,

The Checkout should already contain the customer’s email if one was provided. See the checkout.session.completed event, you will be able to find customer’s email in customer_details.email field.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Thank you. I think I solved the problem by running the incomplete scenario once while in the editor in order to pull in an actual payload of data. After I had done that, the “Object” field was expandable to contain many available subfields, and ‘customer_email’ was one of these.

Well I thought I had it solved, but it failed the first time it tried to run. In my Gmail module, the setup looks like this:

Which I thought would do the trick, but apparently Object: customer_email returns a blank, so the email could not be sent.
There are only two module in the scenario. One that watches for Completed Checkout Sessions, and then this one. Might I need another?