Changeset 3427499
- Timestamp:
- 12/26/2025 12:53:04 AM (8 weeks ago)
- Location:
- bangladeshi-payment-gateways
- Files:
-
- 46 edited
- 1 copied
-
tags/3.0.5 (copied) (copied from bangladeshi-payment-gateways/trunk)
-
tags/3.0.5/assets/admin/css/admin.css (modified) (1 diff)
-
tags/3.0.5/assets/public/css/bdpg-public.css (modified) (1 diff)
-
tags/3.0.5/assets/public/js/bdpg-public.js (modified) (1 diff)
-
tags/3.0.5/bd-payment-gateways.php (modified) (4 diffs)
-
tags/3.0.5/composer.json (modified) (1 diff)
-
tags/3.0.5/includes/Activate.php (modified) (1 diff)
-
tags/3.0.5/includes/Assets_Manager.php (modified) (2 diffs)
-
tags/3.0.5/includes/BDPG_Gateway.php (modified) (26 diffs)
-
tags/3.0.5/includes/Gateways/Bkash.php (modified) (1 diff)
-
tags/3.0.5/includes/Gateways/Nagad.php (modified) (1 diff)
-
tags/3.0.5/includes/Gateways/Rocket.php (modified) (1 diff)
-
tags/3.0.5/includes/Gateways/Upay.php (modified) (1 diff)
-
tags/3.0.5/includes/Review.php (modified) (1 diff)
-
tags/3.0.5/includes/functions.php (modified) (2 diffs)
-
tags/3.0.5/languages/Bangladeshi-Payment-Gateways.pot (modified) (8 diffs)
-
tags/3.0.5/readme.txt (modified) (2 diffs)
-
tags/3.0.5/vendor/appsero/client/src/Insights.php (modified) (2 diffs)
-
tags/3.0.5/vendor/autoload.php (modified) (1 diff)
-
tags/3.0.5/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
tags/3.0.5/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/3.0.5/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/3.0.5/vendor/composer/installed.json (modified) (2 diffs)
-
tags/3.0.5/vendor/composer/installed.php (modified) (3 diffs)
-
trunk/assets/admin/css/admin.css (modified) (1 diff)
-
trunk/assets/public/css/bdpg-public.css (modified) (1 diff)
-
trunk/assets/public/js/bdpg-public.js (modified) (1 diff)
-
trunk/bd-payment-gateways.php (modified) (4 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/includes/Activate.php (modified) (1 diff)
-
trunk/includes/Assets_Manager.php (modified) (2 diffs)
-
trunk/includes/BDPG_Gateway.php (modified) (26 diffs)
-
trunk/includes/Gateways/Bkash.php (modified) (1 diff)
-
trunk/includes/Gateways/Nagad.php (modified) (1 diff)
-
trunk/includes/Gateways/Rocket.php (modified) (1 diff)
-
trunk/includes/Gateways/Upay.php (modified) (1 diff)
-
trunk/includes/Review.php (modified) (1 diff)
-
trunk/includes/functions.php (modified) (2 diffs)
-
trunk/languages/Bangladeshi-Payment-Gateways.pot (modified) (8 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/appsero/client/src/Insights.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bangladeshi-payment-gateways/tags/3.0.5/assets/admin/css/admin.css
r3133395 r3427499 1 1 #gateway_accounts img { 2 width: 50px;3 height: 50px;2 width: 50px; 3 height: 50px; 4 4 } 5 5 6 6 #gateway_accounts .add_qr_c_img { 7 margin: 10px;7 margin: 10px; 8 8 } 9 9 10 10 .bdpg-admin-data img { 11 width: 70px;11 width: 70px; 12 12 } -
bangladeshi-payment-gateways/tags/3.0.5/assets/public/css/bdpg-public.css
r2562695 r3427499 1 1 .bdpg-total-amount { 2 margin: 10px 0;3 color: green;2 margin: 10px 0; 3 color: green; 4 4 } 5 5 6 6 .bdpg-s__acc { 7 overflow: hidden;8 padding: 10px 0;9 border-bottom: 1px solid #ddd;7 overflow: hidden; 8 padding: 10px 0; 9 border-bottom: 1px solid #ddd; 10 10 } 11 11 12 12 .bdpg-acc__qr-code { 13 height: 130px;14 width: 150px;15 margin: 0 auto;16 margin-bottom: 10px;13 height: 130px; 14 width: 150px; 15 margin: 0 auto; 16 margin-bottom: 10px; 17 17 } 18 18 19 19 .bdpg-acc__qr-code img { 20 width: 100% !important;21 height: 100% !important;22 max-height: 100% !important;23 float: none !important;20 width: 100% !important; 21 height: 100% !important; 22 max-height: 100% !important; 23 float: none !important; 24 24 } 25 25 26 26 .bdpg-user__acc { 27 margin: 10px 0;27 margin: 10px 0; 28 28 } 29 29 30 30 .bdpg-user__field { 31 margin-bottom: 10px;31 margin-bottom: 10px; 32 32 } 33 33 .bdpg-user__field label { 34 display: block;34 display: block; 35 35 36 36 } 37 37 38 38 .bdpg-user__field input[type="text"] { 39 margin-top: 5px;40 border: 1px solid #ddd;41 background: #fff;42 padding: 5px 15px;39 margin-top: 5px; 40 border: 1px solid #ddd; 41 background: #fff; 42 padding: 5px 15px; 43 43 } 44 44 45 45 .bdpg-g-details img { 46 width: 50px;47 height: 50px;48 margin-bottom: 10px;46 width: 50px; 47 height: 50px; 48 margin-bottom: 10px; 49 49 } 50 50 51 51 .wc_payment_methods li label img { 52 height: 30px !important;53 float: right;52 height: 30px !important; 53 float: right; 54 54 } -
bangladeshi-payment-gateways/tags/3.0.5/assets/public/js/bdpg-public.js
r2853163 r3427499 7 7 */ 8 8 9 jQuery(document).ready( 10 function ($) { 11 $(document.body).on( 12 'change', 'input[name="payment_method"]', function () { 13 $('body').trigger('update_checkout'); 14 } 15 ); 16 } 9 jQuery( document ).ready( 10 function ($) { 11 $( document.body ).on( 12 'change', 13 'input[name="payment_method"]', 14 function () { 15 $( 'body' ).trigger( 'update_checkout' ); 16 } 17 ); 18 } 17 19 ); -
bangladeshi-payment-gateways/tags/3.0.5/bd-payment-gateways.php
r3283342 r3427499 10 10 * Plugin URI: https://ultradevs.com/products/wp-plugin/bangladeshi-payment-gateways/ 11 11 * Description: Bangladeshi Payment Gateways for WooCommerce. 12 * Version: 3.0. 412 * Version: 3.0.5 13 13 * Author: ultraDevs 14 14 * Author URI: https://ultradevs.com … … 23 23 24 24 // Constant. 25 define( 'BD_PAYMENT_GATEWAYS_VERSION', '3.0. 4' );25 define( 'BD_PAYMENT_GATEWAYS_VERSION', '3.0.5' ); 26 26 define( 'BD_PAYMENT_GATEWAYS_NAME', 'Bangladeshi Payment Gateways' ); 27 27 define( 'BD_PAYMENT_GATEWAYS_DIR_PATH', plugin_dir_path( __FILE__ ) ); … … 83 83 private function __construct() { 84 84 85 add_action( 'init', array( $this, 'load_text_domain' ) ); 86 87 add_action( 'plugins_loaded', array( $this, 'init' ) ); 85 // Load text domain on plugins_loaded (priority 0) before init(). 86 add_action( 'plugins_loaded', array( $this, 'load_text_domain' ), 0 ); 87 88 add_action( 'plugins_loaded', array( $this, 'init' ), 1 ); 88 89 89 90 register_activation_hook( __FILE__, array( $this, 'activate' ) ); 90 91 91 92 do_action( 'bd_payment_gateways_loaded' ); 92 93 93 } 94 94 … … 235 235 236 236 return $links; 237 238 237 } 239 238 -
bangladeshi-payment-gateways/tags/3.0.5/composer.json
r3283342 r3427499 1 1 { 2 "name": "ultradevs/bangladeshi-payment-gateways",3 "description": "Bangladeshi Payment Gateways",4 "authors": [5 {6 "name": "mhimon",7 "email": "[email protected]"8 }9 ],10 "minimum-stability": "dev",11 "autoload": {12 "psr-4": {13 "ultraDevs\\BDPG\\": "includes/"14 },15 "files": [16 "includes/functions.php"17 ]18 },19 "require": {20 "appsero/client": "dev-develop"21 }2 "name": "ultradevs/bangladeshi-payment-gateways", 3 "description": "Bangladeshi Payment Gateways", 4 "authors": [ 5 { 6 "name": "mhimon", 7 "email": "[email protected]" 8 } 9 ], 10 "minimum-stability": "dev", 11 "autoload": { 12 "psr-4": { 13 "ultraDevs\\BDPG\\": "includes/" 14 }, 15 "files": [ 16 "includes/functions.php" 17 ] 18 }, 19 "require": { 20 "appsero/client": "dev-develop" 21 } 22 22 } -
bangladeshi-payment-gateways/tags/3.0.5/includes/Activate.php
r2562695 r3427499 28 28 29 29 $this->plugin_data(); 30 31 30 } 32 31 -
bangladeshi-payment-gateways/tags/3.0.5/includes/Assets_Manager.php
r2562695 r3427499 34 34 wp_enqueue_media(); 35 35 } 36 37 36 } 38 37 … … 46 45 wp_enqueue_style( 'bdpg-frontend', BD_PAYMENT_GATEWAYS_ASSETS . 'public/css/bdpg-public.css', '', BD_PAYMENT_GATEWAYS_VERSION ); 47 46 wp_enqueue_script( 'bdpg-frontend', BD_PAYMENT_GATEWAYS_ASSETS . 'public/js/bdpg-public.js', array( 'jquery' ), BD_PAYMENT_GATEWAYS_VERSION, false ); 48 49 47 } 50 48 } -
bangladeshi-payment-gateways/tags/3.0.5/includes/BDPG_Gateway.php
r3283342 r3427499 90 90 $this->icon = apply_filters( 'bdpg_' . $this->gateway . '_icon', BD_PAYMENT_GATEWAYS_DIR_URL . 'assets/images/' . ucfirst( $this->gateway ) . '.png' ); 91 91 92 add_action( 'init', function() { 93 $this->init_gateway_titles(); 94 $this->init_form_fields(); 95 } ); 96 92 // Initialize gateway titles and form fields BEFORE loading settings. 93 $this->init_gateway_titles(); 94 $this->init_form_fields(); 97 95 98 96 // Load the Settings. 99 97 $this->init_settings(); 100 98 101 $this->title = $this->get_option( 'title' );102 $this->description = $this->get_option( 'description' );103 $this->enabled = $this->get_option( 'enabled' );104 $this->instructions = $this->get_option( 'instructions' );99 $this->title = $this->get_option( 'title' ); 100 $this->description = $this->get_option( 'description' ); 101 $this->enabled = $this->get_option( 'enabled' ); 102 $this->instructions = $this->get_option( 'instructions' ); 105 103 $this->gateway_charge = $this->get_option( $this->gateway . '_charge' ); 106 104 $this->gateway_fee = $this->get_option( $this->gateway . '_fee' ); 107 105 $this->gateway_charge_details = $this->get_option( 'gateway_charge_details' ); 108 106 109 $account = array(107 $account = array( 110 108 array( 111 109 'type' => $this->get_option( 'type' ), … … 114 112 ), 115 113 ); 116 $this->accounts = get_option( 'bdpg_' . $this->gateway . '_accounts', [] ); 117 118 119 add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) ); 120 add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'save_accounts' ) ); 114 $this->accounts = get_option( 'bdpg_' . $this->gateway . '_accounts', [] ); 115 116 add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'save_accounts' ), 5 ); 117 add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ), 10 ); 121 118 add_action( 'woocommerce_thankyou_woo_' . $this->gateway, array( $this, 'bdpg_thankyou' ) ); 122 119 add_action( 'woocommerce_email_before_order_table', array( $this, 'customer_email_instructions' ), 10, 3 ); … … 144 141 /* translators: %s: Payment Gateway. */ 145 142 __( '%s Payment Gateway Settings.', 'bangladeshi-payment-gateways' ), 146 $this->gateway143 bdpg_gateway_name_to_title( $this->gateway ) 147 144 ); 148 $this->method_title = sprintf(145 $this->method_title = sprintf( 149 146 /* translators: %s: Payment Gateway. */ 150 147 __( '%s', 'bangladeshi-payment-gateways' ), 151 $this->gateway148 bdpg_gateway_name_to_title( $this->gateway ) 152 149 ); 153 150 } … … 158 155 */ 159 156 public function init_form_fields() { 157 160 158 $this->form_fields = array( 161 'enabled' => array(159 'enabled' => array( 162 160 'title' => __( 'Enable/Disable', 'bangladeshi-payment-gateways' ), 163 161 'label' => sprintf( 164 162 /* translators: %s: Payment Gateway. */ 165 163 __( 'Enable %s Gateway', 'bangladeshi-payment-gateways' ), 166 $this->gateway164 bdpg_gateway_name_to_title( $this->gateway ) 167 165 ), 168 166 'type' => 'checkbox', … … 170 168 'default' => 'no', 171 169 ), 172 'title' => array(170 'title' => array( 173 171 'title' => __( 'Title', 'bangladeshi-payment-gateways' ), 174 172 'type' => 'text', 175 'default' => $this->gateway,173 'default' => bdpg_gateway_name_to_title( $this->gateway ), 176 174 'description' => __( 'Title', 'bangladeshi-payment-gateways' ), 177 175 'desc_tip' => true, 178 176 ), 179 'description' => array( 180 'title' => __( 'Description', 'bangladeshi-payment-gateways' ), 181 'default' => bdpg_get_instruction_by_gateway( $this->gateway ), 182 'type' => 'textarea', 177 'description' => array( 178 'title' => __( 'Description', 'bangladeshi-payment-gateways' ), 179 'type' => 'textarea', 180 'description' => __( 'Description', 'bangladeshi-payment-gateways' ), 181 'desc_tip' => true, 182 'default' => bdpg_get_instruction_by_gateway( $this->gateway ), 183 183 ), 184 184 $this->gateway . '_charge' => array( … … 186 186 /* translators: %s: Payment Gateway. */ 187 187 __( '%s Charge?', 'bangladeshi-payment-gateways' ), 188 $this->gateway188 bdpg_gateway_name_to_title( $this->gateway ) 189 189 ), 190 190 'type' => 'checkbox', … … 192 192 /* translators: %s: Payment Gateway. */ 193 193 __( 'Add %s <b>Send Money</b> charge?', 'bangladeshi-payment-gateways' ), 194 $this->gateway194 bdpg_gateway_name_to_title( $this->gateway ) 195 195 ), 196 196 'default' => 'no', … … 201 201 /* translators: %s: Payment Gateway. */ 202 202 __( '%s Fee', 'bangladeshi-payment-gateways' ), 203 $this->gateway203 bdpg_gateway_name_to_title( $this->gateway ) 204 204 ), 205 205 'type' => 'text', … … 212 212 /* translators: %s: Payment Gateway. */ 213 213 __( '%s Charge Details', 'bangladeshi-payment-gateways' ), 214 $this->gateway214 bdpg_gateway_name_to_title( $this->gateway ) 215 215 ), 216 216 'type' => 'textarea', … … 218 218 /* translators: %s: Payment Gateway. */ 219 219 __( '%s "Send Money" fee will be added with net price.', 'bangladeshi-payment-gateways' ), 220 $this->gateway221 ) 222 ), 223 224 'instructions' => array(220 bdpg_gateway_name_to_title( $this->gateway ) 221 ), 222 ), 223 224 'instructions' => array( 225 225 'title' => __( 'Instructions', 'bangladeshi-payment-gateways' ), 226 226 'type' => 'textarea', 227 227 'description' => __( 'Instructions', 'bangladeshi-payment-gateways' ), 228 'default' => '' 229 ), 230 'accounts' => array(228 'default' => '', 229 ), 230 'accounts' => array( 231 231 'type' => 'accounts', 232 232 ), 233 233 ); 234 235 234 } 236 235 … … 244 243 echo wpautop( wptexturize( __( $this->description, 'bangladeshi-payment-gateways' ) ) . ' ' . $gateway_charge_details ); 245 244 246 $total_payment = $woocommerce->cart->total;247 $symbol = get_woocommerce_currency_symbol();248 if ( get_woocommerce_currency() === 'USD' ) {245 $total_payment = $woocommerce->cart->total; 246 $symbol = get_woocommerce_currency_symbol(); 247 if ( get_woocommerce_currency() === 'USD' ) { 249 248 $total_payment = $this->dollar_rate * $woocommerce->cart->total; 250 $symbol = get_woocommerce_currency_symbol( 'BDT');249 $symbol = get_woocommerce_currency_symbol( 'BDT' ); 251 250 } 252 251 … … 284 283 <label for="<?php echo esc_attr( $this->gateway ); ?>_acc_no"> 285 284 <?php 286 echo sprintf(285 printf( 287 286 /* translators: %s: Payment Gateway. */ 288 287 __( 'Your %s Account Number', 'bangladeshi-payment-gateways' ), 289 ucfirst( $this->gateway )288 bdpg_gateway_name_to_title( $this->gateway ) 290 289 ); 291 290 ?> … … 296 295 <label for="<?php echo esc_attr( $this->gateway ); ?>_trans_id"> 297 296 <?php 298 echo sprintf(297 printf( 299 298 /* translators: %s: Payment Gateway. */ 300 299 __( 'Your %s Transaction ID', 'bangladeshi-payment-gateways' ), 301 ucfirst( $this->gateway )300 bdpg_gateway_name_to_title( $this->gateway ) 302 301 ); 303 302 ?> … … 333 332 <a href="#" class="add button"> 334 333 <?php esc_html_e( '+ Add Account', 'woocommerce' ); ?></a> 335 <a href="#" class="remove_rows button"><?php esc_html_e( 'Remove selected account(s)', 'woocommerce' ); ?>334 <a href="#" class="remove_rows button"><?php esc_html_e( 'Remove selected account(s)', 'woocommerce' ); ?> 336 335 </a> 337 336 </th> … … 343 342 if ( $this->accounts ) { 344 343 foreach ( $this->accounts as $account ) { 345 $i++;344 ++$i; 346 345 echo '<tr class="account"> 347 346 <td class="sort"></td> … … 388 387 public function save_accounts() { 389 388 390 if ( isset( $_POST[ $this->gateway . '_account_type'] ) ) {389 if ( isset( $_POST[ $this->gateway . '_account_type' ] ) ) { 391 390 $accounts = array(); 392 391 393 $type = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_type'] );394 $number = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_number'] );395 $qr_code = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_qr_code'] );392 $type = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_type' ] ); 393 $number = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_number' ] ); 394 $qr_code = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_qr_code' ] ); 396 395 397 396 foreach ( $type as $key => $value ) { … … 407 406 } 408 407 update_option( 'bdpg_' . $this->gateway . '_accounts', $accounts ); 409 } 410 408 409 // Update the accounts property so changes are reflected immediately. 410 $this->accounts = $accounts; 411 } 411 412 } 412 413 … … 422 423 423 424 // Mark as on-hold (we're awaiting the cheque). 424 $order->update_status( 'on-hold', sprintf( 425 $order->update_status( 426 'on-hold', 427 sprintf( 425 428 /* translators: %s: Payment Gateway. */ 426 esc_html__( 'Awaiting %s payment.', 'bangladeshi-payment-gateways' ), 427 $order->get_payment_method_title() ) 429 esc_html__( 'Awaiting %s payment.', 'bangladeshi-payment-gateways' ), 430 $order->get_payment_method_title() 431 ) 428 432 ); 429 433 … … 434 438 $woocommerce->cart->empty_cart(); 435 439 436 do_action( 'process_payment_bgd',$order_id , $order, $this );440 do_action( 'process_payment_bgd', $order_id, $order, $this ); 437 441 // Return thankyou redirect. 438 442 return array( … … 485 489 } 486 490 487 $number = sanitize_text_field( $_POST[ $this->gateway . '_acc_no'] );488 $trans_id = sanitize_text_field( $_POST[ $this->gateway . '_trans_id'] );491 $number = sanitize_text_field( $_POST[ $this->gateway . '_acc_no' ] ); 492 $trans_id = sanitize_text_field( $_POST[ $this->gateway . '_trans_id' ] ); 489 493 490 494 if ( '' === $number ) { 491 wc_add_notice( sprintf( 495 wc_add_notice( 496 sprintf( 492 497 /* translators: %s: Payment Gateway. */ 493 esc_html__( 'Please enter your %s account number.', 'bangladeshi-payment-gateways' ), 494 $this->gateway 495 ), 'error' ); 498 esc_html__( 'Please enter your %s account number.', 'bangladeshi-payment-gateways' ), 499 bdpg_gateway_name_to_title( $this->gateway ) 500 ), 501 'error' 502 ); 496 503 } 497 504 498 505 if ( '' === $trans_id ) { 499 wc_add_notice( sprintf( 506 wc_add_notice( 507 sprintf( 500 508 /* translators: %s: Payment Gateway. */ 501 esc_html__( 'Please enter your %s transaction ID.', 'bangladeshi-payment-gateways' ), 502 $this->gateway 503 ),'error' ); 509 esc_html__( 'Please enter your %s transaction ID.', 'bangladeshi-payment-gateways' ), 510 bdpg_gateway_name_to_title( $this->gateway ) 511 ), 512 'error' 513 ); 504 514 } 505 515 } … … 515 525 return; 516 526 } 517 $number = sanitize_text_field( $_POST[ $this->gateway . '_acc_no'] );518 $trans_id = sanitize_text_field( $_POST[ $this->gateway . '_trans_id'] );527 $number = sanitize_text_field( $_POST[ $this->gateway . '_acc_no' ] ); 528 $trans_id = sanitize_text_field( $_POST[ $this->gateway . '_trans_id' ] ); 519 529 520 530 update_post_meta( $order_id, 'woo_' . $this->gateway . '_number', $number ); … … 542 552 <th> 543 553 <strong> 544 <?php echo sprintf( 554 <?php 555 printf( 545 556 /* translators: %s: Payment Gateway. */ 546 557 esc_html__( '%s Account Number', 'bangladeshi-payment-gateways' ), 547 ucfirst( $this->gateway 548 ) ); ?> 558 bdpg_gateway_name_to_title( $this->gateway ) 559 ); 560 ?> 549 561 </strong> 550 562 </th> … … 578 590 $settings = get_option( 'woocommerce_woo_' . $this->gateway . '_settings' ); 579 591 580 581 592 $av_gateways = $woocommerce->payment_gateways->get_available_payment_gateways(); 582 593 if ( ! empty( $av_gateways ) ) { … … 589 600 590 601 if ( 'woo_' . $this->gateway === $payment_method ) { 591 $label = sprintf(602 $label = sprintf( 592 603 /* translators: %s: Payment Gateway. */ 593 604 esc_html__( '%s Charge', 'bangladeshi-payment-gateways' ), 594 ucfirst( $this->gateway )605 bdpg_gateway_name_to_title( $this->gateway ) 595 606 ); 596 $amount = round( $cart->cart_contents_total * ( $settings[ $this->gateway . '_fee' ] / 100 ) );607 $amount = round( $cart->cart_contents_total * ( $settings[ $this->gateway . '_fee' ] / 100 ) ); 597 608 $cart->add_fee( $label, $amount, true, 'standard' ); 598 609 } … … 626 637 <th> 627 638 <strong> 628 <?php echo sprintf( 639 <?php 640 printf( 629 641 /* translators: %s: Payment Gateway. */ 630 642 esc_html__( '%s Account Number', 'bangladeshi-payment-gateways' ), 631 ucfirst( $this->gateway ) 632 ); ?> 643 bdpg_gateway_name_to_title( $this->gateway ) 644 ); 645 ?> 633 646 </strong> 634 647 </th> … … 665 678 666 679 return $columns; 667 668 680 } 669 681 -
bangladeshi-payment-gateways/tags/3.0.5/includes/Gateways/Bkash.php
r3133395 r3427499 19 19 */ 20 20 class Bkash extends BDPG_Gateway { 21 use Singleton;21 use Singleton; 22 22 23 public function __construct() {24 $this->gateway = 'bkash';23 public function __construct() { 24 $this->gateway = 'bkash'; 25 25 26 parent::__construct(); 27 } 28 26 parent::__construct(); 27 } 29 28 } -
bangladeshi-payment-gateways/tags/3.0.5/includes/Gateways/Nagad.php
r3133395 r3427499 19 19 */ 20 20 class Nagad extends BDPG_Gateway { 21 use Singleton; 22 23 public function __construct() { 24 $this->gateway = 'nagad'; 21 use Singleton; 25 22 26 parent::__construct(); 27 } 23 public function __construct() { 24 $this->gateway = 'nagad'; 28 25 26 parent::__construct(); 27 } 29 28 } -
bangladeshi-payment-gateways/tags/3.0.5/includes/Gateways/Rocket.php
r3133395 r3427499 19 19 */ 20 20 class Rocket extends BDPG_Gateway { 21 use Singleton;21 use Singleton; 22 22 23 public function __construct() {24 $this->gateway = 'rocket';23 public function __construct() { 24 $this->gateway = 'rocket'; 25 25 26 parent::__construct(); 27 } 28 26 parent::__construct(); 27 } 29 28 } -
bangladeshi-payment-gateways/tags/3.0.5/includes/Gateways/Upay.php
r3133395 r3427499 19 19 */ 20 20 class Upay extends BDPG_Gateway { 21 use Singleton;21 use Singleton; 22 22 23 public function __construct() {24 $this->gateway = 'upay';23 public function __construct() { 24 $this->gateway = 'upay'; 25 25 26 parent::__construct(); 27 } 28 26 parent::__construct(); 27 } 29 28 } -
bangladeshi-payment-gateways/tags/3.0.5/includes/Review.php
r2562695 r3427499 89 89 return; 90 90 } 91 } else { 92 if ( ! empty( $install_date ) ) { 91 } elseif ( ! empty( $install_date ) ) { 93 92 $installed_days = Helper::time_to_days( $install_date ); 94 if ( $installed_days < 3 ) { 95 return; 96 } 93 if ( $installed_days < 3 ) { 94 return; 97 95 } 98 96 } -
bangladeshi-payment-gateways/tags/3.0.5/includes/functions.php
r3283342 r3427499 5 5 * @package BDPaymentGateways 6 6 */ 7 function bdpg_get_instruction_by_gateway( $gateway ) { 7 8 8 function bdpg_get_instruction_by_gateway( $gateway ) { 9 error_log( 'Getting instructions for gateway: ' . $gateway ); 9 10 switch ( $gateway ) { 10 11 case 'bkash': … … 63 64 return ''; 64 65 } 66 } 65 67 68 function bdpg_gateway_name_to_title( $gateway ) { 69 switch ( $gateway ) { 70 case 'bkash': 71 return __( 'bKash', 'bangladeshi-payment-gateways' ); 72 case 'rocket': 73 return __( 'Rocket', 'bangladeshi-payment-gateways' ); 74 case 'nagad': 75 return __( 'Nagad', 'bangladeshi-payment-gateways' ); 76 case 'upay': 77 return __( 'Upay', 'bangladeshi-payment-gateways' ); 78 default: 79 return ''; 80 } 66 81 } -
bangladeshi-payment-gateways/tags/3.0.5/languages/Bangladeshi-Payment-Gateways.pot
r3283342 r3427499 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Bangladeshi Payment Gateways - Make Payment Using QR Code 3.0. 4\n"5 "Project-Id-Version: Bangladeshi Payment Gateways - Make Payment Using QR Code 3.0.5\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/Bangladeshi-Payment-Gateways\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025- 04-28T10:55:42+00:00\n"12 "POT-Creation-Date: 2025-12-26T00:27:06+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.1 1.0\n"14 "X-Generator: WP-CLI 2.10.0\n" 15 15 "X-Domain: bangladeshi-payment-gateways\n" 16 16 … … 62 62 63 63 #. translators: %s: Payment Gateway. 64 #: includes/BDPG_Gateway.php:14 564 #: includes/BDPG_Gateway.php:142 65 65 msgid "%s Payment Gateway Settings." 66 66 msgstr "" 67 67 68 68 #. translators: %s: Payment Gateway. 69 #: includes/BDPG_Gateway.php:1 5069 #: includes/BDPG_Gateway.php:147 70 70 msgid "%s" 71 71 msgstr "" 72 72 73 #: includes/BDPG_Gateway.php:16 273 #: includes/BDPG_Gateway.php:160 74 74 msgid "Enable/Disable" 75 75 msgstr "" 76 76 77 77 #. translators: %s: Payment Gateway. 78 #: includes/BDPG_Gateway.php:16 578 #: includes/BDPG_Gateway.php:163 79 79 msgid "Enable %s Gateway" 80 80 msgstr "" 81 81 82 #: includes/BDPG_Gateway.php:17 383 #: includes/BDPG_Gateway.php:17 682 #: includes/BDPG_Gateway.php:171 83 #: includes/BDPG_Gateway.php:174 84 84 msgid "Title" 85 85 msgstr "" 86 86 87 #: includes/BDPG_Gateway.php:178 87 88 #: includes/BDPG_Gateway.php:180 88 89 msgid "Description" … … 124 125 125 126 #. translators: %s: Total Payment. 126 #: includes/BDPG_Gateway.php:25 5127 #: includes/BDPG_Gateway.php:254 127 128 msgid "You need to send us <b>%s</b>" 128 129 msgstr "" 129 130 130 131 #. translators: %s: Payment Gateway. 131 #: includes/BDPG_Gateway.php:28 8132 #: includes/BDPG_Gateway.php:287 132 133 msgid "Your %s Account Number" 133 134 msgstr "" 134 135 135 136 #. translators: %s: Payment Gateway. 136 #: includes/BDPG_Gateway.php: 300137 #: includes/BDPG_Gateway.php:299 137 138 msgid "Your %s Transaction ID" 138 139 msgstr "" 139 140 140 141 #. translators: %s: Payment Gateway. 141 #: includes/BDPG_Gateway.php:42 6142 #: includes/BDPG_Gateway.php:429 142 143 msgid "Awaiting %s payment." 143 144 msgstr "" 144 145 145 #: includes/BDPG_Gateway.php:4 56146 #: includes/BDPG_Gateway.php:460 146 147 msgid "Thank you. Your order has been received." 147 148 msgstr "" 148 149 149 150 #. translators: %s: Payment Gateway. 150 #: includes/BDPG_Gateway.php:49 3151 #: includes/BDPG_Gateway.php:498 151 152 msgid "Please enter your %s account number." 152 153 msgstr "" 153 154 154 155 #. translators: %s: Payment Gateway. 155 #: includes/BDPG_Gateway.php:50 1156 #: includes/BDPG_Gateway.php:509 156 157 msgid "Please enter your %s transaction ID." 157 158 msgstr "" 158 159 159 160 #. translators: %s: Payment Gateway. 160 #: includes/BDPG_Gateway.php:5 46161 #: includes/BDPG_Gateway.php:6 30161 #: includes/BDPG_Gateway.php:557 162 #: includes/BDPG_Gateway.php:642 162 163 msgid "%s Account Number" 163 164 msgstr "" 164 165 165 #: includes/BDPG_Gateway.php:5 58166 #: includes/BDPG_Gateway.php:6 42166 #: includes/BDPG_Gateway.php:570 167 #: includes/BDPG_Gateway.php:655 167 168 msgid "Transaction ID" 168 169 msgstr "" 169 170 170 171 #. translators: %s: Payment Gateway. 171 #: includes/BDPG_Gateway.php: 593172 #: includes/BDPG_Gateway.php:604 172 173 msgid "%s Charge" 173 174 msgstr "" 174 175 175 #: includes/BDPG_Gateway.php:6 63176 #: includes/BDPG_Gateway.php:676 176 177 msgid "Payment No" 177 178 msgstr "" 178 179 179 #: includes/BDPG_Gateway.php:6 64180 #: includes/BDPG_Gateway.php:677 180 181 msgid "Tran. ID" 181 182 msgstr "" 182 183 183 #: includes/functions.php:1 1184 #: includes/functions.php:12 184 185 msgid "" 185 186 "\n" … … 192 193 msgstr "" 193 194 194 #: includes/functions.php:2 4195 #: includes/functions.php:25 195 196 msgid "" 196 197 "\n" … … 203 204 msgstr "" 204 205 205 #: includes/functions.php:3 7206 #: includes/functions.php:38 206 207 msgid "" 207 208 "\n" … … 214 215 msgstr "" 215 216 216 #: includes/functions.php:5 0217 #: includes/functions.php:51 217 218 msgid "" 218 219 "\n" … … 225 226 msgstr "" 226 227 228 #: includes/functions.php:71 229 msgid "bKash" 230 msgstr "" 231 232 #: includes/functions.php:73 233 msgid "Rocket" 234 msgstr "" 235 236 #: includes/functions.php:75 237 msgid "Nagad" 238 msgstr "" 239 240 #: includes/functions.php:77 241 msgid "Upay" 242 msgstr "" 243 227 244 #. translators: %1$s Plugin Name. 228 #: includes/Review.php:11 9245 #: includes/Review.php:117 229 246 msgid "Hey, we noticed you have been using %1$s for more than 3 days now - that's awesome! <br> Could you please do us a BIG favor and give it a rating on WordPress.org to help us do more great work and boost our motivation?" 230 247 msgstr "" 231 248 232 #: includes/Review.php:16 4249 #: includes/Review.php:162 233 250 msgid "Yes, you deserve it" 234 251 msgstr "" 235 252 236 #: includes/Review.php:16 8253 #: includes/Review.php:166 237 254 msgid "No, maybe later" 238 255 msgstr "" 239 256 240 #: includes/Review.php:17 2257 #: includes/Review.php:170 241 258 msgid "I already did" 242 259 msgstr "" -
bangladeshi-payment-gateways/tags/3.0.5/readme.txt
r3283342 r3427499 4 4 Tags: mobile payment gateways, bangladeshi mobile banking, payment gateway, qr code, bKash Rocket Nagad Upay 5 5 Requires at least: 4.4 6 Tested up to: 6. 87 Stable tag: 3.0. 46 Tested up to: 6.9 7 Stable tag: 3.0.5 8 8 Requires PHP: 7.0.0 9 9 Requires Plugins: woocommerce … … 89 89 == Changelog == 90 90 91 = 3.0.5 - 26/12/2025 = 92 *Fix:* Fixed wrong payment method name. 93 *Fix:* Localization issue. 94 *Fix:* Fixed gateway settings issue. 95 91 96 = 3.0.4 - 28/04/2025 = 92 97 *Fix:* Fixed wrong payment method name -
bangladeshi-payment-gateways/tags/3.0.5/vendor/appsero/client/src/Insights.php
r3205147 r3427499 435 435 $notice .= ' (<a class="' . $this->client->slug . '-insights-data-we-collect" href="#">' . $this->client->__trans( 'what we collect' ) . '</a>)'; 436 436 $notice .= '<p class="description" style="display:none;">' . implode( ', ', $this->data_we_collect() ) . '. '; 437 $notice .= 'We are using Appsero to collect your data. <a href="' . $policy_url . '" target="_blank">Learn more</a> about how Appsero collects and handle your data.</p>';437 $notice .= 'We are using Appsero to collect your data. <a href="' . $policy_url . '" target="_blank">Learn more</a> ↗</p>'; 438 438 439 439 echo '<div class="updated"><p>'; … … 925 925 <?php 926 926 echo sprintf( 927 $this->client->__trans( 'We share your data with <a href="%1$s" target="_blank">Appsero</a> to troubleshoot problems & make product improvements. <a href="%2$s" target="_blank">Learn more</a> about how Appsero handles your data.' ),927 $this->client->__trans( 'We share your data with <a href="%1$s" target="_blank">Appsero</a> to troubleshoot problems & make product improvements. <a href="%2$s" target="_blank">Learn more</a> ↗' ), 928 928 esc_url( 'https://appsero.com/' ), 929 929 esc_url( 'https://appsero.com/privacy-policy' ) -
bangladeshi-payment-gateways/tags/3.0.5/vendor/autoload.php
r3283342 r3427499 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 23 20 require_once __DIR__ . '/composer/autoload_real.php'; 24 21 25 return ComposerAutoloaderInit 47f7c0fef846d70f6c4c0e8b040a0e80::getLoader();22 return ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2::getLoader(); -
bangladeshi-payment-gateways/tags/3.0.5/vendor/composer/InstalledVersions.php
r3283342 r3427499 28 28 { 29 29 /** 30 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to 31 * @internal 32 */ 33 private static $selfDir = null; 34 35 /** 30 36 * @var mixed[]|null 31 37 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 38 */ 33 39 private static $installed; 40 41 /** 42 * @var bool 43 */ 44 private static $installedIsLocalDir; 34 45 35 46 /** … … 310 321 self::$installed = $data; 311 322 self::$installedByVendor = array(); 323 324 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 325 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 326 // so we have to assume it does not, and that may result in duplicate data being returned when listing 327 // all installed packages for example 328 self::$installedIsLocalDir = false; 329 } 330 331 /** 332 * @return string 333 */ 334 private static function getSelfDir() 335 { 336 if (self::$selfDir === null) { 337 self::$selfDir = strtr(__DIR__, '\\', '/'); 338 } 339 340 return self::$selfDir; 312 341 } 313 342 … … 323 352 324 353 $installed = array(); 354 $copiedLocalDir = false; 325 355 326 356 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir(); 327 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/'); 328 360 if (isset(self::$installedByVendor[$vendorDir])) { 329 361 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 363 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 364 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 365 self::$installedByVendor[$vendorDir] = $required; 366 $installed[] = $required; 367 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 368 self::$installed = $required; 369 self::$installedIsLocalDir = true; 336 370 } 371 } 372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 373 $copiedLocalDir = true; 337 374 } 338 375 } … … 351 388 } 352 389 353 if (self::$installed !== array() ) {390 if (self::$installed !== array() && !$copiedLocalDir) { 354 391 $installed[] = self::$installed; 355 392 } -
bangladeshi-payment-gateways/tags/3.0.5/vendor/composer/autoload_real.php
r3283342 r3427499 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 47f7c0fef846d70f6c4c0e8b040a0e805 class ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 47f7c0fef846d70f6c4c0e8b040a0e80', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 47f7c0fef846d70f6c4c0e8b040a0e80', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e80::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e80::$files;36 $filesToLoad = \Composer\Autoload\ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$files; 37 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
bangladeshi-payment-gateways/tags/3.0.5/vendor/composer/autoload_static.php
r3283342 r3427499 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e807 class ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2 8 8 { 9 9 public static $files = array ( … … 40 40 { 41 41 return \Closure::bind(function () use ($loader) { 42 $loader->prefixLengthsPsr4 = ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e80::$prefixLengthsPsr4;43 $loader->prefixDirsPsr4 = ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e80::$prefixDirsPsr4;44 $loader->classMap = ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e80::$classMap;42 $loader->prefixLengthsPsr4 = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$prefixLengthsPsr4; 43 $loader->prefixDirsPsr4 = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$prefixDirsPsr4; 44 $loader->classMap = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$classMap; 45 45 46 46 }, null, ClassLoader::class); -
bangladeshi-payment-gateways/tags/3.0.5/vendor/composer/installed.json
r3283342 r3427499 8 8 "type": "git", 9 9 "url": "https://github.com/Appsero/client.git", 10 "reference": " aef4cf138ab4f348cee4e2f20f7d3cd815db0877"10 "reference": "96bc89344359e39104ab0da6464ee3aeff0b6897" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/Appsero/client/zipball/ aef4cf138ab4f348cee4e2f20f7d3cd815db0877",15 "reference": " aef4cf138ab4f348cee4e2f20f7d3cd815db0877",14 "url": "https://api.github.com/repos/Appsero/client/zipball/96bc89344359e39104ab0da6464ee3aeff0b6897", 15 "reference": "96bc89344359e39104ab0da6464ee3aeff0b6897", 16 16 "shasum": "" 17 17 }, … … 27 27 "wp-coding-standards/wpcs": "dev-develop" 28 28 }, 29 "time": "202 4-11-25T05:58:43+00:00",29 "time": "2025-11-24T09:57:42+00:00", 30 30 "default-branch": true, 31 31 "type": "library", -
bangladeshi-payment-gateways/tags/3.0.5/vendor/composer/installed.php
r3283342 r3427499 2 2 'root' => array( 3 3 'name' => 'ultradevs/bangladeshi-payment-gateways', 4 'pretty_version' => 'dev- develop',5 'version' => 'dev- develop',6 'reference' => ' 87d864aa4a71b0ed21996f551d7ae11791b6b547',4 'pretty_version' => 'dev-master', 5 'version' => 'dev-master', 6 'reference' => '9776a7c010f9650914e471887f27db6cfe2c3aab', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-develop', 15 15 'version' => 'dev-develop', 16 'reference' => ' aef4cf138ab4f348cee4e2f20f7d3cd815db0877',16 'reference' => '96bc89344359e39104ab0da6464ee3aeff0b6897', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../appsero/client', … … 23 23 ), 24 24 'ultradevs/bangladeshi-payment-gateways' => array( 25 'pretty_version' => 'dev- develop',26 'version' => 'dev- develop',27 'reference' => ' 87d864aa4a71b0ed21996f551d7ae11791b6b547',25 'pretty_version' => 'dev-master', 26 'version' => 'dev-master', 27 'reference' => '9776a7c010f9650914e471887f27db6cfe2c3aab', 28 28 'type' => 'library', 29 29 'install_path' => __DIR__ . '/../../', -
bangladeshi-payment-gateways/trunk/assets/admin/css/admin.css
r3133395 r3427499 1 1 #gateway_accounts img { 2 width: 50px;3 height: 50px;2 width: 50px; 3 height: 50px; 4 4 } 5 5 6 6 #gateway_accounts .add_qr_c_img { 7 margin: 10px;7 margin: 10px; 8 8 } 9 9 10 10 .bdpg-admin-data img { 11 width: 70px;11 width: 70px; 12 12 } -
bangladeshi-payment-gateways/trunk/assets/public/css/bdpg-public.css
r2562695 r3427499 1 1 .bdpg-total-amount { 2 margin: 10px 0;3 color: green;2 margin: 10px 0; 3 color: green; 4 4 } 5 5 6 6 .bdpg-s__acc { 7 overflow: hidden;8 padding: 10px 0;9 border-bottom: 1px solid #ddd;7 overflow: hidden; 8 padding: 10px 0; 9 border-bottom: 1px solid #ddd; 10 10 } 11 11 12 12 .bdpg-acc__qr-code { 13 height: 130px;14 width: 150px;15 margin: 0 auto;16 margin-bottom: 10px;13 height: 130px; 14 width: 150px; 15 margin: 0 auto; 16 margin-bottom: 10px; 17 17 } 18 18 19 19 .bdpg-acc__qr-code img { 20 width: 100% !important;21 height: 100% !important;22 max-height: 100% !important;23 float: none !important;20 width: 100% !important; 21 height: 100% !important; 22 max-height: 100% !important; 23 float: none !important; 24 24 } 25 25 26 26 .bdpg-user__acc { 27 margin: 10px 0;27 margin: 10px 0; 28 28 } 29 29 30 30 .bdpg-user__field { 31 margin-bottom: 10px;31 margin-bottom: 10px; 32 32 } 33 33 .bdpg-user__field label { 34 display: block;34 display: block; 35 35 36 36 } 37 37 38 38 .bdpg-user__field input[type="text"] { 39 margin-top: 5px;40 border: 1px solid #ddd;41 background: #fff;42 padding: 5px 15px;39 margin-top: 5px; 40 border: 1px solid #ddd; 41 background: #fff; 42 padding: 5px 15px; 43 43 } 44 44 45 45 .bdpg-g-details img { 46 width: 50px;47 height: 50px;48 margin-bottom: 10px;46 width: 50px; 47 height: 50px; 48 margin-bottom: 10px; 49 49 } 50 50 51 51 .wc_payment_methods li label img { 52 height: 30px !important;53 float: right;52 height: 30px !important; 53 float: right; 54 54 } -
bangladeshi-payment-gateways/trunk/assets/public/js/bdpg-public.js
r2853163 r3427499 7 7 */ 8 8 9 jQuery(document).ready( 10 function ($) { 11 $(document.body).on( 12 'change', 'input[name="payment_method"]', function () { 13 $('body').trigger('update_checkout'); 14 } 15 ); 16 } 9 jQuery( document ).ready( 10 function ($) { 11 $( document.body ).on( 12 'change', 13 'input[name="payment_method"]', 14 function () { 15 $( 'body' ).trigger( 'update_checkout' ); 16 } 17 ); 18 } 17 19 ); -
bangladeshi-payment-gateways/trunk/bd-payment-gateways.php
r3283342 r3427499 10 10 * Plugin URI: https://ultradevs.com/products/wp-plugin/bangladeshi-payment-gateways/ 11 11 * Description: Bangladeshi Payment Gateways for WooCommerce. 12 * Version: 3.0. 412 * Version: 3.0.5 13 13 * Author: ultraDevs 14 14 * Author URI: https://ultradevs.com … … 23 23 24 24 // Constant. 25 define( 'BD_PAYMENT_GATEWAYS_VERSION', '3.0. 4' );25 define( 'BD_PAYMENT_GATEWAYS_VERSION', '3.0.5' ); 26 26 define( 'BD_PAYMENT_GATEWAYS_NAME', 'Bangladeshi Payment Gateways' ); 27 27 define( 'BD_PAYMENT_GATEWAYS_DIR_PATH', plugin_dir_path( __FILE__ ) ); … … 83 83 private function __construct() { 84 84 85 add_action( 'init', array( $this, 'load_text_domain' ) ); 86 87 add_action( 'plugins_loaded', array( $this, 'init' ) ); 85 // Load text domain on plugins_loaded (priority 0) before init(). 86 add_action( 'plugins_loaded', array( $this, 'load_text_domain' ), 0 ); 87 88 add_action( 'plugins_loaded', array( $this, 'init' ), 1 ); 88 89 89 90 register_activation_hook( __FILE__, array( $this, 'activate' ) ); 90 91 91 92 do_action( 'bd_payment_gateways_loaded' ); 92 93 93 } 94 94 … … 235 235 236 236 return $links; 237 238 237 } 239 238 -
bangladeshi-payment-gateways/trunk/composer.json
r3283342 r3427499 1 1 { 2 "name": "ultradevs/bangladeshi-payment-gateways",3 "description": "Bangladeshi Payment Gateways",4 "authors": [5 {6 "name": "mhimon",7 "email": "[email protected]"8 }9 ],10 "minimum-stability": "dev",11 "autoload": {12 "psr-4": {13 "ultraDevs\\BDPG\\": "includes/"14 },15 "files": [16 "includes/functions.php"17 ]18 },19 "require": {20 "appsero/client": "dev-develop"21 }2 "name": "ultradevs/bangladeshi-payment-gateways", 3 "description": "Bangladeshi Payment Gateways", 4 "authors": [ 5 { 6 "name": "mhimon", 7 "email": "[email protected]" 8 } 9 ], 10 "minimum-stability": "dev", 11 "autoload": { 12 "psr-4": { 13 "ultraDevs\\BDPG\\": "includes/" 14 }, 15 "files": [ 16 "includes/functions.php" 17 ] 18 }, 19 "require": { 20 "appsero/client": "dev-develop" 21 } 22 22 } -
bangladeshi-payment-gateways/trunk/includes/Activate.php
r2562695 r3427499 28 28 29 29 $this->plugin_data(); 30 31 30 } 32 31 -
bangladeshi-payment-gateways/trunk/includes/Assets_Manager.php
r2562695 r3427499 34 34 wp_enqueue_media(); 35 35 } 36 37 36 } 38 37 … … 46 45 wp_enqueue_style( 'bdpg-frontend', BD_PAYMENT_GATEWAYS_ASSETS . 'public/css/bdpg-public.css', '', BD_PAYMENT_GATEWAYS_VERSION ); 47 46 wp_enqueue_script( 'bdpg-frontend', BD_PAYMENT_GATEWAYS_ASSETS . 'public/js/bdpg-public.js', array( 'jquery' ), BD_PAYMENT_GATEWAYS_VERSION, false ); 48 49 47 } 50 48 } -
bangladeshi-payment-gateways/trunk/includes/BDPG_Gateway.php
r3283342 r3427499 90 90 $this->icon = apply_filters( 'bdpg_' . $this->gateway . '_icon', BD_PAYMENT_GATEWAYS_DIR_URL . 'assets/images/' . ucfirst( $this->gateway ) . '.png' ); 91 91 92 add_action( 'init', function() { 93 $this->init_gateway_titles(); 94 $this->init_form_fields(); 95 } ); 96 92 // Initialize gateway titles and form fields BEFORE loading settings. 93 $this->init_gateway_titles(); 94 $this->init_form_fields(); 97 95 98 96 // Load the Settings. 99 97 $this->init_settings(); 100 98 101 $this->title = $this->get_option( 'title' );102 $this->description = $this->get_option( 'description' );103 $this->enabled = $this->get_option( 'enabled' );104 $this->instructions = $this->get_option( 'instructions' );99 $this->title = $this->get_option( 'title' ); 100 $this->description = $this->get_option( 'description' ); 101 $this->enabled = $this->get_option( 'enabled' ); 102 $this->instructions = $this->get_option( 'instructions' ); 105 103 $this->gateway_charge = $this->get_option( $this->gateway . '_charge' ); 106 104 $this->gateway_fee = $this->get_option( $this->gateway . '_fee' ); 107 105 $this->gateway_charge_details = $this->get_option( 'gateway_charge_details' ); 108 106 109 $account = array(107 $account = array( 110 108 array( 111 109 'type' => $this->get_option( 'type' ), … … 114 112 ), 115 113 ); 116 $this->accounts = get_option( 'bdpg_' . $this->gateway . '_accounts', [] ); 117 118 119 add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) ); 120 add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'save_accounts' ) ); 114 $this->accounts = get_option( 'bdpg_' . $this->gateway . '_accounts', [] ); 115 116 add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'save_accounts' ), 5 ); 117 add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ), 10 ); 121 118 add_action( 'woocommerce_thankyou_woo_' . $this->gateway, array( $this, 'bdpg_thankyou' ) ); 122 119 add_action( 'woocommerce_email_before_order_table', array( $this, 'customer_email_instructions' ), 10, 3 ); … … 144 141 /* translators: %s: Payment Gateway. */ 145 142 __( '%s Payment Gateway Settings.', 'bangladeshi-payment-gateways' ), 146 $this->gateway143 bdpg_gateway_name_to_title( $this->gateway ) 147 144 ); 148 $this->method_title = sprintf(145 $this->method_title = sprintf( 149 146 /* translators: %s: Payment Gateway. */ 150 147 __( '%s', 'bangladeshi-payment-gateways' ), 151 $this->gateway148 bdpg_gateway_name_to_title( $this->gateway ) 152 149 ); 153 150 } … … 158 155 */ 159 156 public function init_form_fields() { 157 160 158 $this->form_fields = array( 161 'enabled' => array(159 'enabled' => array( 162 160 'title' => __( 'Enable/Disable', 'bangladeshi-payment-gateways' ), 163 161 'label' => sprintf( 164 162 /* translators: %s: Payment Gateway. */ 165 163 __( 'Enable %s Gateway', 'bangladeshi-payment-gateways' ), 166 $this->gateway164 bdpg_gateway_name_to_title( $this->gateway ) 167 165 ), 168 166 'type' => 'checkbox', … … 170 168 'default' => 'no', 171 169 ), 172 'title' => array(170 'title' => array( 173 171 'title' => __( 'Title', 'bangladeshi-payment-gateways' ), 174 172 'type' => 'text', 175 'default' => $this->gateway,173 'default' => bdpg_gateway_name_to_title( $this->gateway ), 176 174 'description' => __( 'Title', 'bangladeshi-payment-gateways' ), 177 175 'desc_tip' => true, 178 176 ), 179 'description' => array( 180 'title' => __( 'Description', 'bangladeshi-payment-gateways' ), 181 'default' => bdpg_get_instruction_by_gateway( $this->gateway ), 182 'type' => 'textarea', 177 'description' => array( 178 'title' => __( 'Description', 'bangladeshi-payment-gateways' ), 179 'type' => 'textarea', 180 'description' => __( 'Description', 'bangladeshi-payment-gateways' ), 181 'desc_tip' => true, 182 'default' => bdpg_get_instruction_by_gateway( $this->gateway ), 183 183 ), 184 184 $this->gateway . '_charge' => array( … … 186 186 /* translators: %s: Payment Gateway. */ 187 187 __( '%s Charge?', 'bangladeshi-payment-gateways' ), 188 $this->gateway188 bdpg_gateway_name_to_title( $this->gateway ) 189 189 ), 190 190 'type' => 'checkbox', … … 192 192 /* translators: %s: Payment Gateway. */ 193 193 __( 'Add %s <b>Send Money</b> charge?', 'bangladeshi-payment-gateways' ), 194 $this->gateway194 bdpg_gateway_name_to_title( $this->gateway ) 195 195 ), 196 196 'default' => 'no', … … 201 201 /* translators: %s: Payment Gateway. */ 202 202 __( '%s Fee', 'bangladeshi-payment-gateways' ), 203 $this->gateway203 bdpg_gateway_name_to_title( $this->gateway ) 204 204 ), 205 205 'type' => 'text', … … 212 212 /* translators: %s: Payment Gateway. */ 213 213 __( '%s Charge Details', 'bangladeshi-payment-gateways' ), 214 $this->gateway214 bdpg_gateway_name_to_title( $this->gateway ) 215 215 ), 216 216 'type' => 'textarea', … … 218 218 /* translators: %s: Payment Gateway. */ 219 219 __( '%s "Send Money" fee will be added with net price.', 'bangladeshi-payment-gateways' ), 220 $this->gateway221 ) 222 ), 223 224 'instructions' => array(220 bdpg_gateway_name_to_title( $this->gateway ) 221 ), 222 ), 223 224 'instructions' => array( 225 225 'title' => __( 'Instructions', 'bangladeshi-payment-gateways' ), 226 226 'type' => 'textarea', 227 227 'description' => __( 'Instructions', 'bangladeshi-payment-gateways' ), 228 'default' => '' 229 ), 230 'accounts' => array(228 'default' => '', 229 ), 230 'accounts' => array( 231 231 'type' => 'accounts', 232 232 ), 233 233 ); 234 235 234 } 236 235 … … 244 243 echo wpautop( wptexturize( __( $this->description, 'bangladeshi-payment-gateways' ) ) . ' ' . $gateway_charge_details ); 245 244 246 $total_payment = $woocommerce->cart->total;247 $symbol = get_woocommerce_currency_symbol();248 if ( get_woocommerce_currency() === 'USD' ) {245 $total_payment = $woocommerce->cart->total; 246 $symbol = get_woocommerce_currency_symbol(); 247 if ( get_woocommerce_currency() === 'USD' ) { 249 248 $total_payment = $this->dollar_rate * $woocommerce->cart->total; 250 $symbol = get_woocommerce_currency_symbol( 'BDT');249 $symbol = get_woocommerce_currency_symbol( 'BDT' ); 251 250 } 252 251 … … 284 283 <label for="<?php echo esc_attr( $this->gateway ); ?>_acc_no"> 285 284 <?php 286 echo sprintf(285 printf( 287 286 /* translators: %s: Payment Gateway. */ 288 287 __( 'Your %s Account Number', 'bangladeshi-payment-gateways' ), 289 ucfirst( $this->gateway )288 bdpg_gateway_name_to_title( $this->gateway ) 290 289 ); 291 290 ?> … … 296 295 <label for="<?php echo esc_attr( $this->gateway ); ?>_trans_id"> 297 296 <?php 298 echo sprintf(297 printf( 299 298 /* translators: %s: Payment Gateway. */ 300 299 __( 'Your %s Transaction ID', 'bangladeshi-payment-gateways' ), 301 ucfirst( $this->gateway )300 bdpg_gateway_name_to_title( $this->gateway ) 302 301 ); 303 302 ?> … … 333 332 <a href="#" class="add button"> 334 333 <?php esc_html_e( '+ Add Account', 'woocommerce' ); ?></a> 335 <a href="#" class="remove_rows button"><?php esc_html_e( 'Remove selected account(s)', 'woocommerce' ); ?>334 <a href="#" class="remove_rows button"><?php esc_html_e( 'Remove selected account(s)', 'woocommerce' ); ?> 336 335 </a> 337 336 </th> … … 343 342 if ( $this->accounts ) { 344 343 foreach ( $this->accounts as $account ) { 345 $i++;344 ++$i; 346 345 echo '<tr class="account"> 347 346 <td class="sort"></td> … … 388 387 public function save_accounts() { 389 388 390 if ( isset( $_POST[ $this->gateway . '_account_type'] ) ) {389 if ( isset( $_POST[ $this->gateway . '_account_type' ] ) ) { 391 390 $accounts = array(); 392 391 393 $type = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_type'] );394 $number = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_number'] );395 $qr_code = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_qr_code'] );392 $type = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_type' ] ); 393 $number = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_number' ] ); 394 $qr_code = array_map( 'wc_clean', $_POST[ $this->gateway . '_account_qr_code' ] ); 396 395 397 396 foreach ( $type as $key => $value ) { … … 407 406 } 408 407 update_option( 'bdpg_' . $this->gateway . '_accounts', $accounts ); 409 } 410 408 409 // Update the accounts property so changes are reflected immediately. 410 $this->accounts = $accounts; 411 } 411 412 } 412 413 … … 422 423 423 424 // Mark as on-hold (we're awaiting the cheque). 424 $order->update_status( 'on-hold', sprintf( 425 $order->update_status( 426 'on-hold', 427 sprintf( 425 428 /* translators: %s: Payment Gateway. */ 426 esc_html__( 'Awaiting %s payment.', 'bangladeshi-payment-gateways' ), 427 $order->get_payment_method_title() ) 429 esc_html__( 'Awaiting %s payment.', 'bangladeshi-payment-gateways' ), 430 $order->get_payment_method_title() 431 ) 428 432 ); 429 433 … … 434 438 $woocommerce->cart->empty_cart(); 435 439 436 do_action( 'process_payment_bgd',$order_id , $order, $this );440 do_action( 'process_payment_bgd', $order_id, $order, $this ); 437 441 // Return thankyou redirect. 438 442 return array( … … 485 489 } 486 490 487 $number = sanitize_text_field( $_POST[ $this->gateway . '_acc_no'] );488 $trans_id = sanitize_text_field( $_POST[ $this->gateway . '_trans_id'] );491 $number = sanitize_text_field( $_POST[ $this->gateway . '_acc_no' ] ); 492 $trans_id = sanitize_text_field( $_POST[ $this->gateway . '_trans_id' ] ); 489 493 490 494 if ( '' === $number ) { 491 wc_add_notice( sprintf( 495 wc_add_notice( 496 sprintf( 492 497 /* translators: %s: Payment Gateway. */ 493 esc_html__( 'Please enter your %s account number.', 'bangladeshi-payment-gateways' ), 494 $this->gateway 495 ), 'error' ); 498 esc_html__( 'Please enter your %s account number.', 'bangladeshi-payment-gateways' ), 499 bdpg_gateway_name_to_title( $this->gateway ) 500 ), 501 'error' 502 ); 496 503 } 497 504 498 505 if ( '' === $trans_id ) { 499 wc_add_notice( sprintf( 506 wc_add_notice( 507 sprintf( 500 508 /* translators: %s: Payment Gateway. */ 501 esc_html__( 'Please enter your %s transaction ID.', 'bangladeshi-payment-gateways' ), 502 $this->gateway 503 ),'error' ); 509 esc_html__( 'Please enter your %s transaction ID.', 'bangladeshi-payment-gateways' ), 510 bdpg_gateway_name_to_title( $this->gateway ) 511 ), 512 'error' 513 ); 504 514 } 505 515 } … … 515 525 return; 516 526 } 517 $number = sanitize_text_field( $_POST[ $this->gateway . '_acc_no'] );518 $trans_id = sanitize_text_field( $_POST[ $this->gateway . '_trans_id'] );527 $number = sanitize_text_field( $_POST[ $this->gateway . '_acc_no' ] ); 528 $trans_id = sanitize_text_field( $_POST[ $this->gateway . '_trans_id' ] ); 519 529 520 530 update_post_meta( $order_id, 'woo_' . $this->gateway . '_number', $number ); … … 542 552 <th> 543 553 <strong> 544 <?php echo sprintf( 554 <?php 555 printf( 545 556 /* translators: %s: Payment Gateway. */ 546 557 esc_html__( '%s Account Number', 'bangladeshi-payment-gateways' ), 547 ucfirst( $this->gateway 548 ) ); ?> 558 bdpg_gateway_name_to_title( $this->gateway ) 559 ); 560 ?> 549 561 </strong> 550 562 </th> … … 578 590 $settings = get_option( 'woocommerce_woo_' . $this->gateway . '_settings' ); 579 591 580 581 592 $av_gateways = $woocommerce->payment_gateways->get_available_payment_gateways(); 582 593 if ( ! empty( $av_gateways ) ) { … … 589 600 590 601 if ( 'woo_' . $this->gateway === $payment_method ) { 591 $label = sprintf(602 $label = sprintf( 592 603 /* translators: %s: Payment Gateway. */ 593 604 esc_html__( '%s Charge', 'bangladeshi-payment-gateways' ), 594 ucfirst( $this->gateway )605 bdpg_gateway_name_to_title( $this->gateway ) 595 606 ); 596 $amount = round( $cart->cart_contents_total * ( $settings[ $this->gateway . '_fee' ] / 100 ) );607 $amount = round( $cart->cart_contents_total * ( $settings[ $this->gateway . '_fee' ] / 100 ) ); 597 608 $cart->add_fee( $label, $amount, true, 'standard' ); 598 609 } … … 626 637 <th> 627 638 <strong> 628 <?php echo sprintf( 639 <?php 640 printf( 629 641 /* translators: %s: Payment Gateway. */ 630 642 esc_html__( '%s Account Number', 'bangladeshi-payment-gateways' ), 631 ucfirst( $this->gateway ) 632 ); ?> 643 bdpg_gateway_name_to_title( $this->gateway ) 644 ); 645 ?> 633 646 </strong> 634 647 </th> … … 665 678 666 679 return $columns; 667 668 680 } 669 681 -
bangladeshi-payment-gateways/trunk/includes/Gateways/Bkash.php
r3133395 r3427499 19 19 */ 20 20 class Bkash extends BDPG_Gateway { 21 use Singleton;21 use Singleton; 22 22 23 public function __construct() {24 $this->gateway = 'bkash';23 public function __construct() { 24 $this->gateway = 'bkash'; 25 25 26 parent::__construct(); 27 } 28 26 parent::__construct(); 27 } 29 28 } -
bangladeshi-payment-gateways/trunk/includes/Gateways/Nagad.php
r3133395 r3427499 19 19 */ 20 20 class Nagad extends BDPG_Gateway { 21 use Singleton; 22 23 public function __construct() { 24 $this->gateway = 'nagad'; 21 use Singleton; 25 22 26 parent::__construct(); 27 } 23 public function __construct() { 24 $this->gateway = 'nagad'; 28 25 26 parent::__construct(); 27 } 29 28 } -
bangladeshi-payment-gateways/trunk/includes/Gateways/Rocket.php
r3133395 r3427499 19 19 */ 20 20 class Rocket extends BDPG_Gateway { 21 use Singleton;21 use Singleton; 22 22 23 public function __construct() {24 $this->gateway = 'rocket';23 public function __construct() { 24 $this->gateway = 'rocket'; 25 25 26 parent::__construct(); 27 } 28 26 parent::__construct(); 27 } 29 28 } -
bangladeshi-payment-gateways/trunk/includes/Gateways/Upay.php
r3133395 r3427499 19 19 */ 20 20 class Upay extends BDPG_Gateway { 21 use Singleton;21 use Singleton; 22 22 23 public function __construct() {24 $this->gateway = 'upay';23 public function __construct() { 24 $this->gateway = 'upay'; 25 25 26 parent::__construct(); 27 } 28 26 parent::__construct(); 27 } 29 28 } -
bangladeshi-payment-gateways/trunk/includes/Review.php
r2562695 r3427499 89 89 return; 90 90 } 91 } else { 92 if ( ! empty( $install_date ) ) { 91 } elseif ( ! empty( $install_date ) ) { 93 92 $installed_days = Helper::time_to_days( $install_date ); 94 if ( $installed_days < 3 ) { 95 return; 96 } 93 if ( $installed_days < 3 ) { 94 return; 97 95 } 98 96 } -
bangladeshi-payment-gateways/trunk/includes/functions.php
r3283342 r3427499 5 5 * @package BDPaymentGateways 6 6 */ 7 function bdpg_get_instruction_by_gateway( $gateway ) { 7 8 8 function bdpg_get_instruction_by_gateway( $gateway ) { 9 error_log( 'Getting instructions for gateway: ' . $gateway ); 9 10 switch ( $gateway ) { 10 11 case 'bkash': … … 63 64 return ''; 64 65 } 66 } 65 67 68 function bdpg_gateway_name_to_title( $gateway ) { 69 switch ( $gateway ) { 70 case 'bkash': 71 return __( 'bKash', 'bangladeshi-payment-gateways' ); 72 case 'rocket': 73 return __( 'Rocket', 'bangladeshi-payment-gateways' ); 74 case 'nagad': 75 return __( 'Nagad', 'bangladeshi-payment-gateways' ); 76 case 'upay': 77 return __( 'Upay', 'bangladeshi-payment-gateways' ); 78 default: 79 return ''; 80 } 66 81 } -
bangladeshi-payment-gateways/trunk/languages/Bangladeshi-Payment-Gateways.pot
r3283342 r3427499 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Bangladeshi Payment Gateways - Make Payment Using QR Code 3.0. 4\n"5 "Project-Id-Version: Bangladeshi Payment Gateways - Make Payment Using QR Code 3.0.5\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/Bangladeshi-Payment-Gateways\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025- 04-28T10:55:42+00:00\n"12 "POT-Creation-Date: 2025-12-26T00:27:06+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.1 1.0\n"14 "X-Generator: WP-CLI 2.10.0\n" 15 15 "X-Domain: bangladeshi-payment-gateways\n" 16 16 … … 62 62 63 63 #. translators: %s: Payment Gateway. 64 #: includes/BDPG_Gateway.php:14 564 #: includes/BDPG_Gateway.php:142 65 65 msgid "%s Payment Gateway Settings." 66 66 msgstr "" 67 67 68 68 #. translators: %s: Payment Gateway. 69 #: includes/BDPG_Gateway.php:1 5069 #: includes/BDPG_Gateway.php:147 70 70 msgid "%s" 71 71 msgstr "" 72 72 73 #: includes/BDPG_Gateway.php:16 273 #: includes/BDPG_Gateway.php:160 74 74 msgid "Enable/Disable" 75 75 msgstr "" 76 76 77 77 #. translators: %s: Payment Gateway. 78 #: includes/BDPG_Gateway.php:16 578 #: includes/BDPG_Gateway.php:163 79 79 msgid "Enable %s Gateway" 80 80 msgstr "" 81 81 82 #: includes/BDPG_Gateway.php:17 383 #: includes/BDPG_Gateway.php:17 682 #: includes/BDPG_Gateway.php:171 83 #: includes/BDPG_Gateway.php:174 84 84 msgid "Title" 85 85 msgstr "" 86 86 87 #: includes/BDPG_Gateway.php:178 87 88 #: includes/BDPG_Gateway.php:180 88 89 msgid "Description" … … 124 125 125 126 #. translators: %s: Total Payment. 126 #: includes/BDPG_Gateway.php:25 5127 #: includes/BDPG_Gateway.php:254 127 128 msgid "You need to send us <b>%s</b>" 128 129 msgstr "" 129 130 130 131 #. translators: %s: Payment Gateway. 131 #: includes/BDPG_Gateway.php:28 8132 #: includes/BDPG_Gateway.php:287 132 133 msgid "Your %s Account Number" 133 134 msgstr "" 134 135 135 136 #. translators: %s: Payment Gateway. 136 #: includes/BDPG_Gateway.php: 300137 #: includes/BDPG_Gateway.php:299 137 138 msgid "Your %s Transaction ID" 138 139 msgstr "" 139 140 140 141 #. translators: %s: Payment Gateway. 141 #: includes/BDPG_Gateway.php:42 6142 #: includes/BDPG_Gateway.php:429 142 143 msgid "Awaiting %s payment." 143 144 msgstr "" 144 145 145 #: includes/BDPG_Gateway.php:4 56146 #: includes/BDPG_Gateway.php:460 146 147 msgid "Thank you. Your order has been received." 147 148 msgstr "" 148 149 149 150 #. translators: %s: Payment Gateway. 150 #: includes/BDPG_Gateway.php:49 3151 #: includes/BDPG_Gateway.php:498 151 152 msgid "Please enter your %s account number." 152 153 msgstr "" 153 154 154 155 #. translators: %s: Payment Gateway. 155 #: includes/BDPG_Gateway.php:50 1156 #: includes/BDPG_Gateway.php:509 156 157 msgid "Please enter your %s transaction ID." 157 158 msgstr "" 158 159 159 160 #. translators: %s: Payment Gateway. 160 #: includes/BDPG_Gateway.php:5 46161 #: includes/BDPG_Gateway.php:6 30161 #: includes/BDPG_Gateway.php:557 162 #: includes/BDPG_Gateway.php:642 162 163 msgid "%s Account Number" 163 164 msgstr "" 164 165 165 #: includes/BDPG_Gateway.php:5 58166 #: includes/BDPG_Gateway.php:6 42166 #: includes/BDPG_Gateway.php:570 167 #: includes/BDPG_Gateway.php:655 167 168 msgid "Transaction ID" 168 169 msgstr "" 169 170 170 171 #. translators: %s: Payment Gateway. 171 #: includes/BDPG_Gateway.php: 593172 #: includes/BDPG_Gateway.php:604 172 173 msgid "%s Charge" 173 174 msgstr "" 174 175 175 #: includes/BDPG_Gateway.php:6 63176 #: includes/BDPG_Gateway.php:676 176 177 msgid "Payment No" 177 178 msgstr "" 178 179 179 #: includes/BDPG_Gateway.php:6 64180 #: includes/BDPG_Gateway.php:677 180 181 msgid "Tran. ID" 181 182 msgstr "" 182 183 183 #: includes/functions.php:1 1184 #: includes/functions.php:12 184 185 msgid "" 185 186 "\n" … … 192 193 msgstr "" 193 194 194 #: includes/functions.php:2 4195 #: includes/functions.php:25 195 196 msgid "" 196 197 "\n" … … 203 204 msgstr "" 204 205 205 #: includes/functions.php:3 7206 #: includes/functions.php:38 206 207 msgid "" 207 208 "\n" … … 214 215 msgstr "" 215 216 216 #: includes/functions.php:5 0217 #: includes/functions.php:51 217 218 msgid "" 218 219 "\n" … … 225 226 msgstr "" 226 227 228 #: includes/functions.php:71 229 msgid "bKash" 230 msgstr "" 231 232 #: includes/functions.php:73 233 msgid "Rocket" 234 msgstr "" 235 236 #: includes/functions.php:75 237 msgid "Nagad" 238 msgstr "" 239 240 #: includes/functions.php:77 241 msgid "Upay" 242 msgstr "" 243 227 244 #. translators: %1$s Plugin Name. 228 #: includes/Review.php:11 9245 #: includes/Review.php:117 229 246 msgid "Hey, we noticed you have been using %1$s for more than 3 days now - that's awesome! <br> Could you please do us a BIG favor and give it a rating on WordPress.org to help us do more great work and boost our motivation?" 230 247 msgstr "" 231 248 232 #: includes/Review.php:16 4249 #: includes/Review.php:162 233 250 msgid "Yes, you deserve it" 234 251 msgstr "" 235 252 236 #: includes/Review.php:16 8253 #: includes/Review.php:166 237 254 msgid "No, maybe later" 238 255 msgstr "" 239 256 240 #: includes/Review.php:17 2257 #: includes/Review.php:170 241 258 msgid "I already did" 242 259 msgstr "" -
bangladeshi-payment-gateways/trunk/readme.txt
r3283342 r3427499 4 4 Tags: mobile payment gateways, bangladeshi mobile banking, payment gateway, qr code, bKash Rocket Nagad Upay 5 5 Requires at least: 4.4 6 Tested up to: 6. 87 Stable tag: 3.0. 46 Tested up to: 6.9 7 Stable tag: 3.0.5 8 8 Requires PHP: 7.0.0 9 9 Requires Plugins: woocommerce … … 89 89 == Changelog == 90 90 91 = 3.0.5 - 26/12/2025 = 92 *Fix:* Fixed wrong payment method name. 93 *Fix:* Localization issue. 94 *Fix:* Fixed gateway settings issue. 95 91 96 = 3.0.4 - 28/04/2025 = 92 97 *Fix:* Fixed wrong payment method name -
bangladeshi-payment-gateways/trunk/vendor/appsero/client/src/Insights.php
r3205147 r3427499 435 435 $notice .= ' (<a class="' . $this->client->slug . '-insights-data-we-collect" href="#">' . $this->client->__trans( 'what we collect' ) . '</a>)'; 436 436 $notice .= '<p class="description" style="display:none;">' . implode( ', ', $this->data_we_collect() ) . '. '; 437 $notice .= 'We are using Appsero to collect your data. <a href="' . $policy_url . '" target="_blank">Learn more</a> about how Appsero collects and handle your data.</p>';437 $notice .= 'We are using Appsero to collect your data. <a href="' . $policy_url . '" target="_blank">Learn more</a> ↗</p>'; 438 438 439 439 echo '<div class="updated"><p>'; … … 925 925 <?php 926 926 echo sprintf( 927 $this->client->__trans( 'We share your data with <a href="%1$s" target="_blank">Appsero</a> to troubleshoot problems & make product improvements. <a href="%2$s" target="_blank">Learn more</a> about how Appsero handles your data.' ),927 $this->client->__trans( 'We share your data with <a href="%1$s" target="_blank">Appsero</a> to troubleshoot problems & make product improvements. <a href="%2$s" target="_blank">Learn more</a> ↗' ), 928 928 esc_url( 'https://appsero.com/' ), 929 929 esc_url( 'https://appsero.com/privacy-policy' ) -
bangladeshi-payment-gateways/trunk/vendor/autoload.php
r3283342 r3427499 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 23 20 require_once __DIR__ . '/composer/autoload_real.php'; 24 21 25 return ComposerAutoloaderInit 47f7c0fef846d70f6c4c0e8b040a0e80::getLoader();22 return ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2::getLoader(); -
bangladeshi-payment-gateways/trunk/vendor/composer/InstalledVersions.php
r3283342 r3427499 28 28 { 29 29 /** 30 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to 31 * @internal 32 */ 33 private static $selfDir = null; 34 35 /** 30 36 * @var mixed[]|null 31 37 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 38 */ 33 39 private static $installed; 40 41 /** 42 * @var bool 43 */ 44 private static $installedIsLocalDir; 34 45 35 46 /** … … 310 321 self::$installed = $data; 311 322 self::$installedByVendor = array(); 323 324 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 325 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 326 // so we have to assume it does not, and that may result in duplicate data being returned when listing 327 // all installed packages for example 328 self::$installedIsLocalDir = false; 329 } 330 331 /** 332 * @return string 333 */ 334 private static function getSelfDir() 335 { 336 if (self::$selfDir === null) { 337 self::$selfDir = strtr(__DIR__, '\\', '/'); 338 } 339 340 return self::$selfDir; 312 341 } 313 342 … … 323 352 324 353 $installed = array(); 354 $copiedLocalDir = false; 325 355 326 356 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir(); 327 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/'); 328 360 if (isset(self::$installedByVendor[$vendorDir])) { 329 361 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 363 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 364 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 365 self::$installedByVendor[$vendorDir] = $required; 366 $installed[] = $required; 367 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 368 self::$installed = $required; 369 self::$installedIsLocalDir = true; 336 370 } 371 } 372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 373 $copiedLocalDir = true; 337 374 } 338 375 } … … 351 388 } 352 389 353 if (self::$installed !== array() ) {390 if (self::$installed !== array() && !$copiedLocalDir) { 354 391 $installed[] = self::$installed; 355 392 } -
bangladeshi-payment-gateways/trunk/vendor/composer/autoload_real.php
r3283342 r3427499 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 47f7c0fef846d70f6c4c0e8b040a0e805 class ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 47f7c0fef846d70f6c4c0e8b040a0e80', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 47f7c0fef846d70f6c4c0e8b040a0e80', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e80::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e80::$files;36 $filesToLoad = \Composer\Autoload\ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$files; 37 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
bangladeshi-payment-gateways/trunk/vendor/composer/autoload_static.php
r3283342 r3427499 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e807 class ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2 8 8 { 9 9 public static $files = array ( … … 40 40 { 41 41 return \Closure::bind(function () use ($loader) { 42 $loader->prefixLengthsPsr4 = ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e80::$prefixLengthsPsr4;43 $loader->prefixDirsPsr4 = ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e80::$prefixDirsPsr4;44 $loader->classMap = ComposerStaticInit 47f7c0fef846d70f6c4c0e8b040a0e80::$classMap;42 $loader->prefixLengthsPsr4 = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$prefixLengthsPsr4; 43 $loader->prefixDirsPsr4 = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$prefixDirsPsr4; 44 $loader->classMap = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$classMap; 45 45 46 46 }, null, ClassLoader::class); -
bangladeshi-payment-gateways/trunk/vendor/composer/installed.json
r3283342 r3427499 8 8 "type": "git", 9 9 "url": "https://github.com/Appsero/client.git", 10 "reference": " aef4cf138ab4f348cee4e2f20f7d3cd815db0877"10 "reference": "96bc89344359e39104ab0da6464ee3aeff0b6897" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/Appsero/client/zipball/ aef4cf138ab4f348cee4e2f20f7d3cd815db0877",15 "reference": " aef4cf138ab4f348cee4e2f20f7d3cd815db0877",14 "url": "https://api.github.com/repos/Appsero/client/zipball/96bc89344359e39104ab0da6464ee3aeff0b6897", 15 "reference": "96bc89344359e39104ab0da6464ee3aeff0b6897", 16 16 "shasum": "" 17 17 }, … … 27 27 "wp-coding-standards/wpcs": "dev-develop" 28 28 }, 29 "time": "202 4-11-25T05:58:43+00:00",29 "time": "2025-11-24T09:57:42+00:00", 30 30 "default-branch": true, 31 31 "type": "library", -
bangladeshi-payment-gateways/trunk/vendor/composer/installed.php
r3283342 r3427499 2 2 'root' => array( 3 3 'name' => 'ultradevs/bangladeshi-payment-gateways', 4 'pretty_version' => 'dev- develop',5 'version' => 'dev- develop',6 'reference' => ' 87d864aa4a71b0ed21996f551d7ae11791b6b547',4 'pretty_version' => 'dev-master', 5 'version' => 'dev-master', 6 'reference' => '9776a7c010f9650914e471887f27db6cfe2c3aab', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-develop', 15 15 'version' => 'dev-develop', 16 'reference' => ' aef4cf138ab4f348cee4e2f20f7d3cd815db0877',16 'reference' => '96bc89344359e39104ab0da6464ee3aeff0b6897', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../appsero/client', … … 23 23 ), 24 24 'ultradevs/bangladeshi-payment-gateways' => array( 25 'pretty_version' => 'dev- develop',26 'version' => 'dev- develop',27 'reference' => ' 87d864aa4a71b0ed21996f551d7ae11791b6b547',25 'pretty_version' => 'dev-master', 26 'version' => 'dev-master', 27 'reference' => '9776a7c010f9650914e471887f27db6cfe2c3aab', 28 28 'type' => 'library', 29 29 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.