Changeset 3431754
- Timestamp:
- 01/03/2026 05:22:04 PM (3 months ago)
- Location:
- camoo-pay-for-ecommerce/trunk
- Files:
-
- 9 edited
-
camoo-pay-for-ecommerce.php (modified) (5 diffs)
-
includes/Gateway.php (modified) (1 diff)
-
includes/Media.php (modified) (1 diff)
-
includes/Plugin.php (modified) (2 diffs)
-
includes/admin/Enum/MediaEnum.php (modified) (1 diff)
-
includes/admin/Enum/MetaKeysEnum.php (modified) (1 diff)
-
includes/assets/css/style.css (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
camoo-pay-for-ecommerce/trunk/camoo-pay-for-ecommerce.php
r3431194 r3431754 8 8 * Plugin URI: https://github.com/camoo/camoo-woocommerce-gateway 9 9 * Description: Receive Mobile Money payments on your store using CamooPay for WooCommerce. 10 * Version: 1.0. 810 * Version: 1.0.9 11 11 * Tested up to: 6.9 12 12 * Author: Camoo Sarl … … 26 26 27 27 if (version_compare(PHP_VERSION, '8.1', '<')) { 28 add_action('admin_notices', static function () { 28 29 add_action('admin_notices', static function(): void { 29 30 echo '<div class="notice notice-error"><p>' 30 31 . esc_html('CamooPay for e-Commerce requires PHP 8.1 or higher.') … … 42 43 add_action('plugins_loaded', static function () { 43 44 if (!class_exists('\WooCommerce')) { 44 add_action('admin_notices', static function (){45 add_action('admin_notices', static function(): void { 45 46 echo '<div class="notice notice-error"><p>' 46 47 . esc_html__('WooCommerce must be active to use CamooPay.', 'camoo-pay-for-ecommerce') … … 52 53 53 54 // Defer real plugin startup 54 add_action('init', function (){55 add_action('init', static function(): void { 55 56 $plugin = new Plugin( 56 57 __FILE__, … … 58 59 'Gateway', 59 60 'CamooPay for e-commerce payment gateway', 60 '1.0. 8'61 '1.0.9' 61 62 ); 62 63 -
camoo-pay-for-ecommerce/trunk/includes/Gateway.php
r3431194 r3431754 442 442 443 443 // Show only while waiting for Mobile Money confirmation 444 if (in_array($order->get_status(), ['pending', 'on-hold' ], true)) {444 if (in_array($order->get_status(), ['pending', 'on-hold', 'processing'], true)) { 445 445 echo '<p class="woocommerce-info">'; 446 446 echo esc_html__( -
camoo-pay-for-ecommerce/trunk/includes/Media.php
r3238396 r3431754 15 15 { 16 16 // Ensure that the logger is instantiated correctly 17 if ($this->logger === null) { 18 $this->logger = new Logger(Plugin::WC_CAMOO_PAY_GATEWAY_ID, WP_DEBUG); 19 } 17 $this->logger ??= new Logger(Plugin::WC_CAMOO_PAY_GATEWAY_ID, WP_DEBUG); 20 18 } 21 19 -
camoo-pay-for-ecommerce/trunk/includes/Plugin.php
r3431194 r3431754 28 28 class Plugin 29 29 { 30 public const WC_CAMOO_PAY_DB_VERSION = '1.0. 8';30 public const WC_CAMOO_PAY_DB_VERSION = '1.0.9'; 31 31 32 32 public const DEFAULT_TITLE = 'CamooPay'; … … 286 286 'status_time' => [ 287 287 'required' => false, 288 'validate_callback' => 'is_string', 288 'validate_callback' => static function ($value): bool { 289 return is_string($value); 290 }, 289 291 ], 290 292 'payment_id' => [ 291 293 'required' => false, 292 'validate_callback' => 'is_string', 294 'validate_callback' => static function ($value): bool { 295 return is_string($value); 296 }, 293 297 ], 294 298 ], -
camoo-pay-for-ecommerce/trunk/includes/admin/Enum/MediaEnum.php
r3237199 r3431754 5 5 namespace Camoo\Pay\WooCommerce\Admin\Enum; 6 6 7 defined('ABSPATH') || exit; 8 7 9 enum MediaEnum: string 8 10 { -
camoo-pay-for-ecommerce/trunk/includes/admin/Enum/MetaKeysEnum.php
r3244543 r3431754 4 4 5 5 namespace Camoo\Pay\WooCommerce\Admin\Enum; 6 7 defined('ABSPATH') || exit; 6 8 7 9 enum MetaKeysEnum: string -
camoo-pay-for-ecommerce/trunk/includes/assets/css/style.css
r3431194 r3431754 42 42 } 43 43 44 45 44 /* =============================== 46 45 CAMOO PAY – SHARED STYLES … … 53 52 margin-top: 16px; 54 53 } 55 56 54 .camoo-pay-phone-input:focus { 57 55 outline: none; … … 67 65 margin-top: 8px; 68 66 } 69 70 67 .wc-block-components-payment-method__content .camoo-pay-fields p { 71 68 margin-bottom: 10px; … … 73 70 color: #333; 74 71 } 75 76 72 /* Input + icon row */ 77 73 .camoo-pay-fields .camoo-pay-input-row { … … 80 76 gap: 10px; 81 77 } 82 83 78 /* Icon inside Blocks */ 84 79 .camoo-pay-fields img { … … 87 82 object-fit: contain; 88 83 } 89 90 84 .wc-block-components-payment-method-label img[alt="CamooPay"] { 91 85 max-height: 22px; -
camoo-pay-for-ecommerce/trunk/readme.txt
r3431194 r3431754 4 4 Requires Plugins: woocommerce 5 5 Tested up to: 6.9 6 Stable tag: 1.0. 86 Stable tag: 1.0.9 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 88 88 89 89 == Changelog == 90 = 1.0.9: Jan 03, 2026 = 91 * Fixed - Fix rest API compatibility issue 92 * Tweak - General code improvements 93 90 94 = 1.0.8: Jan 02, 2026 = 91 95 * Tweak - Support for new WooCommerce block checkout improvements -
camoo-pay-for-ecommerce/trunk/uninstall.php
r3420361 r3431754 35 35 $wpdb->query("DELETE FROM {$wpdb->options} WHERE `option_name` LIKE 'woocommerce_wc_camoo_pay%';"); 36 36 } 37 37 38 /** 38 39 * Remove the CamooPay gateway from the WooCommerce payment gateways list.
Note: See TracChangeset
for help on using the changeset viewer.