• Resolved EnvisionDesign

    (@envisiondesign)


    Trying to get a payment form (Booking systme using Woocommerce) and am getting an error:

    Error Message: User authentication failed due to invalid authentication values.

    I have confirmed the API Login and Transaction key are 100% correct (we have another site (custom PHP) that has those plugged in and they are working just fine.

    The only thing different with this site is the Public Key which the custom PHP sites do not appear to use, but this plugin does.

    Is it possible to configure the plugin without the public key or is there something else we should be looking at not sure what, server / browser cache? No idea.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mohsinoffline

    (@mohsinoffline)

    Hi there,

    I understand that you mentioned the other keys are 100% correct, but it is best to assume they are not if the gateway response indicates otherwise. I would suggest not comparing them with another site, but to refer straight back to the actual Authorize.Net account they were originally sourced from. In any case, the plugin will only relay errors from the gateway, it does not determine the validity of the keys by itself.

    It is possible to configure the site without the Public Client Key. However, it might not fix the issue for you if the it was already correct. Also putting in the Public Client Key ensures that your site tokenizes all card data using Accept.js, which makes it a lot more secure than passing plain card details in the API request. You can remove the key temporarily as part of the debugging process.

    The plugin uses API Login ID and Public Client Key for front end tokenization and it uses API Login ID and Transaction Key for the Payments API.

    With all that said, this is what I would do. First I would keep Public Client Key entered in the settings and try to process the transaction. If the error appears without the page refreshing, then one of API Login ID or Public Client Key are incorrect. You can skip to the next paragraph. If the page refreshes before you see the error, the Transaction Key would be incorrect. Since the tokenization was successful, the API Login ID and Public Client Key are valid.

    You can now remove the Public Client Key and repeat the process. If the transaction was successful then the API Login ID and Transaction Key are valid, but the Public Client Key is invalid, since the tokenization failed earlier. If the transaction still returns the error, it is possible that only the API Login ID is incorrect, but the other two keys are correct. The reverse, although less likely, could be true too, it is possible only the API Login ID is correct, but the other two keys are incorrect. I know the chances of this are very remote, but all the keys could be incorrect too.

    As mentioned earlier, it is best to look into the Authorize.Net account itself. If you double checked that you have already a valid API Login ID and Public Client Key, the tokenization will be successful and the page will refresh before the error appears. In that case, the best course of action is to generate a new Transaction Key, since Authorize.Net will not let you simply view the current one, and if you end up doing that, the old one will not work anymore so please remember to update it on all sites you used the old one on. Please use the link below for instructions on obtaining/locating the keys from the Authorize.Net dashboard:
    https://support.authorize.net/knowledgebase/Knowledgearticle/?code=000001271

    Please let me know if that does not help.

    Thread Starter EnvisionDesign

    (@envisiondesign)

    Yesterday I setup a Sanbox account and was able to succesfully process a fake transaction.

    Today when I plug those values back in it fails. Is there ANYTHING else that could be causing an issue?

    ————————-

    TEST MODE ENABLED
    In test mode, you can use the card number 4111111111111111 with any CVC and a valid expiration date or check the Authorize.Net Testing Guide for more card numbers and generate various test scenarios before going live.

    • An error occurred during processing. Please try again.

    ————————–

    Thread Starter EnvisionDesign

    (@envisiondesign)

    Another Follow up.

    I just went back to live and copy and pasted the values back in and my transaction went through.

    No idea. Why would it now suddenly work?

    Plugin Author mohsinoffline

    (@mohsinoffline)

    I am glad it works now. I already detailed the possible reasons for it not working, so whatever it was, got corrected, and I am sure you will agree that, what matters in the end is that it works now. ??

    • This reply was modified 5 months, 2 weeks ago by mohsinoffline.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.