#test publishable key
1 messages · Page 1 of 1 (latest)
Hi there. The publishable key is meant for client-side (front-end) code: https://stripe.com/docs/keys#:~:text=On the client,tokenizes payment information.
You can test it by using Elements on the front end
So, I can't use publishable key on server side?
For example
loadStripe('pk_test_....')
It's not meant to be used like that. It's also safe to be visible publicly, so there's a limited number of things you can do with the publishable key anyway. Why do you need to use the publishable key on the server?
In system admin we have integration page
there we can add stripe integration and save SK and PK to database and we can test it
I can test secret key, but I don't know how to test publishable key
It's design for my project, which I working on
there we save these two key
I'm using sdk for stripe on backend
My question is, can I use publishable key on server side
No not possible
Okay
Thank you
Apologies. It looks like a few select endpoints work with the publishable key. You should be able to retrieve a PaymentIntent with the publishable key server-side