Post by harap » Fri Jun 03, 2016 4:02 am

Hello Sirs,

How come I get two warnings on set/view order page in admin?
Warning: Your IP 99.58.13.123 is not allowed to access this API!
Warning: Incorrect API Key!

How to get IP to be allowed ?
I checked the only payment method Paypal account API is matched with my store settings. What API key is talking about here?

Please help. Thanks in advance!

Active Member

Posts

Joined
Wed Sep 16, 2015 12:34 am
Location - United States

Post by imdevlper18 » Fri Jun 03, 2016 3:36 pm

Hi,

In opencart 2.x new feature is added. Steps are as follows:

1) Create api user by going to admin - system - users - api.
2) Assign this api user to system - setting - edit - option - API User - save.

Once done. Make sure you don;t have maintenance mode or htaccess password protection system ON.

Now when you go to orders page. You only need to click ADD IP once. And now you can see / view / modify orders.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by harap » Fri Jun 03, 2016 3:59 pm

Hello imdevlper18,

Thank you very much for detail advise. Yes, I got it.

Active Member

Posts

Joined
Wed Sep 16, 2015 12:34 am
Location - United States

Post by esk1mox » Fri Jun 10, 2016 12:59 am

Created an API user
Assigned it under settigns-Option
website not under maintenance and no password in htaccess

YET I still see "Warning: Incorrect API Key!" when opening orders.

Beg for help! Thanks

Newbie

Posts

Joined
Fri Jan 10, 2014 4:39 am

Post by imdevlper18 » Sat Jun 11, 2016 1:22 pm

Hi,

You can contact us at support@cartbinder.com
We can help you with it.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by thekrotek » Mon Feb 04, 2019 4:39 am

I will just leave it here in case anybody will be looking for solution. There's a very strange issue, which may pop on some server setups.

In catalog/model/account/api.php file find this line:

$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "api_ip` WHERE api_id = '" . (int)$api_id . "'");

And replace it with this:

$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "api_ip` WHERE api_id = " . (int)$api_id);

I have absolutely no idea, why removing single quotes in this particular case solves the issue, but it does. Hope it helps.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am

Who is online

Users browsing this forum: Google [Bot] and 29 guests