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

PayWhirl#get_multi_auth_token returns Invalid Authorization #6

Open
pauliinasol opened this issue Aug 10, 2018 · 1 comment
Open

PayWhirl#get_multi_auth_token returns Invalid Authorization #6

pauliinasol opened this issue Aug 10, 2018 · 1 comment

Comments

@pauliinasol
Copy link

Following the docs I tried to get a multiauth token like this:

$> gem install paywhirl
$> irb
require "paywhirl"
 => true
api_key = "pwpk_my-api-key"
api_secret = "pwpsk_my-api-secre"
paywhirl = PayWhirl.new(api_key, api_secret)
paywhirl.get_multi_auth_token({"id" => some_id})

Expected result:

=> "some multiauth token"

Got:

{"error"=>"Invalid Authorization. Your account does not have access to the PayWhirl API."}

The api_key and api_secret we're definitely correct - why is the authorization failing?

@runefather
Copy link
Contributor

I don't handle the billing side of things but if it's a free account it might have limited or no API access. I'd check on that first, otherwise I tried replicating what you did there and couldn't get the same issue, but if that's not the case I also refreshed the ruby gems version of the API and updated to 0.0.3 (some methods had been added, so I would also try the get_customers() method to see if it's an account authentication issue or if there's a bug with multiauth) if you want to try reinstalling.

Let me know how it goes!

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