0

I'm getting a error on creating the order inside the Admin panel like below

Order saving error: Your API key is not valid.

I don't known why it is happening.??

Please anyone help me. Thanks in Advance

  • Are you using any custom modules? – floorz Oct 20 '18 at 8:10
  • yes onestep checkout.. – Ask Bytes Oct 20 '18 at 8:12
  • I'm guessing they require some kind of configuration that uses an api key? Other than that, what payment method are you trying to use? I'm looking at code now to hunt down what might cause that error. – floorz Oct 20 '18 at 8:17
0

The only places I can find that throw exception with that text Order saving error: %1 are:

Magento_Authorizenet

In: vendor/magento/module-authorizenet/Controller/Adminhtml/Authorizenet/Directpost/Payment/Place.php

On line 128:

...
} catch (\Exception $e) {
    $this->messageManager->addExceptionMessage($e, __('Order saving error: %1', $e->getMessage()));
    $isError = true;
}
...

Magento_Sales

In: vendor/magento/module-sales/Controller/Adminhtml/Order/Create/Save.php

On line 74:

...
} catch (\Exception $e) {
    $this->messageManager->addException($e, __('Order saving error: %1', $e->getMessage()));
    $resultRedirect->setPath('sales/*/');
}
...

If you aren't using Authorizenet as the payment method, then we can probably assume it's not coming from that.

I don't see any occurrences of Your API key is not valid at all in the codebase so it must be a response from a remote service. Closest match I'm seeing is in the Magento_Signifyd module. Maybe check to see if that service is enabled. It's settings can be found under Stores > Settings > Configuration > Sales > Fraud Protection

  • im used Cash on delivery and free delivery option , still this issue not going :( – Ask Bytes Oct 20 '18 at 8:53
0

Your can follow below step to fix that issue.

Step 1) You can check your third party module as you are using in your store.

Step 2) After your confirmation of module. you can check in magento admin any of the module have used api key.

Step 3) Try to implement that API key as correct to fix issue.

Hope this step you have helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.