Plugin Directory

Changeset 3467693


Ignore:
Timestamp:
02/23/2026 12:27:16 PM (5 weeks ago)
Author:
stitchexpress
Message:

1.3.6

Location:
stitch-express
Files:
4 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • stitch-express/tags/1.3.6/includes/stitch-express-client.php

    r3465047 r3467693  
    3838
    3939class Stitch_Express_Client {
    40     private const PLUGIN_VERSION = '1.3.5';
     40    private const PLUGIN_VERSION = '1.3.6';
    4141    private string $baseUrl = 'https://express.stitch.money';
    4242    private string $client_id;
  • stitch-express/tags/1.3.6/includes/stitch-express-gateway.php

    r3442620 r3467693  
    5454                'type' => 'checkbox',
    5555                'label' => __('Enable Stitch Express Payments', 'stitch-express'),
    56                 'default' => 'yes',
     56                'default' => 'no',
    5757            ],
    5858            'client_id' => [
     
    7979                'label' => __('Skip the Stitch Express checkout page', 'stitch-express'),
    8080                '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                ],
    81185            ],
    82186        ];
  • stitch-express/tags/1.3.6/readme.txt

    r3465047 r3467693  
    33Tags: woocommerce, card, payments, south africa, apple pay, google pay, stitch, express, stitch express
    44Tested up to: 6.7
    5 Stable tag: 1.3.5
     5Stable tag: 1.3.6
    66License: GPLv3
    77License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3434* 2.95% on local, SA card transactions
    3535* 3.4% on International card transactions
    36 * 4.9% +R4 on BNPL transactions
     36* 5.7% on BNPL transactions
    3737* 2% on Capitec Pay transactions*
    3838
     
    8383
    8484== 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
    8590= 1.3.5 =
    8691* Further webhook improvements
     
    167172
    168173== Upgrade Notice ==
     174= 1.3.6 =
     175* New BNPL Product Widget feature - Show "Buy Now Pay Later" messaging on product pages
     176
    169177= 1.3.5 =
    170178* Webhook improvements
  • stitch-express/tags/1.3.6/stitch-express.php

    r3465047 r3467693  
    99 * Description:          Use Stitch Express to easily and securely accept Card payment on your WooCommerce store.
    1010 * Plugin URI:           https://wordpress.org/plugins/stitchexpress/
    11  * Version:              1.3.5
     11 * Version:              1.3.6
    1212 * Requires at least:    6.5
    1313 * Requires PHP:         8.0
     
    3939
    4040    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    }
    4151}
    4252
  • stitch-express/trunk/includes/stitch-express-client.php

    r3465047 r3467693  
    3838
    3939class Stitch_Express_Client {
    40     private const PLUGIN_VERSION = '1.3.5';
     40    private const PLUGIN_VERSION = '1.3.6';
    4141    private string $baseUrl = 'https://express.stitch.money';
    4242    private string $client_id;
  • stitch-express/trunk/includes/stitch-express-gateway.php

    r3442620 r3467693  
    5454                'type' => 'checkbox',
    5555                'label' => __('Enable Stitch Express Payments', 'stitch-express'),
    56                 'default' => 'yes',
     56                'default' => 'no',
    5757            ],
    5858            'client_id' => [
     
    7979                'label' => __('Skip the Stitch Express checkout page', 'stitch-express'),
    8080                '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                ],
    81185            ],
    82186        ];
  • stitch-express/trunk/readme.txt

    r3465047 r3467693  
    33Tags: woocommerce, card, payments, south africa, apple pay, google pay, stitch, express, stitch express
    44Tested up to: 6.7
    5 Stable tag: 1.3.5
     5Stable tag: 1.3.6
    66License: GPLv3
    77License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3434* 2.95% on local, SA card transactions
    3535* 3.4% on International card transactions
    36 * 4.9% +R4 on BNPL transactions
     36* 5.7% on BNPL transactions
    3737* 2% on Capitec Pay transactions*
    3838
     
    8383
    8484== 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
    8590= 1.3.5 =
    8691* Further webhook improvements
     
    167172
    168173== Upgrade Notice ==
     174= 1.3.6 =
     175* New BNPL Product Widget feature - Show "Buy Now Pay Later" messaging on product pages
     176
    169177= 1.3.5 =
    170178* Webhook improvements
  • stitch-express/trunk/stitch-express.php

    r3465047 r3467693  
    99 * Description:          Use Stitch Express to easily and securely accept Card payment on your WooCommerce store.
    1010 * Plugin URI:           https://wordpress.org/plugins/stitchexpress/
    11  * Version:              1.3.5
     11 * Version:              1.3.6
    1212 * Requires at least:    6.5
    1313 * Requires PHP:         8.0
     
    3939
    4040    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    }
    4151}
    4252
Note: See TracChangeset for help on using the changeset viewer.