From a0d622d3550b18e699acfab207737d9d4f1395a9 Mon Sep 17 00:00:00 2001 From: JoseHCalderon <105760917+JoseHCalderon@users.noreply.github.com> Date: Wed, 6 Sep 2023 11:28:38 -0500 Subject: [PATCH] txt_description --- .../plugins/woocommerce/class-fullculqi-wc-process.php | 8 ++++---- includes/class-fullculqi-checkout.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-process.php b/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-process.php index e00418a..c69b552 100644 --- a/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-process.php +++ b/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-process.php @@ -264,7 +264,7 @@ public static function charge( $post_data = [] ) { $args_charges = apply_filters( 'fullculqi/process/charge_args', [ 'amount' => fullculqi_format_total( $order->get_total() ), 'currency_code' => $order->order_currency, - 'description' => substr( str_pad( $desc, 5, '_' ), 0, 80 ), + 'description' => 'Venta desde plugin WooCommece',//substr( str_pad( $desc, 5, '_' ), 0, 80 ), 'capture' => true, //'email' => $order->billing_email, 'email' => $post_data['email'], @@ -279,7 +279,7 @@ public static function charge( $post_data = [] ) { $args_charges = apply_filters( 'fullculqi/process/charge_args', [ 'amount' => fullculqi_format_total( $order->get_total() ), 'currency_code' => $order->order_currency, - 'description' => substr( str_pad( $desc, 5, '_' ), 0, 80 ), + 'description' => 'Venta desde plugin WooCommece',//substr( str_pad( $desc, 5, '_' ), 0, 80 ), 'capture' => true, //'email' => $order->billing_email, 'email' => $post_data['email'], @@ -332,7 +332,7 @@ public static function charge( $post_data = [] ) { $args_charges = apply_filters( 'fullculqi/process/charge_args', [ 'amount' => fullculqi_format_total( $order->get_total() ), 'currency_code' => $order->get_currency(), - 'description' => substr( str_pad( $desc, 5, '_' ), 0, 80 ), + 'description' => 'Venta desde plugin WooCommece',//substr( str_pad( $desc, 5, '_' ), 0, 80 ), 'capture' => true, //'email' => $order->get_billing_email(), 'email' => $post_data['email'], @@ -347,7 +347,7 @@ public static function charge( $post_data = [] ) { $args_charges = apply_filters( 'fullculqi/process/charge_args', [ 'amount' => fullculqi_format_total( $order->get_total() ), 'currency_code' => $order->get_currency(), - 'description' => substr( str_pad( $desc, 5, '_' ), 0, 80 ), + 'description' => 'Venta desde plugin WooCommece',//substr( str_pad( $desc, 5, '_' ), 0, 80 ), 'capture' => true, //'email' => $order->get_billing_email(), 'email' => $post_data['email'], diff --git a/includes/class-fullculqi-checkout.php b/includes/class-fullculqi-checkout.php index 6707231..fe96548 100644 --- a/includes/class-fullculqi-checkout.php +++ b/includes/class-fullculqi-checkout.php @@ -65,7 +65,7 @@ static public function simple($order, $culqi_token, $log) { $args_payment = apply_filters('fullculqi/checkout/simple_args', [ 'amount' => fullculqi_format_total($order->get_total()), 'currency_code' => $order->get_currency(), - 'description' => substr(str_pad(implode(', ', $pnames), 5, '_'), 0, 80), + 'description' => 'Venta desde plugin WooCommece',//substr(str_pad(implode(', ', $pnames), 5, '_'), 0, 80), 'capture' => true, 'email' => $order->get_billing_email(), 'installments' => $installments,