Changeset 2562886
- Timestamp:
- 07/12/2021 01:44:19 PM (5 years ago)
- Location:
- toko-ibest-bank-indonesia-for-woocommerce/trunk
- Files:
-
- 2 added
- 2 edited
-
bank/assets/logo-muamalat.png (added)
-
bank/class-wc-gateway-muamalat.php (added)
-
beipgw.php (modified) (8 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
toko-ibest-bank-indonesia-for-woocommerce/trunk/beipgw.php
r2560926 r2562886 9 9 * Plugin URI: https://toko.ibest.id 10 10 * 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.111 * Version: 2.2.0 12 12 * Author: Reynaldi Arya 13 13 * Author URI: https://ibest.id 14 14 * Domain Path: /languages 15 15 * Requires at least: 4.1 16 * Tested up to: 5. 7.216 * Tested up to: 5.8.0 17 17 * WC requires at least: 3.0.0 18 18 * WC tested up to: 5.4.1 … … 46 46 require_once dirname( __FILE__ ) . '/bank/class-wc-gateway-permata.php'; 47 47 require_once dirname( __FILE__ ) . '/bank/class-wc-gateway-ocbc-nisp.php'; 48 require_once dirname( __FILE__ ) . '/bank/class-wc-gateway-muamalat.php'; 48 49 require_once dirname( __FILE__ ) . '/e-money/class-wc-gateway-ovo.php'; 49 50 require_once dirname( __FILE__ ) . '/e-money/class-wc-gateway-gopay.php'; … … 70 71 $methods[] = 'WC_Gateway_Permata'; 71 72 $methods[] = 'WC_Gateway_OCBC_NISP'; 73 $methods[] = 'WC_Gateway_Muamalat'; 72 74 $methods[] = 'WC_Gateway_GoPay'; 73 75 $methods[] = 'WC_Gateway_OVO'; … … 86 88 function pcpgw_add_section( $sections ) { 87 89 88 $sections['p aymentcode'] = __( 'Kode Pembayaran', 'pcpgw' );90 $sections['puc'] = __( 'Kode Pembayaran', 'pcpgw' ); 89 91 return $sections; 90 92 } … … 94 96 */ 95 97 96 add_filter( 'woocommerce_get_settings_advanced', 'p aymentcode_all_settings', 10, 2 );97 function p aymentcode_all_settings( $settings, $current_section ) {98 add_filter( 'woocommerce_get_settings_advanced', 'puc_all_settings', 10, 2 ); 99 function puc_all_settings( $settings, $current_section ) { 98 100 99 101 /** … … 101 103 **/ 102 104 103 if ( $current_section == 'p aymentcode' ) {104 $settings_p aymentcode= array();105 if ( $current_section == 'puc' ) { 106 $settings_puc = array(); 105 107 // Add Title to the Settings 106 $settings_p aymentcode[]= 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', 111 113 ); 112 114 // Build Text field option 113 $settings_p aymentcode[]= 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', 120 122 ); 121 123 122 $settings_p aymentcode[]= 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', 127 129 'placeholder' => 'Kode Pembayaran', 128 ); 130 ); 129 131 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; 132 149 133 150 /** … … 146 163 * @return void 147 164 */ 148 if ( 'yes' == get_option( 'woocommerce_p aymentcode_enabled' ) ) {149 add_action( 'woocommerce_cart_calculate_fees', 'add_p ayment_code' );150 function add_p ayment_code(){165 if ( 'yes' == get_option( 'woocommerce_puc_enabled' ) ) { 166 add_action( 'woocommerce_cart_calculate_fees', 'add_puc' ); 167 function add_puc(){ 151 168 global $woocommerce; 152 169 153 $enable = 1; 170 $enable = 1; 171 $min = get_option('woocommerce_puc_min') ; 172 $max = get_option('woocommerce_puc_max'); 154 173 $title = ''; 155 if(get_option( 'woocommerce_p ayment_code_title' )){156 $title = (get_option( 'woocommerce_p ayment_code_title' ));174 if(get_option( 'woocommerce_puc_title' )){ 175 $title = (get_option( 'woocommerce_puc_title' )); 157 176 } 158 177 else { … … 162 181 if ( $enable == 1 && $woocommerce->cart->subtotal != 0){ 163 182 if(! is_cart()){ 164 $cost = rand( 100, 999);183 $cost = rand($min, $max); 165 184 166 185 if($cost != 0) -
toko-ibest-bank-indonesia-for-woocommerce/trunk/readme.txt
r2560926 r2562886 5 5 Tags: woocommerce, bank indonesia, woocommerce payment, indonesian banks, checkout, payment, payment method indonesia, BCA, BNI, Mandiri, BRI, Jenius, bank, bank transfer, payment gateway 6 6 Requires at least: 4.1 7 Tested up to: 5. 7.28 Stable tag: 2. 0.17 Tested up to: 5.8.0 8 Stable tag: 2.2.0 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 30 30 * Bank Syariah Indonesia 31 31 * Bank Permata 32 * Bank Muamalat 32 33 * Jenius 33 34 * OVO … … 37 38 38 39 == 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 40 1. Upload the .zip file with the WordPress plugin manager and activate the Plugin 41 2. Activate the desired payment methods through WooCommerce settings => Payments tab 42 3. Enable payment code via WooCommerce settings => Advanced tab => Kode Pembayaran section 43 4. Configure the plugin methods as you wish 42 44 43 45 == Changelog == 46 = 2.2.0 - July 12, 2021 = 47 * Add Angka Minimum and Maximum Kode Unik Pembayaran untuk Diacak 48 * Add Bank Muamalat 49 44 50 = 2.0.1 - July 07, 2021 = 45 51 * Improve Security
Note: See TracChangeset
for help on using the changeset viewer.