Plugin Directory

Changeset 3108628


Ignore:
Timestamp:
06/27/2024 12:03:32 PM (21 months ago)
Author:
devcashfree
Message:

Update to version 4.7.1

Location:
cashfree
Files:
30 added
3 edited

Legend:

Unmodified
Added
Removed
  • cashfree/trunk/cashfree.php

    r3101786 r3108628  
    22/**
    33 * Plugin Name: Cashfree
    4  * Version: 4.7.0
     4 * Version: 4.7.1
    55 * Plugin URI: https://github.com/cashfree/cashfree-woocommerce
    66 * Description: Payment gateway plugin by Cashfree Payments for Woocommerce sites.
  • cashfree/trunk/includes/request/class-wc-cashfree-request-items.php

    r3041839 r3108628  
    2222        $product = $item->get_product();
    2323
    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        );
    3636    }
    3737}
  • cashfree/trunk/readme.txt

    r3101786 r3108628  
    44Tested up to: 6.5
    55Requires PHP: 5.6
    6 Stable tag: 4.7.0
    7 Version: 4.7.0
     6Stable tag: 4.7.1
     7Version: 4.7.1
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    5050
    5151== Changelog ==
     52
     53= 4.7.1 =
     54* Bug Fix: UTF-8 encoding for `item_name` and `item_description` to ensure proper character encoding.
    5255
    5356= 4.7.0 =
Note: See TracChangeset for help on using the changeset viewer.