magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.31k forks source link

Authorized.net configuration issue with M2.3.1, Got error Invalid credentials #23256

Closed neha023 closed 5 years ago

neha023 commented 5 years ago

Preconditions (*)

  1. Magento 2.3.1
  2. PHP 7.1.30
  3. MYSQL 5.6.44
  4. CentOs 7

Steps to reproduce (*)

  1. Go to Admin->Store->Configution->Sales->Payment method
  2. Enable Authorized.net after entering the API Login ID, Transaction key, Public Client key and Signature key.
  3. Authorized.net Mode is Production, and Clean cache.
  4. Add any item to cart, go to checkout.
  5. Enter valid address and choose shipping method
  6. Enter card info for payment and then click on Place Order.

Got and error message on screen "Invalid Gateway Credentials."

In console :

It is showing me below message on API "/rest/default/V1/carts/mine/payment-information" : {"message":"Invalid gateway credentials.","trace":"#0 \/var\/www\/html\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\Checkout\Model\PaymentInformationManagement->savePaymentInformationAndPlaceOrder(453, Object(Magento\Quote\Model\Quote\Payment\Interceptor), Object(Magento\Quote\Model\Quote\Address))\n#1 \/var\/www\/html\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->callParent('savePaymentInfo...', Array)\n#2 \/var\/www\/html\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->Magento\Framework\Interception\{closure}(453, Object(Magento\Quote\Model\Quote\Payment\Interceptor), Object(Magento\Quote\Model\Quote\Address))\n#3 \/var\/www\/html\/generated\/code\/Magento\/Checkout\/Model\/PaymentInformationManagement\/Interceptor.php(26): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->callPlugins('savePaymentInfo...', Array, Array)\n#4 [internal function]: Magento\Checkout\Model\PaymentInformationManagement\Interceptor->savePaymentInformationAndPlaceOrder(453, Object(Magento\Quote\Model\Quote\Payment\Interceptor), Object(Magento\Quote\Model\Quote\Address))\n#5 \/var\/www\/html\/vendor\/magento\/module-webapi\/Controller\/Rest\/SynchronousRequestProcessor.php(95): call_user_func_array(Array, Array)\n#6 \/var\/www\/html\/vendor\/magento\/module-webapi\/Controller\/Rest.php(188): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor->process(Object(Magento\Framework\Webapi\Rest\Request\Proxy))\n#7 \/var\/www\/html\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))\n#8 \/var\/www\/html\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->callParent('dispatch', Array)\n#9 \/var\/www\/html\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))\n#10 \/var\/www\/html\/generated\/code\/Magento\/Webapi\/Controller\/Rest\/Interceptor.php(26): Magento\Webapi\Controller\Rest\Interceptor->callPlugins('dispatch', Array, Array)\n#11 \/var\/www\/html\/vendor\/magento\/framework\/App\/Http.php(136): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))\n#12 \/var\/www\/html\/vendor\/magento\/framework\/App\/Bootstrap.php(258): Magento\Framework\App\Http->launch()\n#13 \/var\/www\/html\/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))\n#14 {main}"}

Expected result (*)

  1. Enable the Authorized.net with production/sandbox details (I am using the production, Already using one of my magento2 site.)
  2. Login on the website.
  3. Add item to cart and checkout via authorized.net
  4. Checkout should be done successfully and the customer will get an order email and order will show in order grid admin panel.

Actual result (*)

  1. Login as a registered customer.
  2. Add item to the cart
  3. Checkout via Authorized.net and got error on screen "Invalid Gateway Credentials" and same in the console.
  4. https://prnt.sc/o1pash
  5. https://prnt.sc/o1pceq
  6. log has this error as a part: 'response' => '{"transactionResponse":{"SupplementalDataQualificationIndicator":0},"messages":{"resultCode":"Error","message":[{"code":"E00007","text":"User authentication failed due to invalid authentication values."}]}}'

I have verified credentials many times and re-enter again and again but the issue remains same. The credentials are working fine on M2.2.5 site but having issue with M2.3.1. Thanks.

m2-assistant[bot] commented 5 years ago

Hi @neha023. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.3-develop instance - upcoming 2.3.x release

For more details, please, review the Magento Contributor Assistant documentation.

@neha023 do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?


m2-assistant[bot] commented 5 years ago

Hi @engcom-Charlie. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Charlie commented 5 years ago

Hello @neha023 ! Can you confirm that you can reproduce this issue on Vanilla Magento ?

neha023 commented 5 years ago

Hi,

I have found that people are able to checkout via authorized.net but they have found the issue that orders are created with cancel status in magento 2.3.1 and this issue will fixed by you guys in Magento 2.3.2 release. So my issue is faced by some of the people not by everyone. As we have found issue after upgrade from M2.2.5 to M2.3.1. Same issue link I found on magento stack: https://magento.stackexchange.com/questions/277948/authorize-net-issue-with-magento-2-3-1-invalid-gateway-credentials

Thanks.

On Thu, Jun 20, 2019 at 7:05 PM engcom-Charlie notifications@github.com wrote:

Hello @neha023 https://github.com/neha023 ! Can you confirm that you can reproduce this issue on Vanilla Magento ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/23256?email_source=notifications&email_token=AFOSYYCEQES5SEYL3OZNNTTP3OBQZA5CNFSM4HYFKAYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYFNUHY#issuecomment-504027679, or mute the thread https://github.com/notifications/unsubscribe-auth/AFOSYYBS7D3I63TDBS2H4TTP3OBQZANCNFSM4HYFKAYA .

-- Thanks & Regards (please excuse any typos),

SINGAPORE OFFICE SunArc Technologies Pte. Ltd. 171 Tras Street, #04-171A, Union Building, Singapore 079025

INDIA DEVELOPMENT CENTER SunArc Technologies Pvt Ltd. Novel Tech Park, Kudlu Gate, Bangalore

SunArc Technologies Pvt Ltd. 29-30 Panchshati Circle Bikaner RJ 334003 India T: +91.151.220.0810, 2202140 W: www.sunarctechnologies.com

https://www.facebook.com/sunarctechnologies https://plus.google.com/118054332794463441394 https://www.linkedin.com/company/sunarc-technologies https://twitter.com/SunArc_tech https://www.youtube.com/channel/UCiMpzCTSjdhyfaa3PGiwExg

Warning: Privileged/Confidential information may be contained in this communication (which includes any attachment). If you are not an intended recipient, you must not use, copy, disclose, distribute or retain this communication or any part of it. Please delete all copies of this communication from your computer system and notify the sender immediately by reply mail.

The sender does not accept any responsibility for any loss, disruption or damage to your data or computer system which may occur whilst using data contained in, or transmitted with, this email. Any views or opinions represented in this email are solely those of the author and may not necessarily represent those of SunArc Technologies Pvt Ltd.

simonlandry0 commented 5 years ago

@neha023 I ran into the same "User authentication failed due to invalid authentication values." issue after updating to 2.3.2. If you update to 2.3.2 and are still having that same issue, try doing what I mentioned in my latest comment in this thread https://github.com/magento/magento2/issues/22373