Changeset 3088054
- Timestamp:
- 05/17/2024 03:31:02 AM (23 months ago)
- Location:
- bread-finance/trunk
- Files:
-
- 2 added
- 5 edited
-
README.md (modified) (2 diffs)
-
assets/js/v2/main.js (modified) (3 diffs)
-
bread-finance.php (modified) (3 diffs)
-
classes/class-bread-finance-gateway.php (modified) (3 diffs)
-
classes/class-bread-finance-utilities.php (modified) (1 diff)
-
classes/compat/class-bread-finance-captcha-wpcaptcha.php (added)
-
classes/compat/class-bread-finance-captcha.php (added)
Legend:
- Unmodified
- Added
- Removed
-
bread-finance/trunk/README.md
r3065172 r3088054 4 4 Requires at least: 4.9 5 5 Tested up to: 6.1.1 6 Stable tag: 3.5. 16 Stable tag: 3.5.2 7 7 Requires PHP: 5.6 8 8 WC requires at least: 3.0 … … 72 72 73 73 == Changelog == 74 = 3.5.2 75 * Current release 76 * Add support for WPCaptcha 77 74 78 = 3.5.1 75 * Current release76 79 * Fix RBC Checkout Block 77 80 -
bread-finance/trunk/assets/js/v2/main.js
r3065172 r3088054 1 1 /** 2 * Bread v3.5. 12 * Bread v3.5.2 3 3 * 4 4 * @author Maritim, Kiprotich … … 720 720 let CheckoutHandler = function() { 721 721 this.$form = $('form.checkout, form#order_review'); 722 this.flags = ['bread-g-recaptcha-response']; 722 723 }; 723 724 … … 1027 1028 ); 1028 1029 } 1030 1031 for (var flag of breadController.breadCheckoutHandler.flags) { 1032 $('<input>', { 1033 type: 'hidden', 1034 id: flag, 1035 name: flag, 1036 value: 'true' 1037 }).appendTo(breadController.breadCheckoutHandler.$form); 1038 } 1029 1039 breadController.breadCheckoutHandler.$form.submit(); 1030 1040 -
bread-finance/trunk/bread-finance.php
r3065172 r3088054 4 4 * Plugin Name: Bread Pay 5 5 * Description: Adds the Bread Pay Gateway to your WooCommerce site. 6 * Author: Bread Pay6 * Author: Bread Financial 7 7 * Author URI: https://payments.breadfinancial.com/ 8 * Version: 3.5. 19 * Text Domain: bread -finance8 * Version: 3.5.2 9 * Text Domain: bread_finance 10 10 * Domain Path: /i18n/languages/ 11 11 * WC requires at least: 3.0.0 … … 206 206 207 207 //Require minimums and constants 208 define('WC_' . $tenant . '_VERSION', '3.5. 1');208 define('WC_' . $tenant . '_VERSION', '3.5.2'); 209 209 define('WC_' . $tenant . '_MIN_PHP_VER', '5.6.0'); 210 210 define('WC_' . $tenant . '_MIN_WC_VER', '3.4.0'); … … 218 218 include_once $this->plugin_path . '/classes/compat/class-bread-finance-currency-woocs.php'; 219 219 include_once $this->plugin_path . '/classes/compat/class-bread-finance-currency.php'; 220 include_once $this->plugin_path . '/classes/compat/class-bread-finance-captcha.php'; 221 include_once $this->plugin_path . '/classes/compat/class-bread-finance-captcha-wpcaptcha.php'; 220 222 221 223 //Classes -
bread-finance/trunk/classes/class-bread-finance-gateway.php
r3065172 r3088054 81 81 add_action('before_woocommerce_init', array($this, 'init_bread_cart')); 82 82 add_action('woocommerce_init', array($this, 'empty_bread_cart')); 83 add_action('woocommerce_before_checkout_process', array($this, 'external_plugin_compatibility')); 83 84 add_action('init', array($this, 'add_rewrite_tags')); 84 85 add_filter('update_user_metadata', array($this, 'prevent_bread_cart_persistence'), 10, 5); … … 213 214 'ajaxurl' => admin_url('admin-ajax.php'), 214 215 'ajaxnonce' => wp_create_nonce('mwp-ajax-nonce'), 215 'enabled_for_shipping' => $this->bread_config->get('enabled_for_shipping', []) 216 'enabled_for_shipping' => $this->bread_config->get('enabled_for_shipping', []), 217 'checkout_flags' => $this->bread_finance_utilities->get_checkout_flags() 216 218 ); 217 219 … … 1811 1813 } 1812 1814 1815 public function external_plugin_compatibility() { 1816 $captcha_plugin = \Bread_Finance\Classes\Compat\Bread_Finance_Captcha::instance(); 1817 $captcha_plugin->run_compat(); 1818 } 1819 1813 1820 public function add_rewrite_tags() { 1814 1821 add_rewrite_tag('%orderRef%', '([^&]+)'); -
bread-finance/trunk/classes/class-bread-finance-utilities.php
r3065172 r3088054 332 332 return WC()->shipping()->get_shipping_methods(); 333 333 } 334 334 335 function get_checkout_flags() { 336 $captcha_plugin = \Bread_Finance\Classes\Compat\Bread_Finance_Captcha::instance(); 337 return "bread-{$captcha_plugin->get_post_key()}"; 338 } 335 339 }
Note: See TracChangeset
for help on using the changeset viewer.