Comments

3 comments

  • Official comment
    Avatar
    Clayton Rogers

    Hi Kath,

    Thank you for reaching out. We are adding a fix for this issue in version 2.6.2 due for release in the next day or two. This issue was caused when WooCommerce removed the wc_round_tax_total function from the get_total_tax() method in WC version 3.0.0.

     

    Braintree only accepts tax amounts that are up to the hundredths place such as $1.25 and not $1.256. To resolve until the update you can do the following:

    1. Go to your theme's functions.php file.
    2. add the following code snippet.
        function bwc_round_tax_total( $attribs )
        {
            $attribs [ 'taxAmount' ] = wc_round_tax_total( $attribs [ 'taxAmount' ] );
            return $attribs;
        }
        add_filter( 'braintree_woocommerce_braintree_payment_gateway_order_attributes', 'bwc_round_tax_total', 10, 1 );

     

    Comment actions Permalink
  • Avatar
    Kath Haughton

    Hi,

    There seems to be an issue with tax rounding.

    We're getting "There was an error processing your payment. Reason: Tax amount is an invalid format." on attempting to process payments. The tax_amount parameter has four decimal places.

    Kath

    0
    Comment actions Permalink
  • Avatar
    Kath Haughton

    Hi,

     

    Thanks. That's working again now.

     

    Kath

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk