Plugin Directory

Changeset 2013586


Ignore:
Timestamp:
01/16/2019 05:43:07 PM (7 years ago)
Author:
alloykenya
Message:

Fix WP Travel integration

Location:
pesapal-pay/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • pesapal-pay/trunk/pesapal_pay.php

    r2011807 r2013586  
    33Plugin Name: Pesapal Pay
    44Description: A quick way to integrate pesapal to your website to handle the payment process. All you need to do is set up what parameters to capture from the form and the plugin will do the rest
    5 Version: 3.2.1
     5Version: 3.2.2
    66Author: rixeo
    77Author URI: http://thebunch.co.ke/
     
    1919     * @var string
    2020     */
    21     var $version = '3.2.1';
     21    var $version = '3.2.2';
    2222   
    2323    /**
  • pesapal-pay/trunk/pesapal_pay/addons/pesapal_pay_wp_travel.php

    r2011907 r2013586  
    2424        add_action( 'wp_travel_before_content_start', array( $this, 'after_payment' )  );
    2525        add_action( 'pesapal_pay_process_success_ipn_transaction', array( $this, 'after_ipn' ), 10, 2 );
     26        add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
    2627    }
    2728
     
    141142        }
    142143    }
     144
     145    function enqueue_scripts() {
     146        wp_register_script(
     147            'pp-wp-travel',
     148            pesapal_pay()->plugin_url . 'resources/wp-travel.js',
     149            array( 'jquery' ), '1'
     150        );
     151        wp_enqueue_script( 'pp-wp-travel' );
     152    }
    143153}
    144154PesaPal_Pay_Wp_travel::instance();
  • pesapal-pay/trunk/readme.txt

    r2011807 r2013586  
    55Requires at least: 4.4.0
    66Tested up to: 5.1
    7 Stable tag: 3.2.1
     7Stable tag: 3.2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151
    5252== Changelog ==
     53
     54= 3.2.2 =
     55* Add: WP Travel script to show book button on PesaPal
     56* Fix: WP Travel integration when other gateways are active
    5357
    5458= 3.2.1 =
Note: See TracChangeset for help on using the changeset viewer.