#Steph-secret-key

1 messages · Page 1 of 1 (latest)

eager tulip
#

Hello, how is it not working? Are you seeing an error?

icy violet
#

And I can't enter the number of my card on the site

eager tulip
#

You want to send your publishable key to your client side

#

It should look like your secret key but should look like pk_... instead of sk_...

#

Make sure the sk_... is never on your client side

#

You should be able to store it and send it to your client side the same way. It is just important that the publishable key (pk_...) is always used client side

icy violet
#

I used sk_live in PHP (so, with the server), do I have to use the pk_live with javascript ?

I read the documentation, and I didn't understand how to store the keys, and which keys are necessaries

eager tulip
#

Yes, both are necessary, use sk_live server-side, andpk_live for your client side javascript

icy violet
#

Oh YES, IT WORKS 🥳

Thank you very much @eager tulip 🙏

eager tulip
#

Awesome! Glad you got it working!