Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot create/retrieve token #59

Closed
pongsakornsemsuwan opened this issue Nov 8, 2016 · 2 comments
Closed

cannot create/retrieve token #59

pongsakornsemsuwan opened this issue Nov 8, 2016 · 2 comments

Comments

@pongsakornsemsuwan
Copy link

pongsakornsemsuwan commented Nov 8, 2016

I'm testing omise services and while I can retrieve customers/cards fine, I cannot create/retrieve token. The error is

{ object: 'error',
  location: 'https://www.omise.co/api-errors#authentication-failure',
  code: 'authentication_failure',
  message: 'authentication failed' }

and i was using the same secret key when I test customer (actually run in one-go)

Is there a different key to use with token API?

@zdk
Copy link
Contributor

zdk commented Nov 8, 2016

@pongsakornsemsuwan
We have 2 types of key https://www.omise.co/api-authentication
Regarding Token API, it is required to use Public Key or pkey_

@pongsakornsemsuwan
Copy link
Author

Thank you. It works now. I should've tested with pkey first. :)

The api doc is a little bit confusing though.
The python version example is using skey while curl version is using pkey.
https://www.omise.co/tokens-api

@zdk zdk closed this as completed Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants