#sb-linkelement-email

1 messages ยท Page 1 of 1 (latest)

pulsar gazelleBOT
steep hollow
#

@balmy dagger that property is specifically the email address used to send an email receipt.

balmy dagger
#

ah okay using stripes email service I assume

steep hollow
#

I don't really get the rest of your wording. We don't have any concept of an "order" and we also do not collect an email address by default

balmy dagger
#

I am using a Stripe element which contains an email field

#

LinkAuthenticationElement

steep hollow
#

I'm sorry, we have numerous separate elements. Can I ask you to be a lot more specific

#

okay thanks, so that's specific to Link, for the end-customer to sign up for Link.

#

Do you have an example PaymentIntent id for me to look at?

#

sb-linkelement-email

balmy dagger
#

pi_3O7RERBMpzg4WqwK4tcW2RFK

#

Maybe LinkElement is the wrong thing to be using then, semantically

#

but I do want to gather the users email at checkout

#

the pi above is done in test mode

#

I figured it out I think

#

if I query ch_3O7RERBMpzg4WqwK4FfkVbdC

#

which is the latest charge

#

it has an email field that is populated correctly

steep hollow
#

Yeah if you look at this request you can see where the email is passed https://dashboard.stripe.com/test/logs/req_KNEUKsuPLUJESn
It's part of the PaymentMethod, so when you get the PaymentIntent's Event it will have the pm_123 and you can retrieve that, or use the one on the Charge which is a snapshot of it

balmy dagger
#

ah okay payment method is the better option

steep hollow
#

both work fine really

balmy dagger
#

true, charge object just has more info

#

but okay got it

#

Although it would be nice if you guys include it with the payment intent object

#

maybe there are reasons you can't, idk

#

I believe your checkout objects have an email associated with them

#

guess it's because a custom checkout flow may not have an email associated with it

steep hollow
#

yeah and a PaymentIntent is a state machine of payment attempts so it's not really the right place to put "an email" since there isn't one, there's an email for other objects

balmy dagger
#

okay gotcha

#

thanks for the help

steep hollow
#

sure thing ๐Ÿ™‚

balmy dagger
#

no further questions, have a nice day ๐Ÿ™‚