Plugin Directory

Changeset 3435544


Ignore:
Timestamp:
01/09/2026 12:04:23 AM (3 months ago)
Author:
bulletproofcheckout
Message:

support for woocommerce 10.4.3

Location:
bulletproof-checkout-lite/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bulletproof-checkout-lite/trunk/README.txt

    r3432938 r3435544  
    33Tags: woocommerce, 3DS, payment gateway, bulletproof, chargeback, fraud prevention
    44WC requires at least: 5.0
    5 WC tested up to: 10.3.7
     5WC tested up to: 10.4.3
    66Tested up to: 6.8.3
    7 Stable tag: 1.0.24
     7Stable tag: 1.0.25
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    239239= 1.0.24 =
    240240Remove unused admin notices
     241= 1.0.25 =
     242Support for WooCommerce 10.4.3 on which the wc_maybe_reduce_stock_levels () requires a integer number
  • bulletproof-checkout-lite/trunk/bulletproof-checkout-lite.php

    r3432938 r3435544  
    44 * Plugin URI: https://www.bulletproof-checkout.com/
    55 * Description: Protect your credit card payments with 3D Secure (3DS) and say goodbye to chargebacks.
    6  * Version: 1.0.24
     6 * Version: 1.0.25
    77 * Author: BulletProof Checkout <support@bulletproof-checkout.com>
    88 * Author URI: https://www.bulletproof-checkout.com/
     
    1111 * Text Domain: bulletproof-checkout-lite
    1212 * WC requires at least: 5.0
    13  * WC tested up to: 10.3.7
     13 * WC tested up to: 10.4.3
    1414 * Tested up to: 6.9
    1515 * Requires PHP: 7.4
  • bulletproof-checkout-lite/trunk/includes/class-wc-bulletproof-payment-gateway-lite.php

    r3432938 r3435544  
    391391                    }
    392392                }
    393                 wc_maybe_reduce_stock_levels($order_id);
     393                if (is_numeric($order_id)) {
     394                    try {
     395                        wc_maybe_reduce_stock_levels((int)$order_id);
     396                    } catch (Exception $e) {
     397                    }
     398                }
    394399            } else {
    395400                if ($sale_method_found == "") {
     
    408413                $order->update_meta_data('_bulletproof_gateway_action_type', $sale_method_found);
    409414                $order->save();
    410                 $logger->info("Update the transaction ID  for Order#:" . $order_id." to: " . $transaction_id, $context);
     415                $logger->info("Update the transaction ID  for Order#:" . $order_id . " to: " . $transaction_id, $context);
    411416            }
    412417            WC()->cart->empty_cart();
     
    429434                    $order->update_status('wc-failed');
    430435                    $order->add_order_note($failed_msg);
    431                     $logger->info("The transaction for Order#:" . $order_id." was failed. " . $failed_msg, $context);
     436                    $logger->info("The transaction for Order#:" . $order_id . " was failed. " . $failed_msg, $context);
    432437                }
    433438            }
  • bulletproof-checkout-lite/trunk/includes/class-wc-bulletproof-shop-orders.php

    r3432938 r3435544  
    18061806
    18071807                    $order->save();
    1808                     wc_maybe_reduce_stock_levels($order_id);
     1808                    if (is_numeric($order_id)) {
     1809                        try {
     1810                            wc_maybe_reduce_stock_levels((int)$order_id);
     1811                        } catch (Exception $e) {
     1812                        }
     1813                    }
    18091814                    $data['success'] = true;
    18101815                } else {
     
    20162021                    // The enabled property will be 'yes' if enabled, 'no' if disabled in settings.
    20172022
    2018                     if ((isset($gateway_settings['enabled'] )&&($gateway_settings['enabled'] === 'yes'))) {
     2023                    if ((isset($gateway_settings['enabled']) && ($gateway_settings['enabled'] === 'yes'))) {
    20192024                        if (($username == "") || ($password == "") || ($security_key == "")) {
    20202025                            // Add admin notice
Note: See TracChangeset for help on using the changeset viewer.