#LIL Vrau

1 messages · Page 1 of 1 (latest)

south graniteBOT
short wing
#

Hello! What's up?

#

I am using Stripe CLI and I wanto to know how to customize the email of a customer when I trigger an event.

elder hatch
#

Yes, I read the doc

#

But I want the customer that is making the payment have an email

short wing
#

Can you share the full command you're using?

elder hatch
#

sure

#

stripe trigger payment_intent.succeeded

#

But the the event sent by the CLI does not contain an email

#

I want to put one

short wing
#

That trigger does not typically involve a Customer or an email address. Where exactly do you want the email to show up?

elder hatch
#

anywhere in the json response

short wing
#

Which JSON response?

elder hatch
#

i triggered this event and that was the response

#

if you look, "email" field is null

short wing
#

Yes, that's expected. Try this: stripe trigger payment_intent.succeeded --add payment_intent:metadata.email=test@example.com

#

That won't fill in that specific email field, but it will allow you to add an email into the Payment Intent's metadata.