Plugin Directory

Changeset 2562886


Ignore:
Timestamp:
07/12/2021 01:44:19 PM (5 years ago)
Author:
reynaldiarya
Message:

Update v2.2.0

Location:
toko-ibest-bank-indonesia-for-woocommerce/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • toko-ibest-bank-indonesia-for-woocommerce/trunk/beipgw.php

    r2560926 r2562886  
    99 * Plugin URI:              https://toko.ibest.id
    1010 * Description:             The WooCommerce Bank and e-Money Indonesia Payment Gateway plugin consists of several collections of banks and e-Money in Indonesia for WooCommerce payments.
    11  * Version:                 2.0.1
     11 * Version:                 2.2.0
    1212 * Author:                  Reynaldi Arya
    1313 * Author URI:              https://ibest.id
    1414 * Domain Path:             /languages
    1515 * Requires at least:       4.1
    16  * Tested up to:            5.7.2
     16 * Tested up to:            5.8.0
    1717 * WC requires at least:    3.0.0
    1818 * WC tested up to:         5.4.1
     
    4646    require_once dirname( __FILE__ ) . '/bank/class-wc-gateway-permata.php';
    4747    require_once dirname( __FILE__ ) . '/bank/class-wc-gateway-ocbc-nisp.php';
     48    require_once dirname( __FILE__ ) . '/bank/class-wc-gateway-muamalat.php';
    4849    require_once dirname( __FILE__ ) . '/e-money/class-wc-gateway-ovo.php';
    4950    require_once dirname( __FILE__ ) . '/e-money/class-wc-gateway-gopay.php';
     
    7071    $methods[] = 'WC_Gateway_Permata';
    7172    $methods[] = 'WC_Gateway_OCBC_NISP';
     73    $methods[] = 'WC_Gateway_Muamalat';
    7274    $methods[] = 'WC_Gateway_GoPay';
    7375    $methods[] = 'WC_Gateway_OVO'; 
     
    8688function pcpgw_add_section( $sections ) {
    8789   
    88     $sections['paymentcode'] = __( 'Kode Pembayaran', 'pcpgw' );
     90    $sections['puc'] = __( 'Kode Pembayaran', 'pcpgw' );
    8991    return $sections;   
    9092}
     
    9496 */
    9597
    96 add_filter( 'woocommerce_get_settings_advanced', 'paymentcode_all_settings', 10, 2 );
    97 function paymentcode_all_settings( $settings, $current_section ) {
     98add_filter( 'woocommerce_get_settings_advanced', 'puc_all_settings', 10, 2 );
     99function puc_all_settings( $settings, $current_section ) {
    98100   
    99101    /**
     
    101103     **/
    102104
    103     if ( $current_section == 'paymentcode' ) {
    104         $settings_paymentcode = array();
     105    if ( $current_section == 'puc' ) {
     106        $settings_puc       = array();
    105107        // Add Title to the Settings
    106         $settings_paymentcode[] = array(
    107             'name' => __( 'Tambahkan Kode Pembayaran Unik', 'pcpgw' ),
    108             'type' => 'title',
    109             'desc' => __( 'Untuk dengan mudah mengonfirmasi pembayaran yang dilakukan oleh pelanggan Anda, Anda dapat menambahkan kode pembayaran 3 digit, yang dibuat secara otomatis, di halaman pembayaran Anda. Jika diaktifkan, kode 3 digit akan meningkatkan total pembayaran.', 'pcpgw' ),
    110             'id'   => 'paymentcode',
     108        $settings_puc[]     = array(
     109            'name'          => __( 'Tambahkan Kode Pembayaran Unik', 'pcpgw' ),
     110            'type'          => 'title',
     111            'desc'          => __( 'Untuk dengan mudah mengonfirmasi pembayaran yang dilakukan oleh pelanggan Anda. Anda dapat menambahkan kode pembayaran 3 digit yang dibuat secara otomatis di halaman pembayaran Anda. Jika diaktifkan, kode 3 digit akan meningkatkan total pembayaran.', 'pcpgw' ),
     112            'id'            => 'puc',
    111113        );
    112114        // Build Text field option
    113         $settings_paymentcode[] = array(
    114             'type'     => 'checkbox',
    115             'id'       => 'woocommerce_paymentcode_enabled',
    116             'name'     => __( 'Enable / Disable', 'pcpgw' ),
    117             'desc'     => __( 'Aktifkan Kode Pembayaran', 'pcpgw' ),
    118             'desc_tip'     => __( 'Anda dapat memilih untuk mengaktifkan atau menonaktifkan kode pembayaran unik kapan saja.', 'pcpgw' ),
    119             'default'  => 'no',
     115        $settings_puc[]     = array(
     116            'name'          => __( 'Enable / Disable', 'pcpgw' ),
     117            'type'          => 'checkbox',
     118            'desc'          => __( 'Aktifkan Kode Pembayaran', 'pcpgw' ),
     119            'desc_tip'      => __( 'Anda dapat memilih untuk mengaktifkan atau menonaktifkan kode pembayaran unik kapan saja.', 'pcpgw' ),
     120            'id'            => 'woocommerce_puc_enabled',
     121            'default'       => 'no',
    120122        );
    121123
    122         $settings_paymentcode[] = array(
    123             'name'     => __( 'Judul Kode Pembayaran', 'pcpgw' ),
    124             'desc'     => __( '<br />Ubah judul default untuk opsi Kode Pembayaran', 'pcpgw' ),
    125             'id'       => 'woocommerce_payment_code_title',
    126             'type'     => 'text',
     124        $settings_puc[]     = array(
     125            'name'          => __( 'Judul Kode Pembayaran', 'pcpgw' ),
     126            'type'          => 'text',
     127            'desc'          => __( 'Ubah judul default untuk opsi Kode Pembayaran', 'pcpgw' ),
     128            'id'            => 'woocommerce_puc_title',
    127129            'placeholder'   => 'Kode Pembayaran',
    128         );     
     130        );
    129131       
    130         $settings_paymentcode[] = array( 'type' => 'sectionend', 'id' => 'paymentcode' );
    131         return $settings_paymentcode;
     132        $settings_puc[] = array(
     133            'name'          => __( 'Angka Minimal', 'pcpgw' ),
     134            'type'          => 'number',
     135            'desc'          => __( 'Jumlah minimal penambahan kode pembayaran', 'pcpgw' ),
     136            'id'            => 'woocommerce_puc_min',
     137            'default'       => '1',
     138        );   
     139        $settings_puc[] = array(
     140            'name'          => __( 'Angka Maksimal', 'pcpgw' ),
     141            'type'          => 'number',
     142            'desc'          => __( 'Jumlah maximal penambahan kode pembayaran', 'pcpgw' ),
     143            'id'            => 'woocommerce_puc_max',
     144            'default'       => '999', 
     145        );
     146       
     147        $settings_puc[] = array( 'type' => 'sectionend', 'id' => 'puc' );
     148        return $settings_puc;
    132149       
    133150    /**
     
    146163 * @return void
    147164 */
    148 if ( 'yes' == get_option( 'woocommerce_paymentcode_enabled' ) ) {   
    149     add_action( 'woocommerce_cart_calculate_fees', 'add_payment_code' );
    150     function add_payment_code(){
     165if ( 'yes' == get_option( 'woocommerce_puc_enabled' ) ) {   
     166    add_action( 'woocommerce_cart_calculate_fees', 'add_puc' );
     167    function add_puc(){
    151168        global $woocommerce;
    152169
    153 $enable = 1; 
     170$enable = 1;
     171$min = get_option('woocommerce_puc_min') ;     
     172$max = get_option('woocommerce_puc_max');   
    154173$title = '';
    155         if(get_option( 'woocommerce_payment_code_title' )){
    156             $title = (get_option( 'woocommerce_payment_code_title' ));
     174        if(get_option( 'woocommerce_puc_title' )){
     175            $title = (get_option( 'woocommerce_puc_title' ));
    157176    }
    158177        else {
     
    162181        if ( $enable == 1 && $woocommerce->cart->subtotal != 0){
    163182            if(! is_cart()){
    164                 $cost = rand(100, 999);
     183                $cost = rand($min, $max);
    165184
    166185                if($cost != 0)
  • toko-ibest-bank-indonesia-for-woocommerce/trunk/readme.txt

    r2560926 r2562886  
    55Tags: woocommerce, bank indonesia, woocommerce payment, indonesian banks, checkout, payment, payment method indonesia, BCA, BNI, Mandiri, BRI, Jenius, bank, bank transfer, payment gateway
    66Requires at least: 4.1
    7 Tested up to: 5.7.2
    8 Stable tag: 2.0.1
     7Tested up to: 5.8.0
     8Stable tag: 2.2.0
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3030* Bank Syariah Indonesia
    3131* Bank Permata
     32* Bank Muamalat
    3233* Jenius
    3334* OVO
     
    3738
    3839== Installation ==
    39 1. Upload the .zip file with the WordPress plugin manager
    40 2. Activate the desired payment methods through WooCommerce settings => Checkout tab
    41 3. Configure the plugin methods as you wish
     401. Upload the .zip file with the WordPress plugin manager and activate the Plugin
     412. Activate the desired payment methods through WooCommerce settings => Payments tab
     423. Enable payment code via WooCommerce settings => Advanced tab => Kode Pembayaran section
     434. Configure the plugin methods as you wish
    4244
    4345== Changelog ==
     46= 2.2.0 - July 12, 2021 =
     47* Add Angka Minimum and Maximum Kode Unik Pembayaran untuk Diacak
     48* Add Bank Muamalat
     49
    4450= 2.0.1 - July 07, 2021 =
    4551* Improve Security
Note: See TracChangeset for help on using the changeset viewer.