Changeset 2987288
- Timestamp:
- 11/01/2023 09:55:41 AM (2 years ago)
- Location:
- tabby-checkout
- Files:
-
- 5 edited
- 25 copied
-
tags/4.8.3 (copied) (copied from tabby-checkout/trunk)
-
tags/4.8.3/css (copied) (copied from tabby-checkout/trunk/css)
-
tags/4.8.3/css/tabby.css (copied) (copied from tabby-checkout/trunk/css/tabby.css)
-
tags/4.8.3/i18n (copied) (copied from tabby-checkout/trunk/i18n)
-
tags/4.8.3/i18n/languages/tabby-checkout-ar.mo (copied) (copied from tabby-checkout/trunk/i18n/languages/tabby-checkout-ar.mo)
-
tags/4.8.3/i18n/languages/tabby-checkout-ar.po (copied) (copied from tabby-checkout/trunk/i18n/languages/tabby-checkout-ar.po)
-
tags/4.8.3/i18n/languages/tabby-checkout.pot (copied) (copied from tabby-checkout/trunk/i18n/languages/tabby-checkout.pot)
-
tags/4.8.3/images (copied) (copied from tabby-checkout/trunk/images)
-
tags/4.8.3/includes (copied) (copied from tabby-checkout/trunk/includes)
-
tags/4.8.3/includes/class-wc-gateway-tabby-checkout-base.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-gateway-tabby-checkout-base.php)
-
tags/4.8.3/includes/class-wc-gateway-tabby-credit-card-installments.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-gateway-tabby-credit-card-installments.php)
-
tags/4.8.3/includes/class-wc-gateway-tabby-installments.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-gateway-tabby-installments.php)
-
tags/4.8.3/includes/class-wc-settings-tab-tabby.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-settings-tab-tabby.php) (12 diffs)
-
tags/4.8.3/includes/class-wc-tabby-ajax.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-ajax.php)
-
tags/4.8.3/includes/class-wc-tabby-api.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-api.php)
-
tags/4.8.3/includes/class-wc-tabby-config.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-config.php)
-
tags/4.8.3/includes/class-wc-tabby-cron.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-cron.php)
-
tags/4.8.3/includes/class-wc-tabby-promo.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-promo.php)
-
tags/4.8.3/includes/class-wc-tabby-webhook.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-webhook.php)
-
tags/4.8.3/includes/class-wc-tabby.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby.php) (1 diff)
-
tags/4.8.3/js (copied) (copied from tabby-checkout/trunk/js)
-
tags/4.8.3/js/tabby.js (copied) (copied from tabby-checkout/trunk/js/tabby.js) (2 diffs)
-
tags/4.8.3/log (copied) (copied from tabby-checkout/trunk/log)
-
tags/4.8.3/readme.txt (copied) (copied from tabby-checkout/trunk/readme.txt) (2 diffs)
-
tags/4.8.3/tabby-checkout.php (copied) (copied from tabby-checkout/trunk/tabby-checkout.php) (2 diffs)
-
trunk/includes/class-wc-settings-tab-tabby.php (modified) (12 diffs)
-
trunk/includes/class-wc-tabby.php (modified) (1 diff)
-
trunk/js/tabby.js (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tabby-checkout.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tabby-checkout/tags/4.8.3/includes/class-wc-settings-tab-tabby.php
r2927757 r2987288 8 8 add_action( 'woocommerce_update_options_settings_tab_tabby', array(__CLASS__, 'tabby_update_settings') ); 9 9 10 add_action( 'woocommerce_admin_settings_sanitize_option_tabby_checkout_public_key', array(__CLASS__, 'sanitize_public_key') ); 11 add_action( 'woocommerce_admin_settings_sanitize_option_tabby_checkout_secret_key', array(__CLASS__, 'sanitize_secret_key') ); 10 if (array_key_exists('tabby_checkout_mode', $_POST) && $_POST['tabby_checkout_mode'] == 'payment') { 11 add_action( 'woocommerce_admin_settings_sanitize_option_tabby_checkout_public_key', array(__CLASS__, 'sanitize_public_key') ); 12 add_action( 'woocommerce_admin_settings_sanitize_option_tabby_checkout_secret_key', array(__CLASS__, 'sanitize_secret_key') ); 13 } 12 14 } 13 15 … … 65 67 ); 66 68 $settings_tabby[] = array( 69 'name' => __( 'Plugin mode', 'tabby-checkout' ), 70 'id' => 'tabby_checkout_mode', 71 'type' => 'select', 72 'desc' => __( 'Operational mode: Payment gateway or promotions only', 'tabby-checkout' ), 73 'options' => [ 74 'payment' => __('Payment gateway', 'tabby-checkout'), 75 'promo' => __('Promo only', 'tabby-checkout') 76 ], 77 'default' => 'payment' 78 ); 79 $settings_tabby[] = array( 67 80 'name' => __( 'Merchant Public Key', 'tabby-checkout' ), 68 81 'id' => 'tabby_checkout_public_key', 69 82 'type' => 'password', 83 'class' => 'promo-hidden', 70 84 'desc' => __( 'Used for public API calls<br /><b>pk_[test_]xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</b>', 'tabby-checkout' ), 71 85 'custom_attributes' => array( … … 78 92 'id' => 'tabby_checkout_secret_key', 79 93 'type' => 'password', 94 'class' => 'promo-hidden', 80 95 'desc' => __( 'Used for server to server calls<br /><b>sk_[test_]xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</b>', 'tabby-checkout' ), 81 96 'custom_attributes' => array( … … 100 115 'id' => 'tabby_checkout_order_timeout', 101 116 'type' => 'text', 117 'class' => 'promo-hidden', 102 118 'desc' => __( 'Used for deleting unpaid orders', 'tabby-checkout' ), 103 119 'type' => 'number', … … 116 132 'desc' => __( 'Delete or cancel unpaid orders', 'tabby-checkout' ), 117 133 'type' => 'select', 134 'class' => 'promo-hidden', 118 135 'options' => [ 119 136 'delete' => __('Cancel & Delete', 'tabby-checkout'), … … 128 145 'id' => 'tabby_checkout_use_phone', 129 146 'type' => 'checkbox', 147 'class' => 'promo-hidden', 130 148 'desc' => __( 'Add order history by phone', 'tabby-checkout' ), 131 149 'default' => 'yes' … … 135 153 'id' => 'tabby_checkout_capture', 136 154 'type' => 'checkbox', 155 'class' => 'promo-hidden', 137 156 'desc' => __( 'Enable payment capture on checkout', 'tabby-checkout' ), 138 157 'default' => 'yes' … … 216 235 'id' => 'tabby_countries', 217 236 'type' => 'multiselect', 237 'class' => 'promo-hidden', 218 238 'desc' => __( 'Tabby allowed countries', 'tabby-checkout' ), 219 239 'options' => $options, … … 230 250 'id' => 'tabby_checkout_hide_methods', 231 251 'type' => 'checkbox', 252 'class' => 'promo-hidden', 232 253 'desc' => __( 'Hide Tabby payment methods on checkout if not available', 'tabby-checkout' ), 233 254 ); … … 236 257 'id' => 'tabby_checkout_debug', 237 258 'type' => 'checkbox', 259 'class' => 'promo-hidden', 238 260 'desc' => __( 'Enable API request/reply logging', 'tabby-checkout' ), 239 261 'default' => 'yes' … … 252 274 jQuery(document).ready(function () { 253 275 jQuery("#tabby_checkout_public_key, #tabby_checkout_secret_key").change(function (el) { 276 let plugin_mode = jQuery("#tabby_checkout_mode"); 254 277 let public_key = jQuery("#tabby_checkout_public_key"); 255 278 let secret_key = jQuery("#tabby_checkout_secret_key"); 256 279 let error = false; 257 280 public_key.parent().children(".description").children(".notice").remove(); 258 if (!/^pk_(test_)?[\da-f]{8}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{12}$/.test(public_key.val())) {259 public_key.parent().children(".description").prepend(260 jQuery("<div>").addClass("notice notice-error").html("Wrong public key format.")261 );262 error ||= true;263 } else {264 public_key.parent().children(".description").prepend(265 jQuery("<div>").addClass("notice notice-success").html("Public key format is correct.")266 );267 }268 281 secret_key.parent().children(".description").children(".notice").remove(); 269 if (!/^sk_(test_)?[\da-f]{8}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{12}$/.test(secret_key.val())) { 270 secret_key.parent().children(".description").prepend( 271 jQuery("<div>").addClass("notice notice-error").html("Wrong secret key format.") 272 ); 273 error ||= true; 274 } else { 275 secret_key.parent().children(".description").prepend( 276 jQuery("<div>").addClass("notice notice-success").html("Secret key format is correct.") 277 ); 282 if (plugin_mode.val() == "payment") { 283 if (!/^pk_(test_)?[\da-f]{8}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{12}$/.test(public_key.val())) { 284 public_key.parent().children(".description").prepend( 285 jQuery("<div>").addClass("notice notice-error").html("Wrong public key format.") 286 ); 287 error ||= true; 288 } else { 289 public_key.parent().children(".description").prepend( 290 jQuery("<div>").addClass("notice notice-success").html("Public key format is correct.") 291 ); 292 } 293 if (!/^sk_(test_)?[\da-f]{8}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{12}$/.test(secret_key.val())) { 294 secret_key.parent().children(".description").prepend( 295 jQuery("<div>").addClass("notice notice-error").html("Wrong secret key format.") 296 ); 297 error ||= true; 298 } else { 299 secret_key.parent().children(".description").prepend( 300 jQuery("<div>").addClass("notice notice-success").html("Secret key format is correct.") 301 ); 302 } 278 303 } 279 304 if (error) { … … 283 308 } 284 309 }); 310 jQuery("#tabby_checkout_mode").on("change", function (event) { 311 let elem = jQuery(event.target); 312 let table = elem.parents("table").first(); 313 if (elem.val() == "payment") { 314 table.addClass("payment-mode"); 315 table.find(".promo-hidden").each(function (c, el) { 316 jQuery(el).parents("tr").first().css("display", "table-row"); 317 }); 318 } else { 319 table.removeClass("payment-mode"); 320 table.find(".promo-hidden").each(function (c, el) { 321 jQuery(el).parents("tr").first().css("display", "none"); 322 }); 323 jQuery(".button-primary.woocommerce-save-button").removeAttr("disabled"); 324 } 325 }); 326 jQuery("#tabby_checkout_mode").trigger("change"); 285 327 }); 286 328 </script> -
tabby-checkout/tags/4.8.3/includes/class-wc-tabby.php
r2927757 r2987288 19 19 } 20 20 public static function add_checkout_methods( $methods ) { 21 $methods[] = 'WC_Gateway_Tabby_Installments'; 22 if ( !isset( $_REQUEST['page'] ) || 'wc-settings' !== $_REQUEST['page'] ) { 23 $methods[] = 'WC_Gateway_Tabby_PayLater'; 24 $methods[] = 'WC_Gateway_Tabby_Credit_Card_Installments'; 21 if (get_option('tabby_checkout_mode', 'payment') == 'payment') { 22 $methods[] = 'WC_Gateway_Tabby_Installments'; 23 if ( !isset( $_REQUEST['page'] ) || 'wc-settings' !== $_REQUEST['page'] ) { 24 $methods[] = 'WC_Gateway_Tabby_PayLater'; 25 $methods[] = 'WC_Gateway_Tabby_Credit_Card_Installments'; 26 } 25 27 } 26 28 return $methods; -
tabby-checkout/tags/4.8.3/js/tabby.js
r2927757 r2987288 51 51 } 52 52 getFieldEmail() { 53 if (t abbyConfig&& tabbyConfig.ignoreEmail) {53 if (typeof tabbyConfig !== 'undefined' && tabbyConfig.ignoreEmail) { 54 54 return {val: function() {return ' ';}}; 55 55 } … … 100 100 // remove error 101 101 jQuery(".payment_box.payment_method_tabby_" + tabbyRenderer.methods[i] + ' > .woocommerce-error').remove(); 102 jQuery('.payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > # tabbyCard, .payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > .tabbyDesc').css('display', 'block');102 jQuery('.payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > #' + tabbyRenderer.methods[i] + 'Card, .payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > .tabbyDesc').css('display', 'block'); 103 103 if ((selected == 'tabby_' + tabbyRenderer.methods[i]) && !tabbyRenderer.products.hasOwnProperty(i)) { 104 104 jQuery("#place_order").attr('disabled', 'disabled'); 105 105 if (tabbyConfig && tabbyRenderer.formFilled) { 106 jQuery('.payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > # tabbyCard, .payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > .tabbyDesc').css('display', 'none');106 jQuery('.payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > #' + tabbyRenderer.methods[i] + 'Card, .payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > .tabbyDesc').css('display', 'none'); 107 107 jQuery(".payment_box.payment_method_tabby_" + tabbyRenderer.methods[i]).append( 108 108 jQuery("<div class='woocommerce-error'>").html(tabbyConfig.notAvailableMessage) -
tabby-checkout/tags/4.8.3/readme.txt
r2927757 r2987288 3 3 Tags: tabby, tabby plugin, tabby checkout, bnpl, tabby bnpl 4 4 Requires at least: 5.7 5 Tested up to: 6. 26 Stable tag: 4. 6.05 Tested up to: 6.4 6 Stable tag: 4.8.3 7 7 Requires PHP: 7.0 8 8 License: GPLv3 … … 28 28 29 29 == Changelog == 30 31 = 4.8.3 = 32 33 * Minor fixes, readme update 34 35 = 4.8.0 = 36 37 * Tested with WP 6.4 38 39 = 4.7.0 = 40 41 * Plugin mode promo/payment 30 42 31 43 = 4.6.0 = -
tabby-checkout/tags/4.8.3/tabby-checkout.php
r2927757 r2987288 4 4 * Plugin URI: https://tabby.ai/ 5 5 * Description: Tabby Checkout 6 * Version: 4. 6.06 * Version: 4.8.3 7 7 * Author: Tabby 8 8 * Author URI: https://tabby.ai … … 16 16 defined( 'ABSPATH' ) || exit; 17 17 18 define ('MODULE_TABBY_CHECKOUT_VERSION', '4. 6.0');18 define ('MODULE_TABBY_CHECKOUT_VERSION', '4.8.3'); 19 19 define ('TABBY_CHECKOUT_DOMAIN', 'checkout.tabby.ai'); 20 20 define ('TABBY_CHECKOUT_API_DOMAIN', 'api.tabby.ai'); -
tabby-checkout/trunk/includes/class-wc-settings-tab-tabby.php
r2927757 r2987288 8 8 add_action( 'woocommerce_update_options_settings_tab_tabby', array(__CLASS__, 'tabby_update_settings') ); 9 9 10 add_action( 'woocommerce_admin_settings_sanitize_option_tabby_checkout_public_key', array(__CLASS__, 'sanitize_public_key') ); 11 add_action( 'woocommerce_admin_settings_sanitize_option_tabby_checkout_secret_key', array(__CLASS__, 'sanitize_secret_key') ); 10 if (array_key_exists('tabby_checkout_mode', $_POST) && $_POST['tabby_checkout_mode'] == 'payment') { 11 add_action( 'woocommerce_admin_settings_sanitize_option_tabby_checkout_public_key', array(__CLASS__, 'sanitize_public_key') ); 12 add_action( 'woocommerce_admin_settings_sanitize_option_tabby_checkout_secret_key', array(__CLASS__, 'sanitize_secret_key') ); 13 } 12 14 } 13 15 … … 65 67 ); 66 68 $settings_tabby[] = array( 69 'name' => __( 'Plugin mode', 'tabby-checkout' ), 70 'id' => 'tabby_checkout_mode', 71 'type' => 'select', 72 'desc' => __( 'Operational mode: Payment gateway or promotions only', 'tabby-checkout' ), 73 'options' => [ 74 'payment' => __('Payment gateway', 'tabby-checkout'), 75 'promo' => __('Promo only', 'tabby-checkout') 76 ], 77 'default' => 'payment' 78 ); 79 $settings_tabby[] = array( 67 80 'name' => __( 'Merchant Public Key', 'tabby-checkout' ), 68 81 'id' => 'tabby_checkout_public_key', 69 82 'type' => 'password', 83 'class' => 'promo-hidden', 70 84 'desc' => __( 'Used for public API calls<br /><b>pk_[test_]xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</b>', 'tabby-checkout' ), 71 85 'custom_attributes' => array( … … 78 92 'id' => 'tabby_checkout_secret_key', 79 93 'type' => 'password', 94 'class' => 'promo-hidden', 80 95 'desc' => __( 'Used for server to server calls<br /><b>sk_[test_]xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</b>', 'tabby-checkout' ), 81 96 'custom_attributes' => array( … … 100 115 'id' => 'tabby_checkout_order_timeout', 101 116 'type' => 'text', 117 'class' => 'promo-hidden', 102 118 'desc' => __( 'Used for deleting unpaid orders', 'tabby-checkout' ), 103 119 'type' => 'number', … … 116 132 'desc' => __( 'Delete or cancel unpaid orders', 'tabby-checkout' ), 117 133 'type' => 'select', 134 'class' => 'promo-hidden', 118 135 'options' => [ 119 136 'delete' => __('Cancel & Delete', 'tabby-checkout'), … … 128 145 'id' => 'tabby_checkout_use_phone', 129 146 'type' => 'checkbox', 147 'class' => 'promo-hidden', 130 148 'desc' => __( 'Add order history by phone', 'tabby-checkout' ), 131 149 'default' => 'yes' … … 135 153 'id' => 'tabby_checkout_capture', 136 154 'type' => 'checkbox', 155 'class' => 'promo-hidden', 137 156 'desc' => __( 'Enable payment capture on checkout', 'tabby-checkout' ), 138 157 'default' => 'yes' … … 216 235 'id' => 'tabby_countries', 217 236 'type' => 'multiselect', 237 'class' => 'promo-hidden', 218 238 'desc' => __( 'Tabby allowed countries', 'tabby-checkout' ), 219 239 'options' => $options, … … 230 250 'id' => 'tabby_checkout_hide_methods', 231 251 'type' => 'checkbox', 252 'class' => 'promo-hidden', 232 253 'desc' => __( 'Hide Tabby payment methods on checkout if not available', 'tabby-checkout' ), 233 254 ); … … 236 257 'id' => 'tabby_checkout_debug', 237 258 'type' => 'checkbox', 259 'class' => 'promo-hidden', 238 260 'desc' => __( 'Enable API request/reply logging', 'tabby-checkout' ), 239 261 'default' => 'yes' … … 252 274 jQuery(document).ready(function () { 253 275 jQuery("#tabby_checkout_public_key, #tabby_checkout_secret_key").change(function (el) { 276 let plugin_mode = jQuery("#tabby_checkout_mode"); 254 277 let public_key = jQuery("#tabby_checkout_public_key"); 255 278 let secret_key = jQuery("#tabby_checkout_secret_key"); 256 279 let error = false; 257 280 public_key.parent().children(".description").children(".notice").remove(); 258 if (!/^pk_(test_)?[\da-f]{8}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{12}$/.test(public_key.val())) {259 public_key.parent().children(".description").prepend(260 jQuery("<div>").addClass("notice notice-error").html("Wrong public key format.")261 );262 error ||= true;263 } else {264 public_key.parent().children(".description").prepend(265 jQuery("<div>").addClass("notice notice-success").html("Public key format is correct.")266 );267 }268 281 secret_key.parent().children(".description").children(".notice").remove(); 269 if (!/^sk_(test_)?[\da-f]{8}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{12}$/.test(secret_key.val())) { 270 secret_key.parent().children(".description").prepend( 271 jQuery("<div>").addClass("notice notice-error").html("Wrong secret key format.") 272 ); 273 error ||= true; 274 } else { 275 secret_key.parent().children(".description").prepend( 276 jQuery("<div>").addClass("notice notice-success").html("Secret key format is correct.") 277 ); 282 if (plugin_mode.val() == "payment") { 283 if (!/^pk_(test_)?[\da-f]{8}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{12}$/.test(public_key.val())) { 284 public_key.parent().children(".description").prepend( 285 jQuery("<div>").addClass("notice notice-error").html("Wrong public key format.") 286 ); 287 error ||= true; 288 } else { 289 public_key.parent().children(".description").prepend( 290 jQuery("<div>").addClass("notice notice-success").html("Public key format is correct.") 291 ); 292 } 293 if (!/^sk_(test_)?[\da-f]{8}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{4}\-[\da-f]{12}$/.test(secret_key.val())) { 294 secret_key.parent().children(".description").prepend( 295 jQuery("<div>").addClass("notice notice-error").html("Wrong secret key format.") 296 ); 297 error ||= true; 298 } else { 299 secret_key.parent().children(".description").prepend( 300 jQuery("<div>").addClass("notice notice-success").html("Secret key format is correct.") 301 ); 302 } 278 303 } 279 304 if (error) { … … 283 308 } 284 309 }); 310 jQuery("#tabby_checkout_mode").on("change", function (event) { 311 let elem = jQuery(event.target); 312 let table = elem.parents("table").first(); 313 if (elem.val() == "payment") { 314 table.addClass("payment-mode"); 315 table.find(".promo-hidden").each(function (c, el) { 316 jQuery(el).parents("tr").first().css("display", "table-row"); 317 }); 318 } else { 319 table.removeClass("payment-mode"); 320 table.find(".promo-hidden").each(function (c, el) { 321 jQuery(el).parents("tr").first().css("display", "none"); 322 }); 323 jQuery(".button-primary.woocommerce-save-button").removeAttr("disabled"); 324 } 325 }); 326 jQuery("#tabby_checkout_mode").trigger("change"); 285 327 }); 286 328 </script> -
tabby-checkout/trunk/includes/class-wc-tabby.php
r2927757 r2987288 19 19 } 20 20 public static function add_checkout_methods( $methods ) { 21 $methods[] = 'WC_Gateway_Tabby_Installments'; 22 if ( !isset( $_REQUEST['page'] ) || 'wc-settings' !== $_REQUEST['page'] ) { 23 $methods[] = 'WC_Gateway_Tabby_PayLater'; 24 $methods[] = 'WC_Gateway_Tabby_Credit_Card_Installments'; 21 if (get_option('tabby_checkout_mode', 'payment') == 'payment') { 22 $methods[] = 'WC_Gateway_Tabby_Installments'; 23 if ( !isset( $_REQUEST['page'] ) || 'wc-settings' !== $_REQUEST['page'] ) { 24 $methods[] = 'WC_Gateway_Tabby_PayLater'; 25 $methods[] = 'WC_Gateway_Tabby_Credit_Card_Installments'; 26 } 25 27 } 26 28 return $methods; -
tabby-checkout/trunk/js/tabby.js
r2927757 r2987288 51 51 } 52 52 getFieldEmail() { 53 if (t abbyConfig&& tabbyConfig.ignoreEmail) {53 if (typeof tabbyConfig !== 'undefined' && tabbyConfig.ignoreEmail) { 54 54 return {val: function() {return ' ';}}; 55 55 } … … 100 100 // remove error 101 101 jQuery(".payment_box.payment_method_tabby_" + tabbyRenderer.methods[i] + ' > .woocommerce-error').remove(); 102 jQuery('.payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > # tabbyCard, .payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > .tabbyDesc').css('display', 'block');102 jQuery('.payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > #' + tabbyRenderer.methods[i] + 'Card, .payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > .tabbyDesc').css('display', 'block'); 103 103 if ((selected == 'tabby_' + tabbyRenderer.methods[i]) && !tabbyRenderer.products.hasOwnProperty(i)) { 104 104 jQuery("#place_order").attr('disabled', 'disabled'); 105 105 if (tabbyConfig && tabbyRenderer.formFilled) { 106 jQuery('.payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > # tabbyCard, .payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > .tabbyDesc').css('display', 'none');106 jQuery('.payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > #' + tabbyRenderer.methods[i] + 'Card, .payment_box.payment_method_tabby_' + tabbyRenderer.methods[i] + ' > .tabbyDesc').css('display', 'none'); 107 107 jQuery(".payment_box.payment_method_tabby_" + tabbyRenderer.methods[i]).append( 108 108 jQuery("<div class='woocommerce-error'>").html(tabbyConfig.notAvailableMessage) -
tabby-checkout/trunk/readme.txt
r2927757 r2987288 3 3 Tags: tabby, tabby plugin, tabby checkout, bnpl, tabby bnpl 4 4 Requires at least: 5.7 5 Tested up to: 6. 26 Stable tag: 4. 6.05 Tested up to: 6.4 6 Stable tag: 4.8.3 7 7 Requires PHP: 7.0 8 8 License: GPLv3 … … 28 28 29 29 == Changelog == 30 31 = 4.8.3 = 32 33 * Minor fixes, readme update 34 35 = 4.8.0 = 36 37 * Tested with WP 6.4 38 39 = 4.7.0 = 40 41 * Plugin mode promo/payment 30 42 31 43 = 4.6.0 = -
tabby-checkout/trunk/tabby-checkout.php
r2927757 r2987288 4 4 * Plugin URI: https://tabby.ai/ 5 5 * Description: Tabby Checkout 6 * Version: 4. 6.06 * Version: 4.8.3 7 7 * Author: Tabby 8 8 * Author URI: https://tabby.ai … … 16 16 defined( 'ABSPATH' ) || exit; 17 17 18 define ('MODULE_TABBY_CHECKOUT_VERSION', '4. 6.0');18 define ('MODULE_TABBY_CHECKOUT_VERSION', '4.8.3'); 19 19 define ('TABBY_CHECKOUT_DOMAIN', 'checkout.tabby.ai'); 20 20 define ('TABBY_CHECKOUT_API_DOMAIN', 'api.tabby.ai');
Note: See TracChangeset
for help on using the changeset viewer.