#K.Danz

1 messages · Page 1 of 1 (latest)

red windBOT
reef urchin
#

👋 happy to help

#

yes you can safely return the Payment Intent's client_secret to the front end

#

what kind of risks are you worried about?

solar trail
#

I was just wondering as this is first time i'm implementing. I was saving the client_secret in database on api and then retrieving from database. ChatGPT said this method was security risk.

reef urchin
#

you shouldn't be saving client_secrets though

#

you should be generating the client_secret on demand

red windBOT
solar trail
#

ok thanks, i've switched the code and now it is in response from API