Changeset 3201790
- Timestamp:
- 12/03/2024 02:56:07 PM (16 months ago)
- Location:
- cashfree
- Files:
-
- 30 added
- 4 edited
-
tags/4.7.7 (added)
-
tags/4.7.7/LICENSE (added)
-
tags/4.7.7/README.md (added)
-
tags/4.7.7/assets (added)
-
tags/4.7.7/assets/js (added)
-
tags/4.7.7/assets/js/checkout.js (added)
-
tags/4.7.7/assets/js/index.js (added)
-
tags/4.7.7/cashfree.php (added)
-
tags/4.7.7/dist (added)
-
tags/4.7.7/dist/main.js (added)
-
tags/4.7.7/includes (added)
-
tags/4.7.7/includes/class-wc-cashfree-api.php (added)
-
tags/4.7.7/includes/gateways (added)
-
tags/4.7.7/includes/gateways/class-wc-cashfree-block-support.php (added)
-
tags/4.7.7/includes/gateways/class-wc-cashfree-gateway.php (added)
-
tags/4.7.7/includes/gateways/class-wc-cashfree-payments.php (added)
-
tags/4.7.7/includes/http (added)
-
tags/4.7.7/includes/http/class-wc-cashfree-adapter.php (added)
-
tags/4.7.7/includes/request (added)
-
tags/4.7.7/includes/request/class-wc-cashfree-request-billing.php (added)
-
tags/4.7.7/includes/request/class-wc-cashfree-request-checkout.php (added)
-
tags/4.7.7/includes/request/class-wc-cashfree-request-items.php (added)
-
tags/4.7.7/includes/request/class-wc-cashfree-request-shipping.php (added)
-
tags/4.7.7/includes/settings (added)
-
tags/4.7.7/includes/settings/cashfree-payments.php (added)
-
tags/4.7.7/includes/wc-cashfree-functions.php (added)
-
tags/4.7.7/includes/wc-cashfree-scripts.php (added)
-
tags/4.7.7/readme.txt (added)
-
tags/4.7.7/templates (added)
-
tags/4.7.7/templates/payment-fields.php (added)
-
trunk/cashfree.php (modified) (1 diff)
-
trunk/includes/request/class-wc-cashfree-request-checkout.php (modified) (2 diffs)
-
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
r3200507 r3201790 2 2 /** 3 3 * Plugin Name: Cashfree 4 * Version: 4.7. 64 * Version: 4.7.7 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-checkout.php
r3200279 r3201790 71 71 ) 72 72 ); 73 73 74 return $data; 74 }75 76 private static function get_valid_cart_items( $order ) {77 $filtered_items = array_filter(78 $order->get_items(),79 function( $item ) {80 return $item->get_product(); // Only include valid products81 }82 );83 84 return array_map(85 function( $item ) use ( $order ) {86 return WC_Cashfree_Request_Item::build( $order, $item );87 },88 $filtered_items89 );90 75 } 91 76 … … 195 180 196 181 public static function cfConvertToNumber($input) { 197 return (float) str_replace(',', '', $input); 182 $amount = (float) str_replace(',', '', $input); 183 $amount = number_format($amount, 2, '.', ''); 184 return $amount; 198 185 } 199 186 } -
cashfree/trunk/includes/request/class-wc-cashfree-request-items.php
r3200279 r3201790 28 28 29 29 public static function cfConvertToNumber($input) { 30 return (float) str_replace(',', '', $input); 30 $amount = (float) str_replace(',', '', $input); 31 $amount = number_format($amount, 2, '.', ''); 32 return $amount; 31 33 } 32 34 } -
cashfree/trunk/readme.txt
r3200507 r3201790 4 4 Tested up to: 6.5 5 5 Requires PHP: 5.6 6 Stable tag: 4.7. 67 Version: 4.7. 66 Stable tag: 4.7.7 7 Version: 4.7.7 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.6 = 54 * Release: Add support for Tourfic plugin for hotel, tour, and apartment bookings. 52 55 53 56 = 4.7.4 =
Note: See TracChangeset
for help on using the changeset viewer.