AbanteCart Community

AbanteCart Development => General Discussion => Topic started by: ibpf on April 19, 2024, 12:18:44 PM

Title: Unknown error encountered. Please try again! (Authorize.Net)
Post by: ibpf on April 19, 2024, 12:18:44 PM
I'm trying to run my first live transaction.  Authorize.Net + Zen Payments. Receiving this nondescript error and I don't now how to debug!  Any guidance for me?  Thank you!!
Title: Re: Unknown error encountered. Please try again! (Authorize.Net)
Post by: Basara on April 22, 2024, 01:22:36 AM
Hello.
What is your AbanteCart version?
Title: Re: Unknown error encountered. Please try again! (Authorize.Net)
Post by: ibpf on April 22, 2024, 10:09:46 AM
1.3.3
Title: Re: Unknown error encountered. Please try again! (Authorize.Net)
Post by: Basara on April 23, 2024, 02:53:35 AM
Hello.
If you use a non-modified version of Authorize.Net make sure you have Fast checkout enabled. Additionally, when encountering an error, please inspect both the browser's console log and AbanteCart's error log for insights. Could you specify if the error appeared upon loading the payment page or after submitting the card details?
Title: Re: Unknown error encountered. Please try again! (Authorize.Net)
Post by: ibpf on May 02, 2024, 11:09:57 AM
"Unknown error encountered. Please try again!" is thrown on the page upon clicking [Confirm Order].

I don't see where I can enable Fast Checkout in the Authorize.Net payment settings?  (the browser tab reads "Fast Checkout" if that matters)

System Log shows: 2024-05-02 15:00:16 - Unknown Error: AbanteCart core v.1.3.3 Class "net\authorize\api\contract\v1\MerchantAuthenticationType" not found in <b>/home/outdofjroductsg/public_html/extensions/default_authorizenet/storefront/model/extension/default_authorizenet.php</b> on line <b>36</b>

I have a system message:
Incorrect index.php file permissions
Message status:
    warning

Date:
    05/02/2024 10:28:05 AM

Number of repetitions:
    0

/home/outdofjroductsg/public_html/index.php file is writable. It is recommended to set read and execute modes for this file to keep it secured and running properly!


I'm not sure how to get to the system files in the hosted environment, though.

I'm also not sure what I'm looking for in the browser console, to be honest.

Thank you for your help!
Title: Re: Unknown error encountered. Please try again! (Authorize.Net)
Post by: abolabo on May 03, 2024, 03:17:06 AM
you should to compare your file with this
https://github.com/abantecart/abantecart-src/blob/1.4.0/public_html/extensions/default_authorizenet/main.php
see line #3
Code: [Select]
require_once DIR_EXT . 'default_authorizenet' . DS . 'vendor' . DS . '/autoload.php';i guess cause here.

Also check your directory https://github.com/abantecart/abantecart-src/tree/1.4.0/public_html/extensions/default_authorizenet/vendor

And change permission for file public_html/index.php to 644 (write-read-read) to avoid warnings