Results 1 to 10 of 199

Hybrid View

  1. #1
    Join Date
    Sep 2014
    Location
    Indiana
    Posts
    123
    Plugin Contributions
    0

    Default Re: Rounding error

    Quote Originally Posted by apollowilcox View Post
    We recently upgraded our site to ZC 2.1 and installed the most recent version of this great plug-in. We/ our customers are experiencing a recurring problem when trying to checkout and getting this error:

    Customer Payment Transaction: Transaction Failed Error code : E00003 Error message : The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:unitPrice' element is invalid - The value '9.614609999999999' is invalid according to its datatype 'Decimal' - The FractionDigits constraint failed.

    All of our list pricing is entered at 2 decimal points. Qty discounts are entered at 1 decimal point. The $9.61460999 is the resulting discount price for ordering a qty of 12. It is a 4.9% discount off the list price of $10.11.

    It's not a one-off - it is a recurring issue - but not for every order.

    Any ideas out there? thank you!
    Timing is everything.. We think we found/ fixed it here, after struggling with it for a few days.
    in file authorizenet_cim.php, around line 1199, changed: $lineItem1->setUnitPrice($items['final_price']);
    to: $lineItem1->setUnitPrice(number_format($items['final_price'], 2, '.', ''));

    Seems to have addressed it. Sorry to have posted this just a few minutes too early!

  2. #2
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    190
    Plugin Contributions
    0

    Default Re: Rounding error

    Hello, when I upgraded to 2.1.0 a while back and reinstalled authorize.net CIM 3.0.3, there are no longer the option to charge customers for any changes to their orders, the only button available is Refund.

  3. #3
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Rounding error

    Quote Originally Posted by allmart View Post
    Hello, when I upgraded to 2.1.0 a while back and reinstalled authorize.net CIM 3.0.3, there are no longer the option to charge customers for any changes to their orders, the only button available is Refund.
    there is a configuration to allow to charging more. the key is called:

    MODULE_PAYMENT_AUTHORIZENET_CIM_ALLOW_MORE

    and it should be available on the admin in the configuration for the module.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  4. #4
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    190
    Plugin Contributions
    0

    Default Re: Rounding error

    New Auths (MODULE_PAYMENT_AUTHORIZENET_CIM_ALLOW_MORE) is already set to true

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Rounding error

    Quote Originally Posted by allmart View Post
    New Auths (MODULE_PAYMENT_AUTHORIZENET_CIM_ALLOW_MORE) is already set to true
    well if that is set to true, i'm looking at the code and it states:

    PHP Code:
    $authnet->balance_due && $authnet->status != $this->cancelled_status() && (count($cards) > 0)) 
    which means the order was must have a balance due, and the status of the order is not cancelled, and the customer has at least 1 card on file.

    if one of those criteria is false, then no button.

    it sounds like the customer may not have any cards on file.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    190
    Plugin Contributions
    0

    Default Re: Rounding error

    Quote Originally Posted by carlwhat View Post
    well if that is set to true, i'm looking at the code and it states:

    PHP Code:
    $authnet->balance_due && $authnet->status != $this->cancelled_status() && (count($cards) > 0)) 
    which means the order was must have a balance due, and the status of the order is not cancelled, and the customer has at least 1 card on file.

    if one of those criteria is false, then no button.

    it sounds like the customer may not have any cards on file.
    All the criteria are true, yet the only but available is refund.

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Rounding error

    Quote Originally Posted by allmart View Post
    All the criteria are true, yet the only but available is refund.
    what version of of authorize COF are you running?

    and is the button available on other orders or is it just one order?
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 

Similar Threads

  1. v155 Saving Credit Card Info with Authorize.Net
    By magneto in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 25 Jan 2021, 10:28 PM
  2. v154 Having Issues With Duplicate Transactions in Authorize.net
    By CSGODeimos in forum General Questions
    Replies: 1
    Last Post: 27 Sep 2017, 02:53 PM
  3. v151 Duplicate transactions authorize.net AIM
    By badarac in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 9 Aug 2016, 03:52 PM
  4. Replies: 1
    Last Post: 31 May 2006, 05:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg