Plugin Directory

Changeset 2210554


Ignore:
Timestamp:
12/12/2019 05:51:52 AM (6 years ago)
Author:
idsbdigital
Message:

update to 1.8

Location:
idpay/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • idpay/trunk/index.php

    r2197018 r2210554  
    55 * Plugin URI: https://idpay.my
    66 * Description: Enable payment by salary deduction. Currently IDPay service is only available for customer that working as government servants in Malaysia.
    7  * Version: 1.7
     7 * Version: 1.8
    88 * Author: IDSB Digital Sdn. Bhd.
    99 * Author URI: https://idsb.my
     
    6767
    6868        function init_form_fields() {
     69           
     70            $min     = 2;
     71            $max     = 60;
     72            $tenures = array();
     73            $tenure  = $min;
     74            $tenor   = $min - 1;
     75
     76            while( true ) {
     77                $tenor++;
     78                $tenures = array_merge( $tenures, array( $tenor => $tenor . ' Months'));
     79
     80                if( $tenor == $max )
     81                    break;
     82            }
    6983
    7084            $this->form_fields = array(
     
    120134                    'default' => '',
    121135                    'desc_tip' => true,
    122                     'options' => array(
    123                         '3' => '3 Months',
    124                         '6' => '6 Months',
    125                         '9' => '9 Months',
    126                         '12' => '12 Months',
    127                         '24' => '24 Months',
    128                         '36' => '36 Months',
    129                     )
     136                    'options' => $tenures,
    130137                ),
    131138                'api_response' => array(
  • idpay/trunk/readme.txt

    r2197018 r2210554  
    44Requires at least: 2.4
    55Tested up to: 5.2
    6 Stable tag: 1.7
     6Stable tag: 1.8
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3030== Changelog ==
    3131
     32= 1.8 =
     33* add minimum and maximum range of tenures
     34
    3235= 1.7 =
    3336* fix select2 to load in idpay setting
Note: See TracChangeset for help on using the changeset viewer.