#kasvith-ephemeral-key

1 messages · Page 1 of 1 (latest)

woeful wind
#

That's a good question. Let me check

icy dew
#

sure

woeful wind
#

Sorry for the wait, just had to confirm with a colleague. You shouldn’t be saving/reusing that ephemeral key - they’re meant to be short-lived

icy dew
#

should i create an ep key when issuing a new payment intent?

#

or cache for short period?

#

@woeful wind

#

caching for like 1h maybe?

woeful wind
#

Caching for the life of the session is expected, so it might be worth making it variable based on events that the end-user initiates so that you don't have the edge-case where the end-user leaves the app open without completing their payment.