Payment Method - Authorize Accept JS

  • Posts: 11
  • Thank you received: 2
  • Hikamarket Multivendor Hikashop Business
8 months 6 days ago #304657

-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.3
-- PHP version -- : 7.1.26
-- Browser(s) name and version -- : Firefox 65.0.2

Hello,

We purchased the Authorize Accept JS plugin last night and wanted to try it.
There seems to be two issues:
1) a misspelled file name in the package, and
2) we are unable to Finish/Complete Checkout due to a dead button with no action on a click.

We've been running successfully with the old Authorize.net "AIM" plugin on this test site as well as on production. We are even using the latest development release of this plugin (authorize.zip) that accomodates the new SHA512 security key.

But back to the Accept JS payment method that we now want to use....

We noticed an issue right away upon installation. We get a warning about a non-existent file:




I looked in package and saw a file named "authorisejs.js". Other files were named using a "z" instead of an "s".





I checked the XML file and saw that the file name is referred to with a "z".





I renamed the file to "authorizejs.js" and reinstalled. The error disappeared.

I began testing a product purchase and began checkout. I entered the Credit Card info, but when I click Complete Checkout (Finish) button, nothing happens. We are running with a Joomlart template JAT3v2 framework and no other scripts on the page but Hikashop's.

I'm running on a test site with maximum messages and in Debug mode. We are also forcing SSL on backend and frontend.

Can you recommend a test or something in particular to check? If needed, I can mail you credentials to our test site. Thanks!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 23806
  • Thank you received: 3692
  • MODERATOR
8 months 6 days ago #304659

Hello,

First, sorry for the inconvenient.
Authorize JS was using the same kind of structure than Stripe V3 but unfortunately, the packaging script for production was not up to date compared to our development packaging script.

I've updated the plugin, so you can re-download it in order to have the version where the javascript is right in the "media" folder.

It looks like your template is hiding the Payment "submit" button ; but when I display it and click on the "submit" button, I got the message from AuthorizeJS :
E_WC_04: Please provide mandatory field to library.[/quote] That issue indicate that there is a missing element in the submitted data. Unfortunately, with the javascript compression in your website, I'm not able to perform deeper analysis ; I would require a FTP access so I can put some debugging data directly in the file and check what is that missing field. Please use the "contact us" form to send us such private information. Regards,[code]E_WC_04: Please provide mandatory field to library.[/quote]
That issue indicate that there is a missing element in the submitted data.
Unfortunately, with the javascript compression in your website, I'm not able to perform deeper analysis ; I would require a FTP access so I can put some debugging data directly in the file and check what is that missing field.
Please use the "contact us" form to send us such private information.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 2
  • Hikamarket Multivendor Hikashop Business
8 months 3 days ago #304791

Hi Jerome,

In your latest build -- in the media folder -- the filename is still misspelled. It is "authorisejs.js", but it should be "authorizejs.js" (with a "z").

In addition, I have modified my own file with the following:

Replace

console.log(resp.messages.message[i].code + ": " + resp.messages.message[i].text);


with this
console.log(resp.messages.message[i].code + ": " + resp.messages.message[i].text);
alert( resp.messages.message[i].text );


You may want to add this mod to your next build.

Many thanks!

Last edit: 8 months 3 days ago by ACMLLC.
The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

  • Posts: 23806
  • Thank you received: 3692
  • MODERATOR
8 months 1 day ago #304832

Hello,

The filename typo and the display patches have been added into the new package.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 3
  • Hikashop Business
5 months 2 weeks ago #307172

Please add a version number to your zip file in future. I had downloaded this months ago. Finally ready to install, I saw that the file name was the same so I used the one I already had. I had to start over. If there had been some indication of change, I would have made sure I used the current one. Thanks!

Last edit: 5 months 2 weeks ago by efocus.

Please Log in or Create an account to join the conversation.

  • Posts: 23806
  • Thank you received: 3692
  • MODERATOR
5 months 2 weeks ago #307208

Hello,

Thank you for you feedback, I will send it to the rest of the team for future improvement regarding the marketplace.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 3
  • Hikashop Business
5 months 2 weeks ago #307214

You’re welcome!

Do you have more detailed instructions for installation somewhere like you do for the older SIM payment method? It would be helpful for others. I had never used the Public Key for SIM and so I thought that the Signature Key was the same thing but I kept getting the error message that meant I needed a new Transaction Key. I even called Authorize and the tech thought I was doing it right (she was wrong). After going into the Authorize.net’s developer area, I discovered that they are not the same. Once I generated a Public Key, everything worked. Don’t even need the Signature Key.

Another issue: I used the same Return URL in Authorize Accept JS as I did for the SIM version. It brings up a 404 Page Not Found error. I left it blank and it gives the proper message so I may just leave it alone. But the message is so tiny, I prefer the Return URL but I don’t know why it doesn’t work. I tried the URL without the domain at front (which works on SIM payment method); and, I tried the URL with the MyDomain.com/ in front. Neither work. I tested the Cancel URL too and it didn’t work for me either. Not a big deal. I’m embarrassed to say I spent 4 hours trying to figure all this out with a few mistakes on my end — so I’m not in a hurry to revisit this! It usually only takes me 15-30 minutes to install a payment plugin when there are instructions.

Thanks for your help!

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 3
  • Hikashop Business
5 months 2 weeks ago #307215

One other question: Which version of Accept.js did you use? The PCI-DSS SAQ A-EP solution or the PCI-DSS SAQ A compliant way. I need to be able to tell my client when she goes through her PCI compliance process.

Please Log in or Create an account to join the conversation.

  • Posts: 23806
  • Thank you received: 3692
  • MODERATOR
5 months 2 weeks ago #307264

Hello,

The plugin use the first option (its own payment form, without AcceptUI), so it's the "PCI-DSS SAQ A-EP" mode.

Regarding the documentation, I have to see how we will handle that since the plugin is not part of the HikaShop core (so does the support).
Authorize do have documentation about Accept JS and there is a part which talk about the generation of the credentials (public key) :
developer.authorize.net/api/reference/fe...he_Public_Client_Key

About the return URL, that's strange since there is nothing in the plugin to handle it ; that's something related to the HikaShop core for all payment plugins (once the plugin confirm the order, the core do the redirection with the configured URL).
Maybe the HikaShop team would be able to help you with that problem.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 3
  • Hikashop Business
5 months 2 weeks ago #307267

Thank you for your answers! Yep, that’s the developer page I found that clued me in about the public key. I will contact HikaShop regarding the Return URL.

Please Log in or Create an account to join the conversation.

Time to create page: 0.099 seconds
Powered by Kunena Forum