Authorize.Net Accept.JS - suspecious AVS transations - verify vs pending

  • Posts: 21
  • Thank you received: 1
  • Hikashop Business
2 years 5 days ago #346668

The beta plug in is installed with website set to php 8.0 and so far its working. Will update if I have any issues.

The following user(s) said Thank You: Jerome

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

  • Posts: 12
  • Thank you received: 1
2 years 3 days ago #346702

Well, I've gone back to the originally downloaded AuthorizeJS plugin, patched the various deprecation errors and am communicating with Authorize.net sandbox, but still can't complete a transaction. I am examining the XML data that is serialized and sent to the sandbox (the $xmlRequest variable in the execute method of the ApiOperationBase object) and am having issues with the serializer failing to limit the number of decimal places being sent as the Amount. When it serializes the XML document, the value for amount includes more than 50 decimals places, whereas the Authorize.net API can only accept a value with 15 digits. The error in the result object is "A valid amount is required." and sending the produced XML values to the sandbox's test interface manually processes correctly if I alter that amount value to include only 3 decimal places. I have included a number_format command in the processPaymentWithToken method of authorizejs.php, which ensures that the value being placed into the transaction request object's setAmount method has no more than 3 decimal places, but viewing the XML of the serialized XML request shows the long numerical string is still being produced.

From what info I can find on JSM Serializer, there is a way to ensure a numerical number is produced instead of the CDATA string value currently being produced, but I can't find how to do it in any forums, and documentation is almost nonexistent. (all the values in the plugin's serialized XML appear to be produced as CDATA text.)

Is there a way to limit the numeric values In the serialized XML to 2 decimals?

Again, I'll ask - can I get ahold of the beta plugin, seeing as the AuthorizeJS plugin I purchased seems to have issues?

(I have reverted this site to PHP 8.0, since the JMS Serializer GitHub discussions mentions issues with PHP 8.1 in several different places. I have also updated the HikaShop installation to 4.7)

Thanks.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
2 years 2 days ago #346708

Hello MonkeyT12,

I can see that you made a lot of tests for the plugin.
And we are sending beta versions of the plugin to customers who're asking us via the "contact us" form.
As I explained 2 weeks ago in that message : www.hikashop.com/forum/payment-methods/9....html?start=0#346163

Since we got positive feedbacks, I do think that I would publish the plugin as "stable" in our website before the end of the month.
Feel free to contact us in order to test that version and send us your feedback too.

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: 12
  • Thank you received: 1
2 years 1 day ago #346726

Thank You.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum