Changeset 3435544
- Timestamp:
- 01/09/2026 12:04:23 AM (3 months ago)
- Location:
- bulletproof-checkout-lite/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (2 diffs)
-
bulletproof-checkout-lite.php (modified) (2 diffs)
-
includes/class-wc-bulletproof-payment-gateway-lite.php (modified) (3 diffs)
-
includes/class-wc-bulletproof-shop-orders.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bulletproof-checkout-lite/trunk/README.txt
r3432938 r3435544 3 3 Tags: woocommerce, 3DS, payment gateway, bulletproof, chargeback, fraud prevention 4 4 WC requires at least: 5.0 5 WC tested up to: 10. 3.75 WC tested up to: 10.4.3 6 6 Tested up to: 6.8.3 7 Stable tag: 1.0.2 47 Stable tag: 1.0.25 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 239 239 = 1.0.24 = 240 240 Remove unused admin notices 241 = 1.0.25 = 242 Support 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 4 4 * Plugin URI: https://www.bulletproof-checkout.com/ 5 5 * Description: Protect your credit card payments with 3D Secure (3DS) and say goodbye to chargebacks. 6 * Version: 1.0.2 46 * Version: 1.0.25 7 7 * Author: BulletProof Checkout <support@bulletproof-checkout.com> 8 8 * Author URI: https://www.bulletproof-checkout.com/ … … 11 11 * Text Domain: bulletproof-checkout-lite 12 12 * WC requires at least: 5.0 13 * WC tested up to: 10. 3.713 * WC tested up to: 10.4.3 14 14 * Tested up to: 6.9 15 15 * Requires PHP: 7.4 -
bulletproof-checkout-lite/trunk/includes/class-wc-bulletproof-payment-gateway-lite.php
r3432938 r3435544 391 391 } 392 392 } 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 } 394 399 } else { 395 400 if ($sale_method_found == "") { … … 408 413 $order->update_meta_data('_bulletproof_gateway_action_type', $sale_method_found); 409 414 $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); 411 416 } 412 417 WC()->cart->empty_cart(); … … 429 434 $order->update_status('wc-failed'); 430 435 $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); 432 437 } 433 438 } -
bulletproof-checkout-lite/trunk/includes/class-wc-bulletproof-shop-orders.php
r3432938 r3435544 1806 1806 1807 1807 $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 } 1809 1814 $data['success'] = true; 1810 1815 } else { … … 2016 2021 // The enabled property will be 'yes' if enabled, 'no' if disabled in settings. 2017 2022 2018 if ((isset($gateway_settings['enabled'] )&&($gateway_settings['enabled'] === 'yes'))) {2023 if ((isset($gateway_settings['enabled']) && ($gateway_settings['enabled'] === 'yes'))) { 2019 2024 if (($username == "") || ($password == "") || ($security_key == "")) { 2020 2025 // Add admin notice
Note: See TracChangeset
for help on using the changeset viewer.