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

hostname "api-preprod.mangopay.com" does not match the server certificate #3

Closed
kpgdev opened this issue Nov 20, 2013 · 2 comments
Closed

Comments

@kpgdev
Copy link

kpgdev commented Nov 20, 2013

hi

i am just trying to install mangopay. i've just set up a new account using

http://docs.mangopay.com/api-references/sandbox-credentials/

and installing this gem then running the generator (XX is in place of my credientials)

rails generate mangopay:install XX XX XX

but i am getting a cert error:

hostname "api-preprod.mangopay.com" does not match the server certificate

any ideas?

thanks

farmdrop

@FlorianGuerrier
Copy link
Contributor

Hi,

Thanks a lot for your question. This SDK is actually not fully up to date. A new version is currently in development. We will get back to you very soon.

We changed the root URL, that's why you're getting such an issue. You can force it using this code (replacing the URL by this one):

MangoPay.configure do |c|
    c.client_id = ...
    c.client_passphrase = ...
    c.root_url = 'https://api.sandbox.mangopay.com'
end

The other changes will be additional objects or requests.

Best
Florian

@kpgdev
Copy link
Author

kpgdev commented Nov 20, 2013

great thanks - i've added these to a .env file.

MangoPay.configure do |c|
c.client_id = ENV["MANGOPAY_CLIENTID"]
c.client_passphrase = ENV["MANGOPAY_PASSPHRASE"]
c.root_url = 'https://api.sandbox.mangopay.com'
end

@kpgdev kpgdev closed this as completed Nov 20, 2013
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