Changeset 2853411
- Timestamp:
- 01/24/2023 09:33:44 AM (3 years ago)
- Location:
- cashfree
- Files:
-
- 28 added
- 3 edited
-
tags/4.4.0 (added)
-
tags/4.4.0/LICENSE (added)
-
tags/4.4.0/README.md (added)
-
tags/4.4.0/assets (added)
-
tags/4.4.0/assets/js (added)
-
tags/4.4.0/assets/js/checkout.js (added)
-
tags/4.4.0/cashfree.php (added)
-
tags/4.4.0/dist (added)
-
tags/4.4.0/dist/main.js (added)
-
tags/4.4.0/includes (added)
-
tags/4.4.0/includes/class-wc-cashfree-api.php (added)
-
tags/4.4.0/includes/gateways (added)
-
tags/4.4.0/includes/gateways/class-wc-cashfree-gateway.php (added)
-
tags/4.4.0/includes/gateways/class-wc-cashfree-payments.php (added)
-
tags/4.4.0/includes/http (added)
-
tags/4.4.0/includes/http/class-wc-cashfree-adapter.php (added)
-
tags/4.4.0/includes/request (added)
-
tags/4.4.0/includes/request/class-wc-cashfree-request-billing.php (added)
-
tags/4.4.0/includes/request/class-wc-cashfree-request-checkout.php (added)
-
tags/4.4.0/includes/request/class-wc-cashfree-request-items.php (added)
-
tags/4.4.0/includes/request/class-wc-cashfree-request-shipping.php (added)
-
tags/4.4.0/includes/settings (added)
-
tags/4.4.0/includes/settings/cashfree-payments.php (added)
-
tags/4.4.0/includes/wc-cashfree-functions.php (added)
-
tags/4.4.0/includes/wc-cashfree-scripts.php (added)
-
tags/4.4.0/readme.txt (added)
-
tags/4.4.0/templates (added)
-
tags/4.4.0/templates/payment-fields.php (added)
-
trunk/cashfree.php (modified) (3 diffs)
-
trunk/dist/main.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cashfree/trunk/cashfree.php
r2851092 r2853411 2 2 /** 3 3 * Plugin Name: Cashfree 4 * Version: 4. 3.94 * Version: 4.4.0 5 5 * Plugin URI: https://github.com/cashfree/cashfree-woocommerce 6 6 * Description: Payment gateway plugin by Cashfree Payments for Woocommerce sites. … … 79 79 if ( $this->settings['enabledOffers'] === 'yes' && $this->settings['sandbox'] === 'no') { 80 80 // External Scripts 81 wp_register_script('cf-woocommerce-js', 'https://sdk.cashfree.com/js/widget/ index.js', null, null, true );81 wp_register_script('cf-woocommerce-js', 'https://sdk.cashfree.com/js/widget/1.0.0/cashfree-widget.prod.js', null, null, true ); 82 82 wp_enqueue_script('cf-woocommerce-js'); 83 83 … … 87 87 wp_enqueue_style( 'cf-woocommerce-css' ); 88 88 89 add_filter( ' woocommerce_enqueue_styles', '__return_false' );89 add_filter( 'cf-woocommerce_enqueue_styles', '__return_false' ); 90 90 91 91 global $product; 92 92 $price = $product->get_price(); 93 93 94 echo'<div id="cashfree- offer-widget" data-amount='.$price.' data-appId='.$this->settings['app_id'].' data-isOffers='.$this->settings['offers'].' data-isPayLater='.$this->settings['payLater'].' data-isEmi='.$this->settings['emi'].'></div>';94 echo'<div id="cashfree-widget" data-amount='.$price.' data-appId='.$this->settings['app_id'].' data-isOffers='.$this->settings['offers'].' data-isPayLater='.$this->settings['payLater'].' data-isEmi='.$this->settings['emi'].'></div>'; 95 95 96 96 } -
cashfree/trunk/dist/main.js
r2851092 r2853411 1 const merchantConfig = { 2 id: "cashfree-offer-widget", // id on which widget will load 3 token: "abc", 4 }; 1 window.addEventListener("load", function () { 2 const widgetConfig = {}; 5 3 6 // To initiate Widget7 const cashfree = CF_Offers(); // <merchantId>4 // To initiate Widget 5 const cashfree = CF_Widget(widgetConfig); // <merchantId> 8 6 9 // To call offersWidget by passing Merchant's Config 10 cashfree.offersWidget(merchantConfig); 7 // To call offersWidget by passing Merchant's Config 8 cashfree.load(); 9 }); -
cashfree/trunk/readme.txt
r2851092 r2853411 4 4 Tested up to: 6.0 5 5 Requires PHP: 5.6 6 Stable tag: 4. 3.97 Version: 4. 3.96 Stable tag: 4.4.0 7 Version: 4.4.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 33 33 34 34 == Changelog == 35 36 = 4.4.0 = 37 * Update cashfree payments offer widgets 35 38 36 39 = 4.3.9 =
Note: See TracChangeset
for help on using the changeset viewer.