Title: Define additional filter
Last modified: October 30, 2025

---

# Define additional filter

 *  Resolved [amanvirk1982](https://wordpress.org/support/users/amanvirk1982/)
 * (@amanvirk1982)
 * [7 months ago](https://wordpress.org/support/topic/define-additional-filter/)
 * We had installed Clover Payments plugin on our website. But the we were not getting
   Invoice # on transation report we were getting from Clover. For that we were 
   to edit the plugin file and define a filter so that we can push additional data
   to the payment charge data.
 * File path: /wp-content/plugins/clover-payments-for-woocommerce/includes/class-
   woo-clv-admin.php
 * I defined filter in the following function.
 *     ```wp-block-code
       private function getChargeData($order,$token) {        // get the ID of the order        $order_id = $order->get_id();        // get Customer Data for the order        $customer_data = $this->get_customer_data($order_id);        $currency = $order->get_currency();        $amount = $order->get_total();        $tax = $order->get_total_tax();        $charge_data = array(            'amount' => $this->converttocents($amount, $currency),            'currency' => strtolower( $currency ),            'source' => $token,            'capture' => $this->ischarge,            'description' => $this->ischarge ? 'Authorize and Capture' : 'Authorize',            'metadata' => array('shopping_cart' => $this->framework_version()),            'customer' => $customer_data,            'tax_amount' => $this->converttocents($tax, $currency),            'skip_default_convenience_fee' => true        );        $charge_data = apply_filters( 'woo_clover_payments_charge_request', $charge_data, $order );        return $charge_data;    }
       ```
   
 * Can you please include the the filter in future release? After that I was able
   to push order id in to the clover payment gateway and invoice # was showing correctly
   in the reports.

Viewing 1 replies (of 1 total)

 *  Thread Starter [amanvirk1982](https://wordpress.org/support/users/amanvirk1982/)
 * (@amanvirk1982)
 * [7 months ago](https://wordpress.org/support/topic/define-additional-filter/#post-18701753)
 * The invoice # issue was resolved in version: 2.3.0

Viewing 1 replies (of 1 total)

The topic ‘Define additional filter’ is closed to new replies.

 * ![](https://ps.w.org/clover-payments-for-woocommerce/assets/icon-256x256.png?
   rev=2729044)
 * [Clover Payments for WooCommerce](https://wordpress.org/plugins/clover-payments-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/clover-payments-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/clover-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/clover-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/clover-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/clover-payments-for-woocommerce/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [amanvirk1982](https://wordpress.org/support/users/amanvirk1982/)
 * Last activity: [7 months ago](https://wordpress.org/support/topic/define-additional-filter/#post-18701753)
 * Status: resolved