• Resolved Tim

    (@timstl)


    Hello,

    I would like to modify the order description that is sent to Authorize.net. Under Authorize.net’s Transaction Detail there is an Order Information section which contains a “Description” field.

    I think in the class AuthorizeNetTransaction this is set here:

    $this->order->description = "";

    I’m having trouble determining if there is any opportunity for me to change this value. Any help you can provide is appreciated.

    Thanks,

    Tim

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nazrulhassanmca

    (@nazrulhassanmca)

    Description is sent to authorize.net via following line on plugin file.

    $customer->description = get_bloginfo('blogname').' Order #'.$wc_order->get_order_number();

    You can do so via a hook in functions.php by following code

    
    function theme_modify_authnet_customer_data( $customer, $order ) {
        
        $customer->description = 'NEW DESCRIPTION';
        return $customer;
    }
    add_filter( 'woocommerce_authorizenet_customer_object', 'theme_modify_authnet_customer_data', 10, 2 );
    
    

    or see this thread

    Thread Starter Tim

    (@timstl)

    Thanks! Sorry for the re-post, I misunderstood that thread the first time I read it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Order Information -> Description’ is closed to new replies.