Changeset 3467693
- Timestamp:
- 02/23/2026 12:27:16 PM (5 weeks ago)
- Location:
- stitch-express
- Files:
-
- 4 added
- 8 edited
- 1 copied
-
tags/1.3.6 (copied) (copied from stitch-express/trunk)
-
tags/1.3.6/assets/product-widget.css (added)
-
tags/1.3.6/includes/stitch-express-client.php (modified) (1 diff)
-
tags/1.3.6/includes/stitch-express-gateway.php (modified) (2 diffs)
-
tags/1.3.6/includes/stitch-express-product-widget.php (added)
-
tags/1.3.6/readme.txt (modified) (4 diffs)
-
tags/1.3.6/stitch-express.php (modified) (2 diffs)
-
trunk/assets/product-widget.css (added)
-
trunk/includes/stitch-express-client.php (modified) (1 diff)
-
trunk/includes/stitch-express-gateway.php (modified) (2 diffs)
-
trunk/includes/stitch-express-product-widget.php (added)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/stitch-express.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stitch-express/tags/1.3.6/includes/stitch-express-client.php
r3465047 r3467693 38 38 39 39 class Stitch_Express_Client { 40 private const PLUGIN_VERSION = '1.3. 5';40 private const PLUGIN_VERSION = '1.3.6'; 41 41 private string $baseUrl = 'https://express.stitch.money'; 42 42 private string $client_id; -
stitch-express/tags/1.3.6/includes/stitch-express-gateway.php
r3442620 r3467693 54 54 'type' => 'checkbox', 55 55 'label' => __('Enable Stitch Express Payments', 'stitch-express'), 56 'default' => ' yes',56 'default' => 'no', 57 57 ], 58 58 'client_id' => [ … … 79 79 'label' => __('Skip the Stitch Express checkout page', 'stitch-express'), 80 80 'default' => 'yes', 81 ], 82 'widget_settings_title' => [ 83 'title' => __('BNPL Product Widget Settings', 'stitch-express'), 84 'type' => 'title', 85 'description' => __('Configure the "Buy Now Pay Later" widget that appears on product pages', 'stitch-express'), 86 ], 87 'widget_enabled' => [ 88 'title' => __('Enable Product Widget', 'stitch-express'), 89 'type' => 'checkbox', 90 'label' => __('Show BNPL messaging on product pages', 'stitch-express'), 91 'default' => 'yes', 92 ], 93 'widget_auto_display' => [ 94 'title' => __('Auto-Display Widget', 'stitch-express'), 95 'type' => 'checkbox', 96 'label' => __('Automatically display widget on all product pages', 'stitch-express'), 97 'description' => __('Uncheck to use shortcode [stitch_bnpl_widget] or block for manual placement', 'stitch-express'), 98 'default' => 'yes', 99 ], 100 'widget_position' => [ 101 'title' => __('Widget Position', 'stitch-express'), 102 'type' => 'select', 103 'description' => __('Where to display the widget on product pages (only if auto-display is enabled)', 'stitch-express'), 104 'default' => 'after_price', 105 'options' => [ 106 'before_title' => __('Before Product Title', 'stitch-express'), 107 'after_title' => __('After Product Title', 'stitch-express'), 108 'after_price' => __('After Product Price', 'stitch-express'), 109 'after_excerpt' => __('After Product Short Description', 'stitch-express'), 110 'before_add_to_cart' => __('Before Add to Cart Button', 'stitch-express'), 111 'after_add_to_cart' => __('After Add to Cart Button', 'stitch-express'), 112 ], 113 ], 114 'widget_minimum_amount' => [ 115 'title' => __('Minimum Amount (Rands)', 'stitch-express'), 116 'type' => 'number', 117 'description' => __('Only show widget for products above this amount (e.g., 100 = R100)', 'stitch-express'), 118 'default' => '100', 119 'custom_attributes' => [ 120 'min' => '0', 121 'step' => '1', 122 ], 123 ], 124 'widget_background_color' => [ 125 'title' => __('Background Color', 'stitch-express'), 126 'type' => 'text', 127 'description' => __('Widget background color (hex code)', 'stitch-express'), 128 'default' => '#F2F2F2', 129 'custom_attributes' => [ 130 'placeholder' => '#F2F2F2', 131 ], 132 ], 133 'widget_border_color' => [ 134 'title' => __('Border Color', 'stitch-express'), 135 'type' => 'text', 136 'description' => __('Widget border color (hex code)', 'stitch-express'), 137 'default' => '#F2F2F2', 138 'custom_attributes' => [ 139 'placeholder' => '#F2F2F2', 140 ], 141 ], 142 'widget_text_color' => [ 143 'title' => __('Text Color', 'stitch-express'), 144 'type' => 'text', 145 'description' => __('Widget text color (hex code)', 'stitch-express'), 146 'default' => '#100E13', 147 'custom_attributes' => [ 148 'placeholder' => '#100E13', 149 ], 150 ], 151 'widget_highlight_color' => [ 152 'title' => __('Highlight Color', 'stitch-express'), 153 'type' => 'text', 154 'description' => __('Price amount highlight color (hex code)', 'stitch-express'), 155 'default' => '#000000', 156 'custom_attributes' => [ 157 'placeholder' => '#000000', 158 ], 159 ], 160 'widget_logo_background' => [ 161 'title' => __('Logo Background', 'stitch-express'), 162 'type' => 'select', 163 'description' => __('Stitch logo background color', 'stitch-express'), 164 'default' => 'purple', 165 'options' => [ 166 'purple' => __('Purple (Default)', 'stitch-express'), 167 'white' => __('White', 'stitch-express'), 168 'black' => __('Black', 'stitch-express'), 169 ], 170 ], 171 'widget_width' => [ 172 'title' => __('Widget Width', 'stitch-express'), 173 'type' => 'select', 174 'description' => __('Widget width on product pages', 'stitch-express'), 175 'default' => '100%', 176 'options' => [ 177 '100%' => __('100% (Full width)', 'stitch-express'), 178 '90%' => __('90%', 'stitch-express'), 179 '80%' => __('80%', 'stitch-express'), 180 '70%' => __('70%', 'stitch-express'), 181 '60%' => __('60%', 'stitch-express'), 182 '50%' => __('50%', 'stitch-express'), 183 'auto' => __('Auto (fit content)', 'stitch-express'), 184 ], 81 185 ], 82 186 ]; -
stitch-express/tags/1.3.6/readme.txt
r3465047 r3467693 3 3 Tags: woocommerce, card, payments, south africa, apple pay, google pay, stitch, express, stitch express 4 4 Tested up to: 6.7 5 Stable tag: 1.3. 55 Stable tag: 1.3.6 6 6 License: GPLv3 7 7 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 34 34 * 2.95% on local, SA card transactions 35 35 * 3.4% on International card transactions 36 * 4.9% +R4on BNPL transactions36 * 5.7% on BNPL transactions 37 37 * 2% on Capitec Pay transactions* 38 38 … … 83 83 84 84 == Changelog == 85 = 1.3.6 = 86 * Add BNPL Product Widget with customizable settings 87 * Support for automatic display and shortcode placement 88 * Update BNPL pricing to 5.7% 89 85 90 = 1.3.5 = 86 91 * Further webhook improvements … … 167 172 168 173 == Upgrade Notice == 174 = 1.3.6 = 175 * New BNPL Product Widget feature - Show "Buy Now Pay Later" messaging on product pages 176 169 177 = 1.3.5 = 170 178 * Webhook improvements -
stitch-express/tags/1.3.6/stitch-express.php
r3465047 r3467693 9 9 * Description: Use Stitch Express to easily and securely accept Card payment on your WooCommerce store. 10 10 * Plugin URI: https://wordpress.org/plugins/stitchexpress/ 11 * Version: 1.3. 511 * Version: 1.3.6 12 12 * Requires at least: 6.5 13 13 * Requires PHP: 8.0 … … 39 39 40 40 require_once STITCH_EXPRESS_PLUGIN_PATH.'/includes/stitch-express-gateway.php'; 41 42 require_once STITCH_EXPRESS_PLUGIN_PATH.'/includes/stitch-express-product-widget.php'; 43 44 // Initialize product widget with error handling 45 try { 46 new Stitch_Express_Product_Widget(); 47 } catch (Throwable $e) { 48 // Log error but don't break the plugin (catches both Exception and Error) 49 error_log('Stitch Express: Failed to initialize product widget - '.$e->getMessage()); 50 } 41 51 } 42 52 -
stitch-express/trunk/includes/stitch-express-client.php
r3465047 r3467693 38 38 39 39 class Stitch_Express_Client { 40 private const PLUGIN_VERSION = '1.3. 5';40 private const PLUGIN_VERSION = '1.3.6'; 41 41 private string $baseUrl = 'https://express.stitch.money'; 42 42 private string $client_id; -
stitch-express/trunk/includes/stitch-express-gateway.php
r3442620 r3467693 54 54 'type' => 'checkbox', 55 55 'label' => __('Enable Stitch Express Payments', 'stitch-express'), 56 'default' => ' yes',56 'default' => 'no', 57 57 ], 58 58 'client_id' => [ … … 79 79 'label' => __('Skip the Stitch Express checkout page', 'stitch-express'), 80 80 'default' => 'yes', 81 ], 82 'widget_settings_title' => [ 83 'title' => __('BNPL Product Widget Settings', 'stitch-express'), 84 'type' => 'title', 85 'description' => __('Configure the "Buy Now Pay Later" widget that appears on product pages', 'stitch-express'), 86 ], 87 'widget_enabled' => [ 88 'title' => __('Enable Product Widget', 'stitch-express'), 89 'type' => 'checkbox', 90 'label' => __('Show BNPL messaging on product pages', 'stitch-express'), 91 'default' => 'yes', 92 ], 93 'widget_auto_display' => [ 94 'title' => __('Auto-Display Widget', 'stitch-express'), 95 'type' => 'checkbox', 96 'label' => __('Automatically display widget on all product pages', 'stitch-express'), 97 'description' => __('Uncheck to use shortcode [stitch_bnpl_widget] or block for manual placement', 'stitch-express'), 98 'default' => 'yes', 99 ], 100 'widget_position' => [ 101 'title' => __('Widget Position', 'stitch-express'), 102 'type' => 'select', 103 'description' => __('Where to display the widget on product pages (only if auto-display is enabled)', 'stitch-express'), 104 'default' => 'after_price', 105 'options' => [ 106 'before_title' => __('Before Product Title', 'stitch-express'), 107 'after_title' => __('After Product Title', 'stitch-express'), 108 'after_price' => __('After Product Price', 'stitch-express'), 109 'after_excerpt' => __('After Product Short Description', 'stitch-express'), 110 'before_add_to_cart' => __('Before Add to Cart Button', 'stitch-express'), 111 'after_add_to_cart' => __('After Add to Cart Button', 'stitch-express'), 112 ], 113 ], 114 'widget_minimum_amount' => [ 115 'title' => __('Minimum Amount (Rands)', 'stitch-express'), 116 'type' => 'number', 117 'description' => __('Only show widget for products above this amount (e.g., 100 = R100)', 'stitch-express'), 118 'default' => '100', 119 'custom_attributes' => [ 120 'min' => '0', 121 'step' => '1', 122 ], 123 ], 124 'widget_background_color' => [ 125 'title' => __('Background Color', 'stitch-express'), 126 'type' => 'text', 127 'description' => __('Widget background color (hex code)', 'stitch-express'), 128 'default' => '#F2F2F2', 129 'custom_attributes' => [ 130 'placeholder' => '#F2F2F2', 131 ], 132 ], 133 'widget_border_color' => [ 134 'title' => __('Border Color', 'stitch-express'), 135 'type' => 'text', 136 'description' => __('Widget border color (hex code)', 'stitch-express'), 137 'default' => '#F2F2F2', 138 'custom_attributes' => [ 139 'placeholder' => '#F2F2F2', 140 ], 141 ], 142 'widget_text_color' => [ 143 'title' => __('Text Color', 'stitch-express'), 144 'type' => 'text', 145 'description' => __('Widget text color (hex code)', 'stitch-express'), 146 'default' => '#100E13', 147 'custom_attributes' => [ 148 'placeholder' => '#100E13', 149 ], 150 ], 151 'widget_highlight_color' => [ 152 'title' => __('Highlight Color', 'stitch-express'), 153 'type' => 'text', 154 'description' => __('Price amount highlight color (hex code)', 'stitch-express'), 155 'default' => '#000000', 156 'custom_attributes' => [ 157 'placeholder' => '#000000', 158 ], 159 ], 160 'widget_logo_background' => [ 161 'title' => __('Logo Background', 'stitch-express'), 162 'type' => 'select', 163 'description' => __('Stitch logo background color', 'stitch-express'), 164 'default' => 'purple', 165 'options' => [ 166 'purple' => __('Purple (Default)', 'stitch-express'), 167 'white' => __('White', 'stitch-express'), 168 'black' => __('Black', 'stitch-express'), 169 ], 170 ], 171 'widget_width' => [ 172 'title' => __('Widget Width', 'stitch-express'), 173 'type' => 'select', 174 'description' => __('Widget width on product pages', 'stitch-express'), 175 'default' => '100%', 176 'options' => [ 177 '100%' => __('100% (Full width)', 'stitch-express'), 178 '90%' => __('90%', 'stitch-express'), 179 '80%' => __('80%', 'stitch-express'), 180 '70%' => __('70%', 'stitch-express'), 181 '60%' => __('60%', 'stitch-express'), 182 '50%' => __('50%', 'stitch-express'), 183 'auto' => __('Auto (fit content)', 'stitch-express'), 184 ], 81 185 ], 82 186 ]; -
stitch-express/trunk/readme.txt
r3465047 r3467693 3 3 Tags: woocommerce, card, payments, south africa, apple pay, google pay, stitch, express, stitch express 4 4 Tested up to: 6.7 5 Stable tag: 1.3. 55 Stable tag: 1.3.6 6 6 License: GPLv3 7 7 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 34 34 * 2.95% on local, SA card transactions 35 35 * 3.4% on International card transactions 36 * 4.9% +R4on BNPL transactions36 * 5.7% on BNPL transactions 37 37 * 2% on Capitec Pay transactions* 38 38 … … 83 83 84 84 == Changelog == 85 = 1.3.6 = 86 * Add BNPL Product Widget with customizable settings 87 * Support for automatic display and shortcode placement 88 * Update BNPL pricing to 5.7% 89 85 90 = 1.3.5 = 86 91 * Further webhook improvements … … 167 172 168 173 == Upgrade Notice == 174 = 1.3.6 = 175 * New BNPL Product Widget feature - Show "Buy Now Pay Later" messaging on product pages 176 169 177 = 1.3.5 = 170 178 * Webhook improvements -
stitch-express/trunk/stitch-express.php
r3465047 r3467693 9 9 * Description: Use Stitch Express to easily and securely accept Card payment on your WooCommerce store. 10 10 * Plugin URI: https://wordpress.org/plugins/stitchexpress/ 11 * Version: 1.3. 511 * Version: 1.3.6 12 12 * Requires at least: 6.5 13 13 * Requires PHP: 8.0 … … 39 39 40 40 require_once STITCH_EXPRESS_PLUGIN_PATH.'/includes/stitch-express-gateway.php'; 41 42 require_once STITCH_EXPRESS_PLUGIN_PATH.'/includes/stitch-express-product-widget.php'; 43 44 // Initialize product widget with error handling 45 try { 46 new Stitch_Express_Product_Widget(); 47 } catch (Throwable $e) { 48 // Log error but don't break the plugin (catches both Exception and Error) 49 error_log('Stitch Express: Failed to initialize product widget - '.$e->getMessage()); 50 } 41 51 } 42 52
Note: See TracChangeset
for help on using the changeset viewer.