Plugin Directory

Changeset 3427499


Ignore:
Timestamp:
12/26/2025 12:53:04 AM (8 weeks ago)
Author:
ultradevs
Message:

Update to version 3.0.5 from GitHub

Location:
bangladeshi-payment-gateways
Files:
46 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bangladeshi-payment-gateways/tags/3.0.5/assets/admin/css/admin.css

    r3133395 r3427499  
    11#gateway_accounts img {
    2   width: 50px;
    3   height: 50px;
     2    width: 50px;
     3    height: 50px;
    44}
    55
    66#gateway_accounts .add_qr_c_img {
    7   margin: 10px;
     7    margin: 10px;
    88}
    99
    1010.bdpg-admin-data img {
    11   width: 70px;
     11    width: 70px;
    1212}
  • bangladeshi-payment-gateways/tags/3.0.5/assets/public/css/bdpg-public.css

    r2562695 r3427499  
    11.bdpg-total-amount {
    2     margin: 10px 0;
    3     color: green;
     2    margin: 10px 0;
     3    color: green;
    44}
    55
    66.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;
    1010}
    1111
    1212.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;
    1717}
    1818
    1919.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;
    2424}
    2525
    2626.bdpg-user__acc {
    27     margin: 10px 0;
     27    margin: 10px 0;
    2828}
    2929
    3030.bdpg-user__field {
    31     margin-bottom: 10px;
     31    margin-bottom: 10px;
    3232}
    3333.bdpg-user__field label {
    34     display: block;
     34    display: block;
    3535
    3636}
    3737
    3838.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;
    4343}
    4444
    4545.bdpg-g-details img {
    46     width: 50px;
    47     height: 50px;
    48     margin-bottom: 10px;
     46    width: 50px;
     47    height: 50px;
     48    margin-bottom: 10px;
    4949}
    5050
    5151.wc_payment_methods li label img {
    52     height: 30px !important;
    53     float: right;
     52    height: 30px !important;
     53    float: right;
    5454}
  • bangladeshi-payment-gateways/tags/3.0.5/assets/public/js/bdpg-public.js

    r2853163 r3427499  
    77 */
    88
    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     }
     9jQuery( 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    }
    1719);
  • bangladeshi-payment-gateways/tags/3.0.5/bd-payment-gateways.php

    r3283342 r3427499  
    1010 * Plugin URI:        https://ultradevs.com/products/wp-plugin/bangladeshi-payment-gateways/
    1111 * Description:       Bangladeshi Payment Gateways for WooCommerce.
    12  * Version:           3.0.4
     12 * Version:           3.0.5
    1313 * Author:            ultraDevs
    1414 * Author URI:        https://ultradevs.com
     
    2323
    2424// Constant.
    25 define( 'BD_PAYMENT_GATEWAYS_VERSION', '3.0.4' );
     25define( 'BD_PAYMENT_GATEWAYS_VERSION', '3.0.5' );
    2626define( 'BD_PAYMENT_GATEWAYS_NAME', 'Bangladeshi Payment Gateways' );
    2727define( 'BD_PAYMENT_GATEWAYS_DIR_PATH', plugin_dir_path( __FILE__ ) );
     
    8383    private function __construct() {
    8484
    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 );
    8889
    8990        register_activation_hook( __FILE__, array( $this, 'activate' ) );
    9091
    9192        do_action( 'bd_payment_gateways_loaded' );
    92 
    9393    }
    9494
     
    235235
    236236        return $links;
    237 
    238237    }
    239238
  • bangladeshi-payment-gateways/tags/3.0.5/composer.json

    r3283342 r3427499  
    11{
    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    }
    2222}
  • bangladeshi-payment-gateways/tags/3.0.5/includes/Activate.php

    r2562695 r3427499  
    2828
    2929        $this->plugin_data();
    30 
    3130    }
    3231
  • bangladeshi-payment-gateways/tags/3.0.5/includes/Assets_Manager.php

    r2562695 r3427499  
    3434            wp_enqueue_media();
    3535        }
    36 
    3736    }
    3837
     
    4645        wp_enqueue_style( 'bdpg-frontend', BD_PAYMENT_GATEWAYS_ASSETS . 'public/css/bdpg-public.css', '', BD_PAYMENT_GATEWAYS_VERSION );
    4746        wp_enqueue_script( 'bdpg-frontend', BD_PAYMENT_GATEWAYS_ASSETS . 'public/js/bdpg-public.js', array( 'jquery' ), BD_PAYMENT_GATEWAYS_VERSION, false );
    48 
    4947    }
    5048}
  • bangladeshi-payment-gateways/tags/3.0.5/includes/BDPG_Gateway.php

    r3283342 r3427499  
    9090        $this->icon       = apply_filters( 'bdpg_' . $this->gateway . '_icon', BD_PAYMENT_GATEWAYS_DIR_URL . 'assets/images/' . ucfirst( $this->gateway ) . '.png' );
    9191
    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();
    9795
    9896        // Load the Settings.
    9997        $this->init_settings();
    10098
    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' );
    105103        $this->gateway_charge         = $this->get_option( $this->gateway . '_charge' );
    106104        $this->gateway_fee            = $this->get_option( $this->gateway . '_fee' );
    107105        $this->gateway_charge_details = $this->get_option( 'gateway_charge_details' );
    108106
    109         $account = array(
     107        $account        = array(
    110108            array(
    111109                'type'    => $this->get_option( 'type' ),
     
    114112            ),
    115113        );
    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 );
    121118        add_action( 'woocommerce_thankyou_woo_' . $this->gateway, array( $this, 'bdpg_thankyou' ) );
    122119        add_action( 'woocommerce_email_before_order_table', array( $this, 'customer_email_instructions' ), 10, 3 );
     
    144141            /* translators: %s: Payment Gateway. */
    145142            __( '%s Payment Gateway Settings.', 'bangladeshi-payment-gateways' ),
    146             $this->gateway
     143            bdpg_gateway_name_to_title( $this->gateway )
    147144        );
    148         $this->method_title       = sprintf(
     145        $this->method_title = sprintf(
    149146            /* translators: %s: Payment Gateway. */
    150147            __( '%s', 'bangladeshi-payment-gateways' ),
    151             $this->gateway
     148            bdpg_gateway_name_to_title( $this->gateway )
    152149        );
    153150    }
     
    158155     */
    159156    public function init_form_fields() {
     157
    160158        $this->form_fields = array(
    161             'enabled'              => array(
     159            'enabled'                          => array(
    162160                'title'       => __( 'Enable/Disable', 'bangladeshi-payment-gateways' ),
    163161                'label'       => sprintf(
    164162                    /* translators: %s: Payment Gateway. */
    165163                    __( 'Enable %s Gateway', 'bangladeshi-payment-gateways' ),
    166                     $this->gateway
     164                    bdpg_gateway_name_to_title( $this->gateway )
    167165                ),
    168166                'type'        => 'checkbox',
     
    170168                'default'     => 'no',
    171169            ),
    172             'title'                => array(
     170            'title'                            => array(
    173171                'title'       => __( 'Title', 'bangladeshi-payment-gateways' ),
    174172                'type'        => 'text',
    175                 'default'     => $this->gateway,
     173                'default'     => bdpg_gateway_name_to_title( $this->gateway ),
    176174                'description' => __( 'Title', 'bangladeshi-payment-gateways' ),
    177175                'desc_tip'    => true,
    178176            ),
    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 ),
    183183            ),
    184184            $this->gateway . '_charge'         => array(
     
    186186                    /* translators: %s: Payment Gateway. */
    187187                    __( '%s Charge?', 'bangladeshi-payment-gateways' ),
    188                     $this->gateway
     188                    bdpg_gateway_name_to_title( $this->gateway )
    189189                ),
    190190                'type'        => 'checkbox',
     
    192192                    /* translators: %s: Payment Gateway. */
    193193                    __( 'Add %s <b>Send Money</b> charge?', 'bangladeshi-payment-gateways' ),
    194                     $this->gateway
     194                    bdpg_gateway_name_to_title( $this->gateway )
    195195                ),
    196196                'default'     => 'no',
     
    201201                    /* translators: %s: Payment Gateway. */
    202202                    __( '%s Fee', 'bangladeshi-payment-gateways' ),
    203                     $this->gateway
     203                    bdpg_gateway_name_to_title( $this->gateway )
    204204                ),
    205205                'type'        => 'text',
     
    212212                    /* translators: %s: Payment Gateway. */
    213213                    __( '%s Charge Details', 'bangladeshi-payment-gateways' ),
    214                     $this->gateway
     214                    bdpg_gateway_name_to_title( $this->gateway )
    215215                ),
    216216                'type'    => 'textarea',
     
    218218                    /* translators: %s: Payment Gateway. */
    219219                    __( '%s "Send Money" fee will be added with net price.', 'bangladeshi-payment-gateways' ),
    220                     $this->gateway
    221                 )
    222             ),
    223 
    224             'instructions'         => array(
     220                    bdpg_gateway_name_to_title( $this->gateway )
     221                ),
     222            ),
     223
     224            'instructions'                     => array(
    225225                'title'       => __( 'Instructions', 'bangladeshi-payment-gateways' ),
    226226                'type'        => 'textarea',
    227227                'description' => __( 'Instructions', 'bangladeshi-payment-gateways' ),
    228                 'default'     => ''
    229             ),
    230             'accounts'             => array(
     228                'default'     => '',
     229            ),
     230            'accounts'                         => array(
    231231                'type' => 'accounts',
    232232            ),
    233233        );
    234 
    235234    }
    236235
     
    244243        echo wpautop( wptexturize( __( $this->description, 'bangladeshi-payment-gateways' ) ) . ' ' . $gateway_charge_details );
    245244
    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' ) {
    249248            $total_payment = $this->dollar_rate * $woocommerce->cart->total;
    250             $symbol        = get_woocommerce_currency_symbol('BDT');
     249            $symbol        = get_woocommerce_currency_symbol( 'BDT' );
    251250        }
    252251
     
    284283                    <label for="<?php echo esc_attr( $this->gateway ); ?>_acc_no">
    285284                        <?php
    286                             echo sprintf(
     285                            printf(
    287286                                /* translators: %s: Payment Gateway. */
    288287                                __( 'Your %s Account Number', 'bangladeshi-payment-gateways' ),
    289                                 ucfirst( $this->gateway )
     288                                bdpg_gateway_name_to_title( $this->gateway )
    290289                            );
    291290                        ?>
     
    296295                    <label for="<?php echo esc_attr( $this->gateway ); ?>_trans_id">
    297296                        <?php
    298                             echo sprintf(
     297                            printf(
    299298                                /* translators: %s: Payment Gateway. */
    300299                                __( 'Your %s Transaction ID', 'bangladeshi-payment-gateways' ),
    301                                 ucfirst( $this->gateway )
     300                                bdpg_gateway_name_to_title( $this->gateway )
    302301                            );
    303302                        ?>
     
    333332                                <a href="#" class="add button">
    334333                                <?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' ); ?>
    336335                                </a>
    337336                            </th>
     
    343342                        if ( $this->accounts ) {
    344343                            foreach ( $this->accounts as $account ) {
    345                                 $i++;
     344                                ++$i;
    346345                                echo '<tr class="account">
    347346                                    <td class="sort"></td>
     
    388387    public function save_accounts() {
    389388
    390         if ( isset( $_POST[$this->gateway . '_account_type'] ) ) {
     389        if ( isset( $_POST[ $this->gateway . '_account_type' ] ) ) {
    391390            $accounts = array();
    392391
    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' ] );
    396395
    397396            foreach ( $type as $key => $value ) {
     
    407406            }
    408407            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        }
    411412    }
    412413
     
    422423
    423424        // 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(
    425428            /* 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            )
    428432        );
    429433
     
    434438        $woocommerce->cart->empty_cart();
    435439
    436         do_action('process_payment_bgd',$order_id , $order , $this );
     440        do_action( 'process_payment_bgd', $order_id, $order, $this );
    437441        // Return thankyou redirect.
    438442        return array(
     
    485489        }
    486490
    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' ] );
    489493
    490494        if ( '' === $number ) {
    491             wc_add_notice( sprintf(
     495            wc_add_notice(
     496                sprintf(
    492497                /* 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            );
    496503        }
    497504
    498505        if ( '' === $trans_id ) {
    499             wc_add_notice( sprintf(
     506            wc_add_notice(
     507                sprintf(
    500508                /* 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            );
    504514        }
    505515    }
     
    515525            return;
    516526        }
    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' ] );
    519529
    520530        update_post_meta( $order_id, 'woo_' . $this->gateway . '_number', $number );
     
    542552                        <th>
    543553                            <strong>
    544                                 <?php echo sprintf(
     554                                <?php
     555                                printf(
    545556                                    /* translators: %s: Payment Gateway. */
    546557                                    esc_html__( '%s Account Number', 'bangladeshi-payment-gateways' ),
    547                                     ucfirst( $this->gateway
    548                                     ) ); ?>
     558                                    bdpg_gateway_name_to_title( $this->gateway )
     559                                );
     560                                ?>
    549561                            </strong>
    550562                        </th>
     
    578590        $settings = get_option( 'woocommerce_woo_' . $this->gateway . '_settings' );
    579591
    580 
    581592        $av_gateways = $woocommerce->payment_gateways->get_available_payment_gateways();
    582593        if ( ! empty( $av_gateways ) ) {
     
    589600
    590601            if ( 'woo_' . $this->gateway === $payment_method ) {
    591                 $label  = sprintf(
     602                $label = sprintf(
    592603                    /* translators: %s: Payment Gateway. */
    593604                    esc_html__( '%s Charge', 'bangladeshi-payment-gateways' ),
    594                     ucfirst( $this->gateway )
     605                    bdpg_gateway_name_to_title( $this->gateway )
    595606                );
    596                 $amount = round( $cart->cart_contents_total * ( $settings[ $this->gateway . '_fee'] / 100 ) );
     607                $amount = round( $cart->cart_contents_total * ( $settings[ $this->gateway . '_fee' ] / 100 ) );
    597608                $cart->add_fee( $label, $amount, true, 'standard' );
    598609            }
     
    626637                        <th>
    627638                            <strong>
    628                             <?php echo sprintf(
     639                            <?php
     640                            printf(
    629641                                /* translators: %s: Payment Gateway. */
    630642                                esc_html__( '%s Account Number', 'bangladeshi-payment-gateways' ),
    631                                 ucfirst( $this->gateway )
    632                                 ); ?>
     643                                bdpg_gateway_name_to_title( $this->gateway )
     644                            );
     645                            ?>
    633646                            </strong>
    634647                        </th>
     
    665678
    666679        return $columns;
    667 
    668680    }
    669681
  • bangladeshi-payment-gateways/tags/3.0.5/includes/Gateways/Bkash.php

    r3133395 r3427499  
    1919 */
    2020class Bkash extends BDPG_Gateway {
    21     use Singleton;
     21    use Singleton;
    2222
    23     public function __construct() {
    24         $this->gateway = 'bkash';
     23    public function __construct() {
     24        $this->gateway = 'bkash';
    2525
    26         parent::__construct();
    27     }
    28 
     26        parent::__construct();
     27    }
    2928}
  • bangladeshi-payment-gateways/tags/3.0.5/includes/Gateways/Nagad.php

    r3133395 r3427499  
    1919 */
    2020class Nagad extends BDPG_Gateway {
    21     use Singleton;
    22    
    23     public function __construct() {
    24         $this->gateway = 'nagad';
     21    use Singleton;
    2522
    26         parent::__construct();
    27     }
     23    public function __construct() {
     24        $this->gateway = 'nagad';
    2825
     26        parent::__construct();
     27    }
    2928}
  • bangladeshi-payment-gateways/tags/3.0.5/includes/Gateways/Rocket.php

    r3133395 r3427499  
    1919 */
    2020class Rocket extends BDPG_Gateway {
    21     use Singleton;
     21    use Singleton;
    2222
    23     public function __construct() {
    24         $this->gateway = 'rocket';
     23    public function __construct() {
     24        $this->gateway = 'rocket';
    2525
    26         parent::__construct();
    27     }
    28 
     26        parent::__construct();
     27    }
    2928}
  • bangladeshi-payment-gateways/tags/3.0.5/includes/Gateways/Upay.php

    r3133395 r3427499  
    1919 */
    2020class Upay extends BDPG_Gateway {
    21     use Singleton;
     21    use Singleton;
    2222
    23     public function __construct() {
    24         $this->gateway = 'upay';
     23    public function __construct() {
     24        $this->gateway = 'upay';
    2525
    26         parent::__construct();
    27     }
    28 
     26        parent::__construct();
     27    }
    2928}
  • bangladeshi-payment-gateways/tags/3.0.5/includes/Review.php

    r2562695 r3427499  
    8989                return;
    9090            }
    91         } else {
    92             if ( ! empty( $install_date ) ) {
     91        } elseif ( ! empty( $install_date ) ) {
    9392                $installed_days = Helper::time_to_days( $install_date );
    94                 if ( $installed_days < 3 ) {
    95                     return;
    96                 }
     93            if ( $installed_days < 3 ) {
     94                return;
    9795            }
    9896        }
  • bangladeshi-payment-gateways/tags/3.0.5/includes/functions.php

    r3283342 r3427499  
    55 * @package BDPaymentGateways
    66 */
     7function bdpg_get_instruction_by_gateway( $gateway ) {
    78
    8 function bdpg_get_instruction_by_gateway( $gateway ) {
     9    error_log( 'Getting instructions for gateway: ' . $gateway );
    910    switch ( $gateway ) {
    1011        case 'bkash':
     
    6364            return '';
    6465    }
     66}
    6567
     68function 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    }
    6681}
  • bangladeshi-payment-gateways/tags/3.0.5/languages/Bangladeshi-Payment-Gateways.pot

    r3283342 r3427499  
    33msgid ""
    44msgstr ""
    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"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/Bangladeshi-Payment-Gateways\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.11.0\n"
     14"X-Generator: WP-CLI 2.10.0\n"
    1515"X-Domain: bangladeshi-payment-gateways\n"
    1616
     
    6262
    6363#. translators: %s: Payment Gateway.
    64 #: includes/BDPG_Gateway.php:145
     64#: includes/BDPG_Gateway.php:142
    6565msgid "%s Payment Gateway Settings."
    6666msgstr ""
    6767
    6868#. translators: %s: Payment Gateway.
    69 #: includes/BDPG_Gateway.php:150
     69#: includes/BDPG_Gateway.php:147
    7070msgid "%s"
    7171msgstr ""
    7272
    73 #: includes/BDPG_Gateway.php:162
     73#: includes/BDPG_Gateway.php:160
    7474msgid "Enable/Disable"
    7575msgstr ""
    7676
    7777#. translators: %s: Payment Gateway.
    78 #: includes/BDPG_Gateway.php:165
     78#: includes/BDPG_Gateway.php:163
    7979msgid "Enable %s Gateway"
    8080msgstr ""
    8181
    82 #: includes/BDPG_Gateway.php:173
    83 #: includes/BDPG_Gateway.php:176
     82#: includes/BDPG_Gateway.php:171
     83#: includes/BDPG_Gateway.php:174
    8484msgid "Title"
    8585msgstr ""
    8686
     87#: includes/BDPG_Gateway.php:178
    8788#: includes/BDPG_Gateway.php:180
    8889msgid "Description"
     
    124125
    125126#. translators: %s: Total Payment.
    126 #: includes/BDPG_Gateway.php:255
     127#: includes/BDPG_Gateway.php:254
    127128msgid "You need to send us <b>%s</b>"
    128129msgstr ""
    129130
    130131#. translators: %s: Payment Gateway.
    131 #: includes/BDPG_Gateway.php:288
     132#: includes/BDPG_Gateway.php:287
    132133msgid "Your %s Account Number"
    133134msgstr ""
    134135
    135136#. translators: %s: Payment Gateway.
    136 #: includes/BDPG_Gateway.php:300
     137#: includes/BDPG_Gateway.php:299
    137138msgid "Your %s Transaction ID"
    138139msgstr ""
    139140
    140141#. translators: %s: Payment Gateway.
    141 #: includes/BDPG_Gateway.php:426
     142#: includes/BDPG_Gateway.php:429
    142143msgid "Awaiting %s payment."
    143144msgstr ""
    144145
    145 #: includes/BDPG_Gateway.php:456
     146#: includes/BDPG_Gateway.php:460
    146147msgid "Thank you. Your order has been received."
    147148msgstr ""
    148149
    149150#. translators: %s: Payment Gateway.
    150 #: includes/BDPG_Gateway.php:493
     151#: includes/BDPG_Gateway.php:498
    151152msgid "Please enter your %s account number."
    152153msgstr ""
    153154
    154155#. translators: %s: Payment Gateway.
    155 #: includes/BDPG_Gateway.php:501
     156#: includes/BDPG_Gateway.php:509
    156157msgid "Please enter your %s transaction ID."
    157158msgstr ""
    158159
    159160#. translators: %s: Payment Gateway.
    160 #: includes/BDPG_Gateway.php:546
    161 #: includes/BDPG_Gateway.php:630
     161#: includes/BDPG_Gateway.php:557
     162#: includes/BDPG_Gateway.php:642
    162163msgid "%s Account Number"
    163164msgstr ""
    164165
    165 #: includes/BDPG_Gateway.php:558
    166 #: includes/BDPG_Gateway.php:642
     166#: includes/BDPG_Gateway.php:570
     167#: includes/BDPG_Gateway.php:655
    167168msgid "Transaction ID"
    168169msgstr ""
    169170
    170171#. translators: %s: Payment Gateway.
    171 #: includes/BDPG_Gateway.php:593
     172#: includes/BDPG_Gateway.php:604
    172173msgid "%s Charge"
    173174msgstr ""
    174175
    175 #: includes/BDPG_Gateway.php:663
     176#: includes/BDPG_Gateway.php:676
    176177msgid "Payment No"
    177178msgstr ""
    178179
    179 #: includes/BDPG_Gateway.php:664
     180#: includes/BDPG_Gateway.php:677
    180181msgid "Tran. ID"
    181182msgstr ""
    182183
    183 #: includes/functions.php:11
     184#: includes/functions.php:12
    184185msgid ""
    185186"\n"
     
    192193msgstr ""
    193194
    194 #: includes/functions.php:24
     195#: includes/functions.php:25
    195196msgid ""
    196197"\n"
     
    203204msgstr ""
    204205
    205 #: includes/functions.php:37
     206#: includes/functions.php:38
    206207msgid ""
    207208"\n"
     
    214215msgstr ""
    215216
    216 #: includes/functions.php:50
     217#: includes/functions.php:51
    217218msgid ""
    218219"\n"
     
    225226msgstr ""
    226227
     228#: includes/functions.php:71
     229msgid "bKash"
     230msgstr ""
     231
     232#: includes/functions.php:73
     233msgid "Rocket"
     234msgstr ""
     235
     236#: includes/functions.php:75
     237msgid "Nagad"
     238msgstr ""
     239
     240#: includes/functions.php:77
     241msgid "Upay"
     242msgstr ""
     243
    227244#. translators: %1$s Plugin Name.
    228 #: includes/Review.php:119
     245#: includes/Review.php:117
    229246msgid "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?"
    230247msgstr ""
    231248
    232 #: includes/Review.php:164
     249#: includes/Review.php:162
    233250msgid "Yes, you deserve it"
    234251msgstr ""
    235252
    236 #: includes/Review.php:168
     253#: includes/Review.php:166
    237254msgid "No, maybe later"
    238255msgstr ""
    239256
    240 #: includes/Review.php:172
     257#: includes/Review.php:170
    241258msgid "I already did"
    242259msgstr ""
  • bangladeshi-payment-gateways/tags/3.0.5/readme.txt

    r3283342 r3427499  
    44Tags: mobile payment gateways, bangladeshi mobile banking, payment gateway, qr code, bKash Rocket Nagad Upay
    55Requires at least: 4.4
    6 Tested up to: 6.8
    7 Stable tag: 3.0.4
     6Tested up to: 6.9
     7Stable tag: 3.0.5
    88Requires PHP: 7.0.0
    99Requires Plugins: woocommerce
     
    8989== Changelog ==
    9090
     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
    9196= 3.0.4 - 28/04/2025 =
    9297*Fix:* Fixed wrong payment method name
  • bangladeshi-payment-gateways/tags/3.0.5/vendor/appsero/client/src/Insights.php

    r3205147 r3427499  
    435435        $notice .= ' (<a class="' . $this->client->slug . '-insights-data-we-collect" href="#">' . $this->client->__trans( 'what we collect' ) . '</a>)';
    436436        $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> &nearr;</p>';
    438438
    439439        echo '<div class="updated"><p>';
     
    925925                        <?php
    926926                        echo sprintf(
    927                             $this->client->__trans( 'We share your data with <a href="%1$s" target="_blank">Appsero</a> to troubleshoot problems &amp; 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 &amp; make product improvements. <a href="%2$s" target="_blank">Learn more</a> &nearr;' ),
    928928                            esc_url( 'https://appsero.com/' ),
    929929                            esc_url( 'https://appsero.com/privacy-policy' )
  • bangladeshi-payment-gateways/tags/3.0.5/vendor/autoload.php

    r3283342 r3427499  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
    2320require_once __DIR__ . '/composer/autoload_real.php';
    2421
    25 return ComposerAutoloaderInit47f7c0fef846d70f6c4c0e8b040a0e80::getLoader();
     22return ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2::getLoader();
  • bangladeshi-payment-gateways/tags/3.0.5/vendor/composer/InstalledVersions.php

    r3283342 r3427499  
    2828{
    2929    /**
     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    /**
    3036     * @var mixed[]|null
    3137     * @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
    3238     */
    3339    private static $installed;
     40
     41    /**
     42     * @var bool
     43     */
     44    private static $installedIsLocalDir;
    3445
    3546    /**
     
    310321        self::$installed = $data;
    311322        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;
    312341    }
    313342
     
    323352
    324353        $installed = array();
     354        $copiedLocalDir = false;
    325355
    326356        if (self::$canGetVendors) {
     357            $selfDir = self::getSelfDir();
    327358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     359                $vendorDir = strtr($vendorDir, '\\', '/');
    328360                if (isset(self::$installedByVendor[$vendorDir])) {
    329361                    $installed[] = self::$installedByVendor[$vendorDir];
     
    331363                    /** @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 */
    332364                    $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;
    336370                    }
     371                }
     372                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     373                    $copiedLocalDir = true;
    337374                }
    338375            }
     
    351388        }
    352389
    353         if (self::$installed !== array()) {
     390        if (self::$installed !== array() && !$copiedLocalDir) {
    354391            $installed[] = self::$installed;
    355392        }
  • bangladeshi-payment-gateways/tags/3.0.5/vendor/composer/autoload_real.php

    r3283342 r3427499  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit47f7c0fef846d70f6c4c0e8b040a0e80
     5class ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit47f7c0fef846d70f6c4c0e8b040a0e80', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit47f7c0fef846d70f6c4c0e8b040a0e80', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • bangladeshi-payment-gateways/tags/3.0.5/vendor/composer/autoload_static.php

    r3283342 r3427499  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80
     7class ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2
    88{
    99    public static $files = array (
     
    4040    {
    4141        return \Closure::bind(function () use ($loader) {
    42             $loader->prefixLengthsPsr4 = ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80::$prefixLengthsPsr4;
    43             $loader->prefixDirsPsr4 = ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80::$prefixDirsPsr4;
    44             $loader->classMap = ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80::$classMap;
     42            $loader->prefixLengthsPsr4 = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$prefixLengthsPsr4;
     43            $loader->prefixDirsPsr4 = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$prefixDirsPsr4;
     44            $loader->classMap = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$classMap;
    4545
    4646        }, null, ClassLoader::class);
  • bangladeshi-payment-gateways/tags/3.0.5/vendor/composer/installed.json

    r3283342 r3427499  
    88                "type": "git",
    99                "url": "https://github.com/Appsero/client.git",
    10                 "reference": "aef4cf138ab4f348cee4e2f20f7d3cd815db0877"
     10                "reference": "96bc89344359e39104ab0da6464ee3aeff0b6897"
    1111            },
    1212            "dist": {
    1313                "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",
    1616                "shasum": ""
    1717            },
     
    2727                "wp-coding-standards/wpcs": "dev-develop"
    2828            },
    29             "time": "2024-11-25T05:58:43+00:00",
     29            "time": "2025-11-24T09:57:42+00:00",
    3030            "default-branch": true,
    3131            "type": "library",
  • bangladeshi-payment-gateways/tags/3.0.5/vendor/composer/installed.php

    r3283342 r3427499  
    22    'root' => array(
    33        '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',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-develop',
    1515            'version' => 'dev-develop',
    16             'reference' => 'aef4cf138ab4f348cee4e2f20f7d3cd815db0877',
     16            'reference' => '96bc89344359e39104ab0da6464ee3aeff0b6897',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../appsero/client',
     
    2323        ),
    2424        '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',
    2828            'type' => 'library',
    2929            'install_path' => __DIR__ . '/../../',
  • bangladeshi-payment-gateways/trunk/assets/admin/css/admin.css

    r3133395 r3427499  
    11#gateway_accounts img {
    2   width: 50px;
    3   height: 50px;
     2    width: 50px;
     3    height: 50px;
    44}
    55
    66#gateway_accounts .add_qr_c_img {
    7   margin: 10px;
     7    margin: 10px;
    88}
    99
    1010.bdpg-admin-data img {
    11   width: 70px;
     11    width: 70px;
    1212}
  • bangladeshi-payment-gateways/trunk/assets/public/css/bdpg-public.css

    r2562695 r3427499  
    11.bdpg-total-amount {
    2     margin: 10px 0;
    3     color: green;
     2    margin: 10px 0;
     3    color: green;
    44}
    55
    66.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;
    1010}
    1111
    1212.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;
    1717}
    1818
    1919.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;
    2424}
    2525
    2626.bdpg-user__acc {
    27     margin: 10px 0;
     27    margin: 10px 0;
    2828}
    2929
    3030.bdpg-user__field {
    31     margin-bottom: 10px;
     31    margin-bottom: 10px;
    3232}
    3333.bdpg-user__field label {
    34     display: block;
     34    display: block;
    3535
    3636}
    3737
    3838.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;
    4343}
    4444
    4545.bdpg-g-details img {
    46     width: 50px;
    47     height: 50px;
    48     margin-bottom: 10px;
     46    width: 50px;
     47    height: 50px;
     48    margin-bottom: 10px;
    4949}
    5050
    5151.wc_payment_methods li label img {
    52     height: 30px !important;
    53     float: right;
     52    height: 30px !important;
     53    float: right;
    5454}
  • bangladeshi-payment-gateways/trunk/assets/public/js/bdpg-public.js

    r2853163 r3427499  
    77 */
    88
    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     }
     9jQuery( 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    }
    1719);
  • bangladeshi-payment-gateways/trunk/bd-payment-gateways.php

    r3283342 r3427499  
    1010 * Plugin URI:        https://ultradevs.com/products/wp-plugin/bangladeshi-payment-gateways/
    1111 * Description:       Bangladeshi Payment Gateways for WooCommerce.
    12  * Version:           3.0.4
     12 * Version:           3.0.5
    1313 * Author:            ultraDevs
    1414 * Author URI:        https://ultradevs.com
     
    2323
    2424// Constant.
    25 define( 'BD_PAYMENT_GATEWAYS_VERSION', '3.0.4' );
     25define( 'BD_PAYMENT_GATEWAYS_VERSION', '3.0.5' );
    2626define( 'BD_PAYMENT_GATEWAYS_NAME', 'Bangladeshi Payment Gateways' );
    2727define( 'BD_PAYMENT_GATEWAYS_DIR_PATH', plugin_dir_path( __FILE__ ) );
     
    8383    private function __construct() {
    8484
    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 );
    8889
    8990        register_activation_hook( __FILE__, array( $this, 'activate' ) );
    9091
    9192        do_action( 'bd_payment_gateways_loaded' );
    92 
    9393    }
    9494
     
    235235
    236236        return $links;
    237 
    238237    }
    239238
  • bangladeshi-payment-gateways/trunk/composer.json

    r3283342 r3427499  
    11{
    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    }
    2222}
  • bangladeshi-payment-gateways/trunk/includes/Activate.php

    r2562695 r3427499  
    2828
    2929        $this->plugin_data();
    30 
    3130    }
    3231
  • bangladeshi-payment-gateways/trunk/includes/Assets_Manager.php

    r2562695 r3427499  
    3434            wp_enqueue_media();
    3535        }
    36 
    3736    }
    3837
     
    4645        wp_enqueue_style( 'bdpg-frontend', BD_PAYMENT_GATEWAYS_ASSETS . 'public/css/bdpg-public.css', '', BD_PAYMENT_GATEWAYS_VERSION );
    4746        wp_enqueue_script( 'bdpg-frontend', BD_PAYMENT_GATEWAYS_ASSETS . 'public/js/bdpg-public.js', array( 'jquery' ), BD_PAYMENT_GATEWAYS_VERSION, false );
    48 
    4947    }
    5048}
  • bangladeshi-payment-gateways/trunk/includes/BDPG_Gateway.php

    r3283342 r3427499  
    9090        $this->icon       = apply_filters( 'bdpg_' . $this->gateway . '_icon', BD_PAYMENT_GATEWAYS_DIR_URL . 'assets/images/' . ucfirst( $this->gateway ) . '.png' );
    9191
    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();
    9795
    9896        // Load the Settings.
    9997        $this->init_settings();
    10098
    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' );
    105103        $this->gateway_charge         = $this->get_option( $this->gateway . '_charge' );
    106104        $this->gateway_fee            = $this->get_option( $this->gateway . '_fee' );
    107105        $this->gateway_charge_details = $this->get_option( 'gateway_charge_details' );
    108106
    109         $account = array(
     107        $account        = array(
    110108            array(
    111109                'type'    => $this->get_option( 'type' ),
     
    114112            ),
    115113        );
    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 );
    121118        add_action( 'woocommerce_thankyou_woo_' . $this->gateway, array( $this, 'bdpg_thankyou' ) );
    122119        add_action( 'woocommerce_email_before_order_table', array( $this, 'customer_email_instructions' ), 10, 3 );
     
    144141            /* translators: %s: Payment Gateway. */
    145142            __( '%s Payment Gateway Settings.', 'bangladeshi-payment-gateways' ),
    146             $this->gateway
     143            bdpg_gateway_name_to_title( $this->gateway )
    147144        );
    148         $this->method_title       = sprintf(
     145        $this->method_title = sprintf(
    149146            /* translators: %s: Payment Gateway. */
    150147            __( '%s', 'bangladeshi-payment-gateways' ),
    151             $this->gateway
     148            bdpg_gateway_name_to_title( $this->gateway )
    152149        );
    153150    }
     
    158155     */
    159156    public function init_form_fields() {
     157
    160158        $this->form_fields = array(
    161             'enabled'              => array(
     159            'enabled'                          => array(
    162160                'title'       => __( 'Enable/Disable', 'bangladeshi-payment-gateways' ),
    163161                'label'       => sprintf(
    164162                    /* translators: %s: Payment Gateway. */
    165163                    __( 'Enable %s Gateway', 'bangladeshi-payment-gateways' ),
    166                     $this->gateway
     164                    bdpg_gateway_name_to_title( $this->gateway )
    167165                ),
    168166                'type'        => 'checkbox',
     
    170168                'default'     => 'no',
    171169            ),
    172             'title'                => array(
     170            'title'                            => array(
    173171                'title'       => __( 'Title', 'bangladeshi-payment-gateways' ),
    174172                'type'        => 'text',
    175                 'default'     => $this->gateway,
     173                'default'     => bdpg_gateway_name_to_title( $this->gateway ),
    176174                'description' => __( 'Title', 'bangladeshi-payment-gateways' ),
    177175                'desc_tip'    => true,
    178176            ),
    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 ),
    183183            ),
    184184            $this->gateway . '_charge'         => array(
     
    186186                    /* translators: %s: Payment Gateway. */
    187187                    __( '%s Charge?', 'bangladeshi-payment-gateways' ),
    188                     $this->gateway
     188                    bdpg_gateway_name_to_title( $this->gateway )
    189189                ),
    190190                'type'        => 'checkbox',
     
    192192                    /* translators: %s: Payment Gateway. */
    193193                    __( 'Add %s <b>Send Money</b> charge?', 'bangladeshi-payment-gateways' ),
    194                     $this->gateway
     194                    bdpg_gateway_name_to_title( $this->gateway )
    195195                ),
    196196                'default'     => 'no',
     
    201201                    /* translators: %s: Payment Gateway. */
    202202                    __( '%s Fee', 'bangladeshi-payment-gateways' ),
    203                     $this->gateway
     203                    bdpg_gateway_name_to_title( $this->gateway )
    204204                ),
    205205                'type'        => 'text',
     
    212212                    /* translators: %s: Payment Gateway. */
    213213                    __( '%s Charge Details', 'bangladeshi-payment-gateways' ),
    214                     $this->gateway
     214                    bdpg_gateway_name_to_title( $this->gateway )
    215215                ),
    216216                'type'    => 'textarea',
     
    218218                    /* translators: %s: Payment Gateway. */
    219219                    __( '%s "Send Money" fee will be added with net price.', 'bangladeshi-payment-gateways' ),
    220                     $this->gateway
    221                 )
    222             ),
    223 
    224             'instructions'         => array(
     220                    bdpg_gateway_name_to_title( $this->gateway )
     221                ),
     222            ),
     223
     224            'instructions'                     => array(
    225225                'title'       => __( 'Instructions', 'bangladeshi-payment-gateways' ),
    226226                'type'        => 'textarea',
    227227                'description' => __( 'Instructions', 'bangladeshi-payment-gateways' ),
    228                 'default'     => ''
    229             ),
    230             'accounts'             => array(
     228                'default'     => '',
     229            ),
     230            'accounts'                         => array(
    231231                'type' => 'accounts',
    232232            ),
    233233        );
    234 
    235234    }
    236235
     
    244243        echo wpautop( wptexturize( __( $this->description, 'bangladeshi-payment-gateways' ) ) . ' ' . $gateway_charge_details );
    245244
    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' ) {
    249248            $total_payment = $this->dollar_rate * $woocommerce->cart->total;
    250             $symbol        = get_woocommerce_currency_symbol('BDT');
     249            $symbol        = get_woocommerce_currency_symbol( 'BDT' );
    251250        }
    252251
     
    284283                    <label for="<?php echo esc_attr( $this->gateway ); ?>_acc_no">
    285284                        <?php
    286                             echo sprintf(
     285                            printf(
    287286                                /* translators: %s: Payment Gateway. */
    288287                                __( 'Your %s Account Number', 'bangladeshi-payment-gateways' ),
    289                                 ucfirst( $this->gateway )
     288                                bdpg_gateway_name_to_title( $this->gateway )
    290289                            );
    291290                        ?>
     
    296295                    <label for="<?php echo esc_attr( $this->gateway ); ?>_trans_id">
    297296                        <?php
    298                             echo sprintf(
     297                            printf(
    299298                                /* translators: %s: Payment Gateway. */
    300299                                __( 'Your %s Transaction ID', 'bangladeshi-payment-gateways' ),
    301                                 ucfirst( $this->gateway )
     300                                bdpg_gateway_name_to_title( $this->gateway )
    302301                            );
    303302                        ?>
     
    333332                                <a href="#" class="add button">
    334333                                <?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' ); ?>
    336335                                </a>
    337336                            </th>
     
    343342                        if ( $this->accounts ) {
    344343                            foreach ( $this->accounts as $account ) {
    345                                 $i++;
     344                                ++$i;
    346345                                echo '<tr class="account">
    347346                                    <td class="sort"></td>
     
    388387    public function save_accounts() {
    389388
    390         if ( isset( $_POST[$this->gateway . '_account_type'] ) ) {
     389        if ( isset( $_POST[ $this->gateway . '_account_type' ] ) ) {
    391390            $accounts = array();
    392391
    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' ] );
    396395
    397396            foreach ( $type as $key => $value ) {
     
    407406            }
    408407            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        }
    411412    }
    412413
     
    422423
    423424        // 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(
    425428            /* 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            )
    428432        );
    429433
     
    434438        $woocommerce->cart->empty_cart();
    435439
    436         do_action('process_payment_bgd',$order_id , $order , $this );
     440        do_action( 'process_payment_bgd', $order_id, $order, $this );
    437441        // Return thankyou redirect.
    438442        return array(
     
    485489        }
    486490
    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' ] );
    489493
    490494        if ( '' === $number ) {
    491             wc_add_notice( sprintf(
     495            wc_add_notice(
     496                sprintf(
    492497                /* 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            );
    496503        }
    497504
    498505        if ( '' === $trans_id ) {
    499             wc_add_notice( sprintf(
     506            wc_add_notice(
     507                sprintf(
    500508                /* 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            );
    504514        }
    505515    }
     
    515525            return;
    516526        }
    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' ] );
    519529
    520530        update_post_meta( $order_id, 'woo_' . $this->gateway . '_number', $number );
     
    542552                        <th>
    543553                            <strong>
    544                                 <?php echo sprintf(
     554                                <?php
     555                                printf(
    545556                                    /* translators: %s: Payment Gateway. */
    546557                                    esc_html__( '%s Account Number', 'bangladeshi-payment-gateways' ),
    547                                     ucfirst( $this->gateway
    548                                     ) ); ?>
     558                                    bdpg_gateway_name_to_title( $this->gateway )
     559                                );
     560                                ?>
    549561                            </strong>
    550562                        </th>
     
    578590        $settings = get_option( 'woocommerce_woo_' . $this->gateway . '_settings' );
    579591
    580 
    581592        $av_gateways = $woocommerce->payment_gateways->get_available_payment_gateways();
    582593        if ( ! empty( $av_gateways ) ) {
     
    589600
    590601            if ( 'woo_' . $this->gateway === $payment_method ) {
    591                 $label  = sprintf(
     602                $label = sprintf(
    592603                    /* translators: %s: Payment Gateway. */
    593604                    esc_html__( '%s Charge', 'bangladeshi-payment-gateways' ),
    594                     ucfirst( $this->gateway )
     605                    bdpg_gateway_name_to_title( $this->gateway )
    595606                );
    596                 $amount = round( $cart->cart_contents_total * ( $settings[ $this->gateway . '_fee'] / 100 ) );
     607                $amount = round( $cart->cart_contents_total * ( $settings[ $this->gateway . '_fee' ] / 100 ) );
    597608                $cart->add_fee( $label, $amount, true, 'standard' );
    598609            }
     
    626637                        <th>
    627638                            <strong>
    628                             <?php echo sprintf(
     639                            <?php
     640                            printf(
    629641                                /* translators: %s: Payment Gateway. */
    630642                                esc_html__( '%s Account Number', 'bangladeshi-payment-gateways' ),
    631                                 ucfirst( $this->gateway )
    632                                 ); ?>
     643                                bdpg_gateway_name_to_title( $this->gateway )
     644                            );
     645                            ?>
    633646                            </strong>
    634647                        </th>
     
    665678
    666679        return $columns;
    667 
    668680    }
    669681
  • bangladeshi-payment-gateways/trunk/includes/Gateways/Bkash.php

    r3133395 r3427499  
    1919 */
    2020class Bkash extends BDPG_Gateway {
    21     use Singleton;
     21    use Singleton;
    2222
    23     public function __construct() {
    24         $this->gateway = 'bkash';
     23    public function __construct() {
     24        $this->gateway = 'bkash';
    2525
    26         parent::__construct();
    27     }
    28 
     26        parent::__construct();
     27    }
    2928}
  • bangladeshi-payment-gateways/trunk/includes/Gateways/Nagad.php

    r3133395 r3427499  
    1919 */
    2020class Nagad extends BDPG_Gateway {
    21     use Singleton;
    22    
    23     public function __construct() {
    24         $this->gateway = 'nagad';
     21    use Singleton;
    2522
    26         parent::__construct();
    27     }
     23    public function __construct() {
     24        $this->gateway = 'nagad';
    2825
     26        parent::__construct();
     27    }
    2928}
  • bangladeshi-payment-gateways/trunk/includes/Gateways/Rocket.php

    r3133395 r3427499  
    1919 */
    2020class Rocket extends BDPG_Gateway {
    21     use Singleton;
     21    use Singleton;
    2222
    23     public function __construct() {
    24         $this->gateway = 'rocket';
     23    public function __construct() {
     24        $this->gateway = 'rocket';
    2525
    26         parent::__construct();
    27     }
    28 
     26        parent::__construct();
     27    }
    2928}
  • bangladeshi-payment-gateways/trunk/includes/Gateways/Upay.php

    r3133395 r3427499  
    1919 */
    2020class Upay extends BDPG_Gateway {
    21     use Singleton;
     21    use Singleton;
    2222
    23     public function __construct() {
    24         $this->gateway = 'upay';
     23    public function __construct() {
     24        $this->gateway = 'upay';
    2525
    26         parent::__construct();
    27     }
    28 
     26        parent::__construct();
     27    }
    2928}
  • bangladeshi-payment-gateways/trunk/includes/Review.php

    r2562695 r3427499  
    8989                return;
    9090            }
    91         } else {
    92             if ( ! empty( $install_date ) ) {
     91        } elseif ( ! empty( $install_date ) ) {
    9392                $installed_days = Helper::time_to_days( $install_date );
    94                 if ( $installed_days < 3 ) {
    95                     return;
    96                 }
     93            if ( $installed_days < 3 ) {
     94                return;
    9795            }
    9896        }
  • bangladeshi-payment-gateways/trunk/includes/functions.php

    r3283342 r3427499  
    55 * @package BDPaymentGateways
    66 */
     7function bdpg_get_instruction_by_gateway( $gateway ) {
    78
    8 function bdpg_get_instruction_by_gateway( $gateway ) {
     9    error_log( 'Getting instructions for gateway: ' . $gateway );
    910    switch ( $gateway ) {
    1011        case 'bkash':
     
    6364            return '';
    6465    }
     66}
    6567
     68function 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    }
    6681}
  • bangladeshi-payment-gateways/trunk/languages/Bangladeshi-Payment-Gateways.pot

    r3283342 r3427499  
    33msgid ""
    44msgstr ""
    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"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/Bangladeshi-Payment-Gateways\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.11.0\n"
     14"X-Generator: WP-CLI 2.10.0\n"
    1515"X-Domain: bangladeshi-payment-gateways\n"
    1616
     
    6262
    6363#. translators: %s: Payment Gateway.
    64 #: includes/BDPG_Gateway.php:145
     64#: includes/BDPG_Gateway.php:142
    6565msgid "%s Payment Gateway Settings."
    6666msgstr ""
    6767
    6868#. translators: %s: Payment Gateway.
    69 #: includes/BDPG_Gateway.php:150
     69#: includes/BDPG_Gateway.php:147
    7070msgid "%s"
    7171msgstr ""
    7272
    73 #: includes/BDPG_Gateway.php:162
     73#: includes/BDPG_Gateway.php:160
    7474msgid "Enable/Disable"
    7575msgstr ""
    7676
    7777#. translators: %s: Payment Gateway.
    78 #: includes/BDPG_Gateway.php:165
     78#: includes/BDPG_Gateway.php:163
    7979msgid "Enable %s Gateway"
    8080msgstr ""
    8181
    82 #: includes/BDPG_Gateway.php:173
    83 #: includes/BDPG_Gateway.php:176
     82#: includes/BDPG_Gateway.php:171
     83#: includes/BDPG_Gateway.php:174
    8484msgid "Title"
    8585msgstr ""
    8686
     87#: includes/BDPG_Gateway.php:178
    8788#: includes/BDPG_Gateway.php:180
    8889msgid "Description"
     
    124125
    125126#. translators: %s: Total Payment.
    126 #: includes/BDPG_Gateway.php:255
     127#: includes/BDPG_Gateway.php:254
    127128msgid "You need to send us <b>%s</b>"
    128129msgstr ""
    129130
    130131#. translators: %s: Payment Gateway.
    131 #: includes/BDPG_Gateway.php:288
     132#: includes/BDPG_Gateway.php:287
    132133msgid "Your %s Account Number"
    133134msgstr ""
    134135
    135136#. translators: %s: Payment Gateway.
    136 #: includes/BDPG_Gateway.php:300
     137#: includes/BDPG_Gateway.php:299
    137138msgid "Your %s Transaction ID"
    138139msgstr ""
    139140
    140141#. translators: %s: Payment Gateway.
    141 #: includes/BDPG_Gateway.php:426
     142#: includes/BDPG_Gateway.php:429
    142143msgid "Awaiting %s payment."
    143144msgstr ""
    144145
    145 #: includes/BDPG_Gateway.php:456
     146#: includes/BDPG_Gateway.php:460
    146147msgid "Thank you. Your order has been received."
    147148msgstr ""
    148149
    149150#. translators: %s: Payment Gateway.
    150 #: includes/BDPG_Gateway.php:493
     151#: includes/BDPG_Gateway.php:498
    151152msgid "Please enter your %s account number."
    152153msgstr ""
    153154
    154155#. translators: %s: Payment Gateway.
    155 #: includes/BDPG_Gateway.php:501
     156#: includes/BDPG_Gateway.php:509
    156157msgid "Please enter your %s transaction ID."
    157158msgstr ""
    158159
    159160#. translators: %s: Payment Gateway.
    160 #: includes/BDPG_Gateway.php:546
    161 #: includes/BDPG_Gateway.php:630
     161#: includes/BDPG_Gateway.php:557
     162#: includes/BDPG_Gateway.php:642
    162163msgid "%s Account Number"
    163164msgstr ""
    164165
    165 #: includes/BDPG_Gateway.php:558
    166 #: includes/BDPG_Gateway.php:642
     166#: includes/BDPG_Gateway.php:570
     167#: includes/BDPG_Gateway.php:655
    167168msgid "Transaction ID"
    168169msgstr ""
    169170
    170171#. translators: %s: Payment Gateway.
    171 #: includes/BDPG_Gateway.php:593
     172#: includes/BDPG_Gateway.php:604
    172173msgid "%s Charge"
    173174msgstr ""
    174175
    175 #: includes/BDPG_Gateway.php:663
     176#: includes/BDPG_Gateway.php:676
    176177msgid "Payment No"
    177178msgstr ""
    178179
    179 #: includes/BDPG_Gateway.php:664
     180#: includes/BDPG_Gateway.php:677
    180181msgid "Tran. ID"
    181182msgstr ""
    182183
    183 #: includes/functions.php:11
     184#: includes/functions.php:12
    184185msgid ""
    185186"\n"
     
    192193msgstr ""
    193194
    194 #: includes/functions.php:24
     195#: includes/functions.php:25
    195196msgid ""
    196197"\n"
     
    203204msgstr ""
    204205
    205 #: includes/functions.php:37
     206#: includes/functions.php:38
    206207msgid ""
    207208"\n"
     
    214215msgstr ""
    215216
    216 #: includes/functions.php:50
     217#: includes/functions.php:51
    217218msgid ""
    218219"\n"
     
    225226msgstr ""
    226227
     228#: includes/functions.php:71
     229msgid "bKash"
     230msgstr ""
     231
     232#: includes/functions.php:73
     233msgid "Rocket"
     234msgstr ""
     235
     236#: includes/functions.php:75
     237msgid "Nagad"
     238msgstr ""
     239
     240#: includes/functions.php:77
     241msgid "Upay"
     242msgstr ""
     243
    227244#. translators: %1$s Plugin Name.
    228 #: includes/Review.php:119
     245#: includes/Review.php:117
    229246msgid "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?"
    230247msgstr ""
    231248
    232 #: includes/Review.php:164
     249#: includes/Review.php:162
    233250msgid "Yes, you deserve it"
    234251msgstr ""
    235252
    236 #: includes/Review.php:168
     253#: includes/Review.php:166
    237254msgid "No, maybe later"
    238255msgstr ""
    239256
    240 #: includes/Review.php:172
     257#: includes/Review.php:170
    241258msgid "I already did"
    242259msgstr ""
  • bangladeshi-payment-gateways/trunk/readme.txt

    r3283342 r3427499  
    44Tags: mobile payment gateways, bangladeshi mobile banking, payment gateway, qr code, bKash Rocket Nagad Upay
    55Requires at least: 4.4
    6 Tested up to: 6.8
    7 Stable tag: 3.0.4
     6Tested up to: 6.9
     7Stable tag: 3.0.5
    88Requires PHP: 7.0.0
    99Requires Plugins: woocommerce
     
    8989== Changelog ==
    9090
     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
    9196= 3.0.4 - 28/04/2025 =
    9297*Fix:* Fixed wrong payment method name
  • bangladeshi-payment-gateways/trunk/vendor/appsero/client/src/Insights.php

    r3205147 r3427499  
    435435        $notice .= ' (<a class="' . $this->client->slug . '-insights-data-we-collect" href="#">' . $this->client->__trans( 'what we collect' ) . '</a>)';
    436436        $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> &nearr;</p>';
    438438
    439439        echo '<div class="updated"><p>';
     
    925925                        <?php
    926926                        echo sprintf(
    927                             $this->client->__trans( 'We share your data with <a href="%1$s" target="_blank">Appsero</a> to troubleshoot problems &amp; 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 &amp; make product improvements. <a href="%2$s" target="_blank">Learn more</a> &nearr;' ),
    928928                            esc_url( 'https://appsero.com/' ),
    929929                            esc_url( 'https://appsero.com/privacy-policy' )
  • bangladeshi-payment-gateways/trunk/vendor/autoload.php

    r3283342 r3427499  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
    2320require_once __DIR__ . '/composer/autoload_real.php';
    2421
    25 return ComposerAutoloaderInit47f7c0fef846d70f6c4c0e8b040a0e80::getLoader();
     22return ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2::getLoader();
  • bangladeshi-payment-gateways/trunk/vendor/composer/InstalledVersions.php

    r3283342 r3427499  
    2828{
    2929    /**
     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    /**
    3036     * @var mixed[]|null
    3137     * @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
    3238     */
    3339    private static $installed;
     40
     41    /**
     42     * @var bool
     43     */
     44    private static $installedIsLocalDir;
    3445
    3546    /**
     
    310321        self::$installed = $data;
    311322        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;
    312341    }
    313342
     
    323352
    324353        $installed = array();
     354        $copiedLocalDir = false;
    325355
    326356        if (self::$canGetVendors) {
     357            $selfDir = self::getSelfDir();
    327358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     359                $vendorDir = strtr($vendorDir, '\\', '/');
    328360                if (isset(self::$installedByVendor[$vendorDir])) {
    329361                    $installed[] = self::$installedByVendor[$vendorDir];
     
    331363                    /** @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 */
    332364                    $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;
    336370                    }
     371                }
     372                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     373                    $copiedLocalDir = true;
    337374                }
    338375            }
     
    351388        }
    352389
    353         if (self::$installed !== array()) {
     390        if (self::$installed !== array() && !$copiedLocalDir) {
    354391            $installed[] = self::$installed;
    355392        }
  • bangladeshi-payment-gateways/trunk/vendor/composer/autoload_real.php

    r3283342 r3427499  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit47f7c0fef846d70f6c4c0e8b040a0e80
     5class ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit47f7c0fef846d70f6c4c0e8b040a0e80', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit47f7c0fef846d70f6c4c0e8b040a0e80', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit1e431ee0b25016f3aeda2b2fd73e9ce2', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • bangladeshi-payment-gateways/trunk/vendor/composer/autoload_static.php

    r3283342 r3427499  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80
     7class ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2
    88{
    99    public static $files = array (
     
    4040    {
    4141        return \Closure::bind(function () use ($loader) {
    42             $loader->prefixLengthsPsr4 = ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80::$prefixLengthsPsr4;
    43             $loader->prefixDirsPsr4 = ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80::$prefixDirsPsr4;
    44             $loader->classMap = ComposerStaticInit47f7c0fef846d70f6c4c0e8b040a0e80::$classMap;
     42            $loader->prefixLengthsPsr4 = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$prefixLengthsPsr4;
     43            $loader->prefixDirsPsr4 = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$prefixDirsPsr4;
     44            $loader->classMap = ComposerStaticInit1e431ee0b25016f3aeda2b2fd73e9ce2::$classMap;
    4545
    4646        }, null, ClassLoader::class);
  • bangladeshi-payment-gateways/trunk/vendor/composer/installed.json

    r3283342 r3427499  
    88                "type": "git",
    99                "url": "https://github.com/Appsero/client.git",
    10                 "reference": "aef4cf138ab4f348cee4e2f20f7d3cd815db0877"
     10                "reference": "96bc89344359e39104ab0da6464ee3aeff0b6897"
    1111            },
    1212            "dist": {
    1313                "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",
    1616                "shasum": ""
    1717            },
     
    2727                "wp-coding-standards/wpcs": "dev-develop"
    2828            },
    29             "time": "2024-11-25T05:58:43+00:00",
     29            "time": "2025-11-24T09:57:42+00:00",
    3030            "default-branch": true,
    3131            "type": "library",
  • bangladeshi-payment-gateways/trunk/vendor/composer/installed.php

    r3283342 r3427499  
    22    'root' => array(
    33        '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',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-develop',
    1515            'version' => 'dev-develop',
    16             'reference' => 'aef4cf138ab4f348cee4e2f20f7d3cd815db0877',
     16            'reference' => '96bc89344359e39104ab0da6464ee3aeff0b6897',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../appsero/client',
     
    2323        ),
    2424        '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',
    2828            'type' => 'library',
    2929            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.