Changeset 3098715
- Timestamp:
- 06/06/2024 02:00:26 PM (22 months ago)
- Location:
- tabby-checkout
- Files:
-
- 5 edited
- 29 copied
-
tags/4.10.6 (copied) (copied from tabby-checkout/trunk)
-
tags/4.10.6/assets (copied) (copied from tabby-checkout/trunk/assets)
-
tags/4.10.6/css (copied) (copied from tabby-checkout/trunk/css)
-
tags/4.10.6/css/tabby.css (copied) (copied from tabby-checkout/trunk/css/tabby.css)
-
tags/4.10.6/i18n (copied) (copied from tabby-checkout/trunk/i18n)
-
tags/4.10.6/i18n/languages/tabby-checkout-ar.mo (copied) (copied from tabby-checkout/trunk/i18n/languages/tabby-checkout-ar.mo)
-
tags/4.10.6/i18n/languages/tabby-checkout-ar.po (copied) (copied from tabby-checkout/trunk/i18n/languages/tabby-checkout-ar.po)
-
tags/4.10.6/i18n/languages/tabby-checkout.pot (copied) (copied from tabby-checkout/trunk/i18n/languages/tabby-checkout.pot)
-
tags/4.10.6/images (copied) (copied from tabby-checkout/trunk/images)
-
tags/4.10.6/includes (copied) (copied from tabby-checkout/trunk/includes)
-
tags/4.10.6/includes/class-wc-blocks-tabby-cart-promotion.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-blocks-tabby-cart-promotion.php)
-
tags/4.10.6/includes/class-wc-blocks-tabby-installments.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-blocks-tabby-installments.php)
-
tags/4.10.6/includes/class-wc-gateway-tabby-checkout-base.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-gateway-tabby-checkout-base.php)
-
tags/4.10.6/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.10.6/includes/class-wc-gateway-tabby-installments.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-gateway-tabby-installments.php)
-
tags/4.10.6/includes/class-wc-rest-tabby-controller.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-rest-tabby-controller.php)
-
tags/4.10.6/includes/class-wc-settings-tab-tabby.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-settings-tab-tabby.php)
-
tags/4.10.6/includes/class-wc-tabby-ajax.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-ajax.php)
-
tags/4.10.6/includes/class-wc-tabby-api.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-api.php) (1 diff)
-
tags/4.10.6/includes/class-wc-tabby-config.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-config.php) (1 diff)
-
tags/4.10.6/includes/class-wc-tabby-cron.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-cron.php)
-
tags/4.10.6/includes/class-wc-tabby-promo.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-promo.php) (1 diff)
-
tags/4.10.6/includes/class-wc-tabby-webhook.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby-webhook.php)
-
tags/4.10.6/includes/class-wc-tabby.php (copied) (copied from tabby-checkout/trunk/includes/class-wc-tabby.php)
-
tags/4.10.6/js (copied) (copied from tabby-checkout/trunk/js)
-
tags/4.10.6/js/tabby.js (copied) (copied from tabby-checkout/trunk/js/tabby.js)
-
tags/4.10.6/log (copied) (copied from tabby-checkout/trunk/log)
-
tags/4.10.6/readme.txt (copied) (copied from tabby-checkout/trunk/readme.txt) (2 diffs)
-
tags/4.10.6/tabby-checkout.php (copied) (copied from tabby-checkout/trunk/tabby-checkout.php) (2 diffs)
-
trunk/includes/class-wc-tabby-api.php (modified) (1 diff)
-
trunk/includes/class-wc-tabby-config.php (modified) (1 diff)
-
trunk/includes/class-wc-tabby-promo.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tabby-checkout.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tabby-checkout/tags/4.10.6/includes/class-wc-tabby-api.php
r2927757 r3098715 79 79 if (!empty($body)) { 80 80 $result = json_decode($body); 81 if (!property_exists($result, 'error')) $result->error = ''; 81 if (is_object($result) && property_exists($result, 'error')) { 82 $msg .= $result->errorType . ': ' . $result->error; 83 }; 82 84 static::debug(['response - body - ', (array)$result]); 83 $msg .= $result->errorType . ': ' . $result->error;84 85 } 85 86 //wc_add_notice( __($msg), 'error'); -
tabby-checkout/tags/4.10.6/includes/class-wc-tabby-config.php
r3019225 r3098715 39 39 return in_array($sku, $disabled_skus); 40 40 } 41 public static function getPromoMerchantCode() { 42 $currency = self::getTabbyCurrency(); 43 44 $merchantCode = self::ALLOWED_COUNTRIES[0]; 45 if (($index = array_search($currency, self::ALLOWED_CURRENCIES)) !== false) { 46 $merchantCode = self::ALLOWED_COUNTRIES[$index]; 47 } 48 49 return $merchantCode; 50 } 41 51 } -
tabby-checkout/tags/4.10.6/includes/class-wc-tabby-promo.php
r3073241 r3098715 168 168 } 169 169 public static function getMerchantCode() { 170 return get_option('tabby_store_code', null) ?: null;170 return WC_Tabby_Config::getPromoMerchantCode(); 171 171 } 172 172 public static function getPublicKey() { -
tabby-checkout/tags/4.10.6/readme.txt
r3073241 r3098715 4 4 Requires at least: 5.7 5 5 Tested up to: 6.5 6 Stable tag: 4.10. 46 Stable tag: 4.10.6 7 7 Requires PHP: 7.0 8 8 License: GPLv3 … … 28 28 29 29 == Changelog == 30 31 = 4.10.6 = 32 33 * Change Tabby promotion merchant code logic 30 34 31 35 = 4.10.4 = -
tabby-checkout/tags/4.10.6/tabby-checkout.php
r3073241 r3098715 4 4 * Plugin URI: https://tabby.ai/ 5 5 * Description: Tabby Checkout 6 * Version: 4.10. 46 * Version: 4.10.6 7 7 * Author: Tabby 8 8 * Author URI: https://tabby.ai … … 14 14 defined( 'ABSPATH' ) || exit; 15 15 16 define ('MODULE_TABBY_CHECKOUT_VERSION', '4.10. 4');16 define ('MODULE_TABBY_CHECKOUT_VERSION', '4.10.6'); 17 17 define ('TABBY_CHECKOUT_DOMAIN', 'checkout.tabby.ai'); 18 18 define ('TABBY_CHECKOUT_API_DOMAIN', 'api.tabby.ai'); -
tabby-checkout/trunk/includes/class-wc-tabby-api.php
r2927757 r3098715 79 79 if (!empty($body)) { 80 80 $result = json_decode($body); 81 if (!property_exists($result, 'error')) $result->error = ''; 81 if (is_object($result) && property_exists($result, 'error')) { 82 $msg .= $result->errorType . ': ' . $result->error; 83 }; 82 84 static::debug(['response - body - ', (array)$result]); 83 $msg .= $result->errorType . ': ' . $result->error;84 85 } 85 86 //wc_add_notice( __($msg), 'error'); -
tabby-checkout/trunk/includes/class-wc-tabby-config.php
r3019225 r3098715 39 39 return in_array($sku, $disabled_skus); 40 40 } 41 public static function getPromoMerchantCode() { 42 $currency = self::getTabbyCurrency(); 43 44 $merchantCode = self::ALLOWED_COUNTRIES[0]; 45 if (($index = array_search($currency, self::ALLOWED_CURRENCIES)) !== false) { 46 $merchantCode = self::ALLOWED_COUNTRIES[$index]; 47 } 48 49 return $merchantCode; 50 } 41 51 } -
tabby-checkout/trunk/includes/class-wc-tabby-promo.php
r3073241 r3098715 168 168 } 169 169 public static function getMerchantCode() { 170 return get_option('tabby_store_code', null) ?: null;170 return WC_Tabby_Config::getPromoMerchantCode(); 171 171 } 172 172 public static function getPublicKey() { -
tabby-checkout/trunk/readme.txt
r3073241 r3098715 4 4 Requires at least: 5.7 5 5 Tested up to: 6.5 6 Stable tag: 4.10. 46 Stable tag: 4.10.6 7 7 Requires PHP: 7.0 8 8 License: GPLv3 … … 28 28 29 29 == Changelog == 30 31 = 4.10.6 = 32 33 * Change Tabby promotion merchant code logic 30 34 31 35 = 4.10.4 = -
tabby-checkout/trunk/tabby-checkout.php
r3073241 r3098715 4 4 * Plugin URI: https://tabby.ai/ 5 5 * Description: Tabby Checkout 6 * Version: 4.10. 46 * Version: 4.10.6 7 7 * Author: Tabby 8 8 * Author URI: https://tabby.ai … … 14 14 defined( 'ABSPATH' ) || exit; 15 15 16 define ('MODULE_TABBY_CHECKOUT_VERSION', '4.10. 4');16 define ('MODULE_TABBY_CHECKOUT_VERSION', '4.10.6'); 17 17 define ('TABBY_CHECKOUT_DOMAIN', 'checkout.tabby.ai'); 18 18 define ('TABBY_CHECKOUT_API_DOMAIN', 'api.tabby.ai');
Note: See TracChangeset
for help on using the changeset viewer.