#K.Danz
1 messages · Page 1 of 1 (latest)
👋 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?
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.
you shouldn't be saving client_secrets though
you should be generating the client_secret on demand
ok thanks, i've switched the code and now it is in response from API