#john_70817

1 messages · Page 1 of 1 (latest)

clever swallowBOT
solemn isle
pure crane
#

So I wasn't able to get the request but i was able to print the error (the sample code printed that error but there is a better erro)

#

"Publishable key sent, but only secret keys can be used"

#

StripeAuthenticationError

#

This happens when server which uses Stripe sample code calls: stripe.oauth.token({
grant_type: 'authorization_code',
code
})

solemn isle
#

it looks like you're using the publishable key for that call as the error message mentions, but you should be using the secret key instead

pure crane
#

oh

#

thanks

#

I think it is fixed when i used the right key

solemn isle
#

great!

pure crane
#

Can I share test keys with my devs? I want to avoid giving them live keys

#

Are there any secruity concerns with test keys?

#

Things to be aware of

solemn isle
#

ideally, you should provide them with a developer role on your Stripe account so that they can access the test keys themselves on the Stripe account and you don't have to share them over an insecure medium like email

pure crane
#

Is the concern that I am sharing the code on email? I have just added the code to my sample stripe server on ec2 and so it won't be shared over email, I'll just be giving them access to ec2