#test publishable key

1 messages · Page 1 of 1 (latest)

charred dirge
#

You can test it by using Elements on the front end

slim solstice
#

So, I can't use publishable key on server side?
For example
loadStripe('pk_test_....')

charred dirge
#

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?

slim solstice
#

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

charred dirge
#

What UI is that?

#

Are you using a Stripe plugin?

slim solstice
#

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

charred dirge
#

No not possible

slim solstice
#

Okay
Thank you

charred dirge
#

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