Plugin Directory

Changeset 2853411


Ignore:
Timestamp:
01/24/2023 09:33:44 AM (3 years ago)
Author:
devcashfree
Message:

Update to version 4.4.0

Location:
cashfree
Files:
28 added
3 edited

Legend:

Unmodified
Added
Removed
  • cashfree/trunk/cashfree.php

    r2851092 r2853411  
    22/**
    33 * Plugin Name: Cashfree
    4  * Version: 4.3.9
     4 * Version: 4.4.0
    55 * Plugin URI: https://github.com/cashfree/cashfree-woocommerce
    66 * Description: Payment gateway plugin by Cashfree Payments for Woocommerce sites.
     
    7979        if ( $this->settings['enabledOffers'] === 'yes' && $this->settings['sandbox'] === 'no') {
    8080            // 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 );
    8282            wp_enqueue_script('cf-woocommerce-js');
    8383
     
    8787            wp_enqueue_style( 'cf-woocommerce-css' );
    8888           
    89             add_filter( 'woocommerce_enqueue_styles', '__return_false' );
     89            add_filter( 'cf-woocommerce_enqueue_styles', '__return_false' );
    9090       
    9191            global $product;
    9292            $price = $product->get_price();
    9393
    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>';
    9595           
    9696        }
  • 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 };
     1window.addEventListener("load", function () {
     2  const widgetConfig = {};
    53
    6 // To initiate Widget
    7 const cashfree = CF_Offers(); // <merchantId>
     4  // To initiate Widget
     5  const cashfree = CF_Widget(widgetConfig); // <merchantId>
    86
    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  
    44Tested up to: 6.0
    55Requires PHP: 5.6
    6 Stable tag: 4.3.9
    7 Version: 4.3.9
     6Stable tag: 4.4.0
     7Version: 4.4.0
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3333
    3434== Changelog ==
     35
     36= 4.4.0 =
     37* Update cashfree payments offer widgets
    3538
    3639= 4.3.9 =
Note: See TracChangeset for help on using the changeset viewer.