#john_70817
1 messages · Page 1 of 1 (latest)
hi there, can you share the request id [0]? it'd look like req_xxx
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
})
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
great!
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
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
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