Changeset 2799752
- Timestamp:
- 10/17/2022 03:50:03 AM (3 years ago)
- Location:
- toko-ibest-bank-indonesia-for-woocommerce/trunk
- Files:
-
- 2 edited
-
beipgw.php (modified) (10 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
toko-ibest-bank-indonesia-for-woocommerce/trunk/beipgw.php
r2799329 r2799752 1 1 <?php 2 2 // Prevent direct access 3 if ( ! defined( 'ABSPATH' ) ) { 3 if ( ! defined( 'ABSPATH' ) ) { 4 4 exit; // Exit if accessed directly 5 5 } … … 9 9 * Plugin URI: https://wordpress.org/plugins/toko-ibest-bank-indonesia-for-woocommerce 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: 3.0. 112 * Author: Reynaldi Arya11 * Version: 3.0.2 12 * Author: Reynaldi Arya 13 13 * Author URI: https://reynaldiab.com 14 * Requires at least: 4.114 * Requires at least: 4.1 15 15 * Tested up to: 6.0.2 16 * WC requires at least: 3.0.017 * WC tested up to: 7.0.016 * WC requires at least: 3.0.0 17 * WC tested up to: 7.0.0 18 18 * License: GNU General Public License v3.0 19 19 * License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 22 22 add_action( 'plugins_loaded', 'beipgw_init', 0 ); 23 23 add_filter ( 'woocommerce_payment_gateways', 'add_beipgw_gateway' ); 24 add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'beipgw_plugin_action_links' ); 25 26 function beipgw_plugin_action_links( $actions ) { 27 $actions[] = '<a href="'. esc_url( get_admin_url(null, 'admin.php?page=wc-settings&tab=checkout') ) .'">Settings</a>'; 28 $actions[] = '<a href="https://trakteer.id/reynaldiarya/tip" target="_blank" style="color:#3db634;">Donate</a>'; 29 return $actions; 30 }; 24 31 25 32 function beipgw_init() { … … 85 92 $methods[] = 'WC_Gateway_Allo_Bank'; 86 93 $methods[] = 'WC_Gateway_GoPay'; 87 $methods[] = 'WC_Gateway_OVO'; 94 $methods[] = 'WC_Gateway_OVO'; 88 95 $methods[] = 'WC_Gateway_Dana'; 89 96 $methods[] = 'WC_Gateway_LinkAja'; 90 97 $methods[] = 'WC_Gateway_ShopeePay'; 91 98 $methods[] = 'WC_Gateway_QRIS'; 92 99 93 100 return $methods; 94 101 } … … 100 107 add_filter( 'woocommerce_get_sections_advanced', 'pcpgw_add_section' ); 101 108 function pcpgw_add_section( $sections ) { 102 109 103 110 $sections['puc'] = __( 'Kode Pembayaran', 'pcpgw' ); 104 return $sections; 111 return $sections; 105 112 } 106 113 … … 111 118 add_filter( 'woocommerce_get_settings_advanced', 'puc_all_settings', 10, 2 ); 112 119 function puc_all_settings( $settings, $current_section ) { 113 120 114 121 /** 115 122 * Check the current section is what we want … … 142 149 'placeholder' => 'Kode Pembayaran', 143 150 ); 144 151 145 152 $settings_puc[] = array( 146 153 'name' => __( 'Angka Minimal', 'pcpgw' ), … … 149 156 'id' => 'woocommerce_puc_min', 150 157 'default' => '1', 151 ); 158 ); 152 159 $settings_puc[] = array( 153 160 'name' => __( 'Angka Maksimal', 'pcpgw' ), … … 155 162 'desc' => __( 'Jumlah maximal penambahan kode pembayaran', 'pcpgw' ), 156 163 'id' => 'woocommerce_puc_max', 157 'default' => '999', 158 ); 159 164 'default' => '999', 165 ); 166 160 167 $settings_puc[] = array( 'type' => 'sectionend', 'id' => 'puc' ); 161 168 return $settings_puc; 162 169 163 170 /** 164 171 * If not, return the standard settings … … 171 178 /** 172 179 * Register Payment Code Function 173 * 180 * 174 181 * To easily identify customers' payments 175 182 * 176 183 * @return void 177 184 */ 178 if ( 'yes' == get_option( 'woocommerce_puc_enabled' ) ) { 185 if ( 'yes' == get_option( 'woocommerce_puc_enabled' ) ) { 179 186 add_action( 'woocommerce_cart_calculate_fees', 'add_puc' ); 180 187 function add_puc(){ 181 188 global $woocommerce; 182 189 183 $enable = 1; 184 $min = get_option('woocommerce_puc_min') ; 185 $max = get_option('woocommerce_puc_max'); 190 $enable = 1; 191 $min = get_option('woocommerce_puc_min') ; 192 $max = get_option('woocommerce_puc_max'); 186 193 $title = ''; 187 194 if(get_option( 'woocommerce_puc_title' )){ -
toko-ibest-bank-indonesia-for-woocommerce/trunk/readme.txt
r2799329 r2799752 5 5 Requires at least: 4.1 6 6 Tested up to: 6.0.2 7 Stable tag: 3.0. 17 Stable tag: 3.0.2 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 49 49 50 50 == Changelog == 51 = 3.0.2 - October 16, 2022 = 52 * Add Setting and Donate Button 53 51 54 = 3.0.1 - October 16, 2022 = 52 55 * Fixed Bug
Note: See TracChangeset
for help on using the changeset viewer.