Changeset 3108628
- Timestamp:
- 06/27/2024 12:03:32 PM (21 months ago)
- Location:
- cashfree
- Files:
-
- 30 added
- 3 edited
-
tags/4.7.1 (added)
-
tags/4.7.1/LICENSE (added)
-
tags/4.7.1/README.md (added)
-
tags/4.7.1/assets (added)
-
tags/4.7.1/assets/js (added)
-
tags/4.7.1/assets/js/checkout.js (added)
-
tags/4.7.1/assets/js/index.js (added)
-
tags/4.7.1/cashfree.php (added)
-
tags/4.7.1/dist (added)
-
tags/4.7.1/dist/main.js (added)
-
tags/4.7.1/includes (added)
-
tags/4.7.1/includes/class-wc-cashfree-api.php (added)
-
tags/4.7.1/includes/gateways (added)
-
tags/4.7.1/includes/gateways/class-wc-cashfree-block-support.php (added)
-
tags/4.7.1/includes/gateways/class-wc-cashfree-gateway.php (added)
-
tags/4.7.1/includes/gateways/class-wc-cashfree-payments.php (added)
-
tags/4.7.1/includes/http (added)
-
tags/4.7.1/includes/http/class-wc-cashfree-adapter.php (added)
-
tags/4.7.1/includes/request (added)
-
tags/4.7.1/includes/request/class-wc-cashfree-request-billing.php (added)
-
tags/4.7.1/includes/request/class-wc-cashfree-request-checkout.php (added)
-
tags/4.7.1/includes/request/class-wc-cashfree-request-items.php (added)
-
tags/4.7.1/includes/request/class-wc-cashfree-request-shipping.php (added)
-
tags/4.7.1/includes/settings (added)
-
tags/4.7.1/includes/settings/cashfree-payments.php (added)
-
tags/4.7.1/includes/wc-cashfree-functions.php (added)
-
tags/4.7.1/includes/wc-cashfree-scripts.php (added)
-
tags/4.7.1/readme.txt (added)
-
tags/4.7.1/templates (added)
-
tags/4.7.1/templates/payment-fields.php (added)
-
trunk/cashfree.php (modified) (1 diff)
-
trunk/includes/request/class-wc-cashfree-request-items.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cashfree/trunk/cashfree.php
r3101786 r3108628 2 2 /** 3 3 * Plugin Name: Cashfree 4 * Version: 4.7. 04 * Version: 4.7.1 5 5 * Plugin URI: https://github.com/cashfree/cashfree-woocommerce 6 6 * Description: Payment gateway plugin by Cashfree Payments for Woocommerce sites. -
cashfree/trunk/includes/request/class-wc-cashfree-request-items.php
r3041839 r3108628 22 22 $product = $item->get_product(); 23 23 24 return array(25 'item_id'=> substr( $item->get_variation_id() ? $item->get_variation_id() : $item->get_product_id(), 0, 254 ),26 'item_name' => substr( $item->get_name(), 0, 254),27 'item_description' => substr( $product->get_description(), 0, 499),28 "tags"=> [],29 'item_details_url' => get_permalink( $item->get_product_id() ),30 'item_image_url' => (string) wp_get_attachment_image_url( $product->get_image_id(), 'full' ),31 'item_original_unit_price'=> $product->get_regular_price() ? $product->get_regular_price() : 0,32 'item_discounted_unit_price'=> $product->get_price() ? $product->get_price() : 0,33 'item_quantity'=> $item->get_quantity(),34 'item_currency'=> $order->get_currency()35 );24 return array( 25 'item_id' => substr( $item->get_variation_id() ? $item->get_variation_id() : $item->get_product_id(), 0, 254 ), 26 'item_name' => mb_convert_encoding(substr( $item->get_name(), 0, 254 ), 'UTF-8', 'UTF-8'), 27 'item_description' => mb_convert_encoding(substr( $product->get_description(), 0, 499 ), 'UTF-8', 'UTF-8'), 28 "tags" => [], 29 'item_details_url' => get_permalink( $item->get_product_id() ), 30 'item_image_url' => (string) wp_get_attachment_image_url( $product->get_image_id(), 'full' ), 31 'item_original_unit_price' => $product->get_regular_price() ? $product->get_regular_price() : 0, 32 'item_discounted_unit_price'=> $product->get_price() ? $product->get_price() : 0, 33 'item_quantity' => $item->get_quantity(), 34 'item_currency' => $order->get_currency() 35 ); 36 36 } 37 37 } -
cashfree/trunk/readme.txt
r3101786 r3108628 4 4 Tested up to: 6.5 5 5 Requires PHP: 5.6 6 Stable tag: 4.7. 07 Version: 4.7. 06 Stable tag: 4.7.1 7 Version: 4.7.1 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 50 50 51 51 == Changelog == 52 53 = 4.7.1 = 54 * Bug Fix: UTF-8 encoding for `item_name` and `item_description` to ensure proper character encoding. 52 55 53 56 = 4.7.0 =
Note: See TracChangeset
for help on using the changeset viewer.