Plugin Directory

Changeset 3016297


Ignore:
Timestamp:
01/02/2024 06:56:01 AM (2 years ago)
Author:
bsecuretech
Message:

1.7.8 Released General Update and Bug Fixes
Status update issue resolved. When payment gateway changed from bSecure to other

Location:
bsecure/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bsecure/trunk/bsecure.php

    r2974279 r3016297  
    66 * Author: bSecure
    77 * Author URI: https://bsecure.pk/
    8  * Version: 1.7.7
     8 * Version: 1.7.8
    99 *
    1010 */
  • bsecure/trunk/includes/class-bsecure-checkout.php

    r2961101 r3016297  
    407407                                    $msg = __("This order is ".$statusTitle." at bSecure portal but status is different at woocommerce.", "wc-bsecure");
    408408                                }
    409                                 $isStatusUpdated = $this->updateOrderStatus($order,$order_data);
    410 
    411                                 if($isStatusUpdated)
    412                                 $this->bsecure_action_woocommerce_order_status_changed($order->get_id(), true);
     409                       
     410
     411                                if($order->get_payment_method() == 'bsecures' || ($order_data->payment_method->id == 1 && $order->get_payment_method() == 'cod' )){
     412
     413                                    $isStatusUpdated = $this->updateOrderStatus($order,$order_data);
     414
     415                                    if($isStatusUpdated)
     416                                    $this->bsecure_action_woocommerce_order_status_changed($order->get_id(), true);
     417                                }else{
     418
     419                                    $msg = __("This order is no more related to bSecure.", "wc-bsecure");
     420                                }
     421                               
    413422                               
    414423                                $return_json = ['status' => true, 'msg' => $msg, 'bsecure_order_id' => $bsecure_order_id];
     
    23412350
    23422351        }
     2352
     2353
     2354        if($order->get_payment_method() == 'bsecures' || ($order_data->payment_method->id == 1 && $order->get_payment_method() == 'cod' )){
     2355
     2356            $order->update_status($this->woocommerceStatus($placement_status, $order_data),"",true);
     2357
     2358        }
    23432359       
    2344         $order->update_status($this->woocommerceStatus($placement_status, $order_data),"",true);
     2360       
    23452361        $order->save();
    23462362
  • bsecure/trunk/includes/class-wc-bsecure.php

    r2974279 r3016297  
    3030
    3131    const PLUGIN_NAME = 'WooCommerce';
    32     const PLUGIN_VERSION = '1.7.7';
     32    const PLUGIN_VERSION = '1.7.8';
    3333    const QISSTPAY_PER_MONTH = 4;
    3434    const QISSTPAY_AMOUNT_MAX_LIMIT = 50000;
  • bsecure/trunk/readme.txt

    r2974279 r3016297  
    33Tags: payment, secure, checkout
    44Requires at least: 4.7
    5 Tested up to: 6.3
     5Tested up to: 6.4
    66Requires PHP: 5.6.20 or above
    7 Stable tag: 1.7.7
     7Stable tag: 1.7.8
    88License: GNU General Public License v3.0
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    121121* 1.7.7 Released with General Update & Bug Fixes
    122122
     123= 1.7.8 January 02, 2024 =
     124* 1.7.8 Released with General Update & Bug Fixes
     125
    123126== Upgrade Notice ==
    124127= 1.0 =
     
    176179* 1.7.7 Released with General Update and Bug Fixes
    177180
     181= 1.7.8 January 02, 2024 =
     182* 1.7.8 Released with General Update and Bug Fixes
     183
    178184== Screenshots ==
Note: See TracChangeset for help on using the changeset viewer.