#moistcode-payment-element-identifiers

1 messages ยท Page 1 of 1 (latest)

kind karma
#

Hello ๐Ÿ‘‹
Can you clarify what do you mean by identifiers here?

velvet wasp
#

If a user uses a card for example, identifiers would be the last 4, expiry, and brand of the card.

#

Not entirely sure what identifiers mean for other payment methods quite yet ๐Ÿ˜… Still working that out with design.

kind karma
#

ah okay! I do believe there are events that you can listen for on the element itself

velvet wasp
#

Ah right, there are. Looking into that right now.

#

There is a way using stripe.createPaymentMethod() that returns some of those identifiers but it doesn't look like it supports payment element types.

#

I dug through a little and it doesn't seem like there is a stripe.retrievePaymentMethod() method or anything similar.

kind karma
#

Hmm let me take a look
If the events don't work, we may have to jerry-rig it ๐Ÿ˜„

velvet wasp
#

Yeah part of me really wants to make this work but my gut tells me there's a reason why I can't readily access this lol.

kind karma
#

Yeah the idea is to keep the information secure and avoid any leaks in the memory ๐Ÿ˜„

velvet wasp
#

Yeah, I'll figure it out eventually. If anything I can speak to my team about maybe changing up the flow a little to remove the need for a payment method preview.

#

Thanks Hanzo ๐Ÿ™‚

kind karma
#

NP! ๐Ÿ™‚

#

Good luck