#david-checkout-shipping
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Can you share an example event ID?
evt_xxx where you're seeing the above information as null
cs_test_a1EafqEHX1exXuE1LtIrmlEfGMe01henzVKJ4ifJhZe3mEE6Rtk9dVh4DB looks like one.
that works too, looking..
so it looks like you're/the fixture is passing in shipping address when creating the checkout session
https://dashboard.stripe.com/test/logs/req_fxGCUm7VrfJSDY
And that doesn't get associated with the customer when using always? What's the proper place to put that information?
afaik, no. It's only associated with that particular Session/PaymentIntent
I could be wrong though, looking
For the purposes of developing this fulfillment function, where should I be editing the default, stripe-supplied, fixtures to get a valid customer email address?
One option would be to retrieve the session object again while expanding the customer parameter
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer
That seems a bit odd. The response back in the checkout session object sent to my function includes a customer clause, but with all the fields set to null.
Unlike the line_items object, which you do have to request specifically and is not present at all in the object by default.
I think the response would only have customer ID (since it's an expandable field)
But the customer field (where the ID is stored in the checkout session object, IIRC), is also null. ๐ฆ
I don't think it's null, it is present on the checkout.session.completed event
https://dashboard.stripe.com/test/events/evt_1NsASrH0j6XsPoj6zoWzodV9
Here's a returned checkout session, for example (sorry for the code dump).
"customer": "cus_OfVTE9zehxWWHa",
!!
Geez. I've been running through so many versions that I didn't even see that....
So returning a customer ID and customer_details set to null is expected behavior?
I think it might be, double checking with a colleague
Thanks. ๐
Can you try expanding the customer? I think the address also gets associated, under shipping
https://stripe.com/docs/api/customers/object#customer_object-shipping
Checking...
david-checkout-shipping