#ParkerMurray

1 messages · Page 1 of 1 (latest)

limpid fernBOT
tame blaze
#

Hi there, do you mean generating ephemeral keys?

analog dagger
#

I am using a react front end, and need import stripe to then be able to call the .createEphmeralKeyNonce and pass that back to my server.

#

I haven't see any docs on how / which react library to import that has this method.

tame blaze
#
 const ephemeralKey = await stripe.ephemeralKeys.create(
    {customer: customer.id},
    {apiVersion: '2020-08-27'}
  );```
analog dagger
#

I need the ephemeral key to allow me to show issued card details

tame blaze
#

Hmm, I believe you already found the code to generate the ephemeral key (it's in the screenshot that you posted)?

#

Sorry

#

I misread your question

analog dagger
#

okay, do you know which stripe react library needs to be imported?

tame blaze
analog dagger
#

hmm okay let me take a look.