Plugin Directory

Changeset 3742487


Ignore:
Timestamp:
10/12/2026 08:42:52 PM (9 days ago)
Author:
starlightgroup
Message:

Release 1.0.6

Location:
starlight-payment-gateway-for-kaspi
Files:
2 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • starlight-payment-gateway-for-kaspi/tags/1.0.6/includes/Admin.php

    r3740349 r3742487  
    99        public static function register(): void {
    1010                add_action( 'admin_menu', static function (): void {
    11                         add_submenu_page( 'woocommerce', __( 'Starlight Payment Gateway for Kaspi', 'starlight-payment-gateway-for-kaspi' ), __( 'Starlight Payments', 'starlight-payment-gateway-for-kaspi' ), 'manage_woocommerce', 'starlight-payment-gateway-for-kaspi', [ self::class, 'render' ] );
     11                        $hook = add_submenu_page( 'woocommerce', __( 'Starlight Payment Gateway for Kaspi', 'starlight-payment-gateway-for-kaspi' ), __( 'Starlight Payments', 'starlight-payment-gateway-for-kaspi' ), 'manage_woocommerce', 'starlight-payment-gateway-for-kaspi', [ self::class, 'render' ] );
     12                        add_action( 'admin_enqueue_scripts', static function ( string $screen ) use ( $hook ): void {
     13                                if ( $hook && $screen === $hook ) {
     14                                        wp_enqueue_style( 'starlight-kaspi-links-admin', plugins_url( 'assets/admin.css', STARLIGHT_KASPI_LINKS_FILE ), [], STARLIGHT_KASPI_LINKS_VERSION );
     15                                }
     16                        } );
    1217                } );
    1318                add_action( 'admin_post_starlight_kaspi_links_save', [ self::class, 'save' ] );
    … …  
    137142
    138143        private static function full_version_content( string $language ): void {
    139                 echo '<nav aria-label="' . esc_attr__( 'Advertisement language', 'starlight-payment-gateway-for-kaspi' ) . '">';
     144                echo '<div class="starlight-kaspi-full"><div class="starlight-kaspi-language"><nav aria-label="' . esc_attr__( 'Advertisement language', 'starlight-payment-gateway-for-kaspi' ) . '">';
    140145                $choices = [ 'auto' => __( 'Automatic (WordPress language)', 'starlight-payment-gateway-for-kaspi' ), 'ru' => 'Русский', 'en' => 'English' ];
    141146                foreach ( $choices as $choice => $label ) {
    142147                        $url = add_query_arg( [ 'page' => 'starlight-payment-gateway-for-kaspi', 'tab' => 'full', 'ads_lang' => $choice ], admin_url( 'admin.php' ) );
    143                         echo '<a class="button' . ( $choice === $language ? ' button-secondary' : '' ) . '"' . ( $choice === $language ? ' aria-current="true" style="font-weight:700"' : '' ) . ( 'auto' !== $choice ? ' lang="' . esc_attr( $choice ) . '"' : '' ) . ' href="' . esc_url( $url ) . '">' . esc_html( $label ) . '</a> ';
    144                 }
    145                 echo '</nav><p>' . esc_html__( 'This selection changes only the full-version description on this page.', 'starlight-payment-gateway-for-kaspi' ) . '</p>';
     148                        echo '<a class="button"' . ( $choice === $language ? ' aria-current="true"' : '' ) . ( 'auto' !== $choice ? ' lang="' . esc_attr( $choice ) . '"' : '' ) . ' href="' . esc_url( $url ) . '">' . esc_html( $label ) . '</a> ';
     149                }
     150                echo '</nav><p>' . esc_html__( 'This selection changes only the full-version description on this page.', 'starlight-payment-gateway-for-kaspi' ) . '</p></div>';
    146151                echo '<section' . ( 'auto' !== $language ? ' lang="' . esc_attr( $language ) . '"' : '' ) . '>';
    147                 echo '<h2>' . esc_html__( 'KZ Pay - automate Kaspi payments for your store', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
     152                echo '<div class="starlight-kaspi-intro"><h2>' . esc_html__( 'KZ Pay - automate Kaspi payments for your store', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
    148153                echo '<p><strong>' . esc_html__( 'Less manual reconciliation. More time for orders and customers.', 'starlight-payment-gateway-for-kaspi' ) . '</strong></p>';
    149154                echo '<p>' . esc_html__( 'The full version connects Kaspi payments to WooCommerce orders: it creates a payment for each order, gives customers a QR or payment-link option, and automatically updates the order after payment confirmation and validation.', 'starlight-payment-gateway-for-kaspi' ) . '</p>';
    150                 echo '<h2>' . esc_html__( 'What your store gains', 'starlight-payment-gateway-for-kaspi' ) . '</h2><dl>';
     155                echo '</div><h2>' . esc_html__( 'What your store gains', 'starlight-payment-gateway-for-kaspi' ) . '</h2><dl class="starlight-kaspi-benefits">';
    151156                $benefits = [
    152157                        [ __( 'Automatic payment confirmation', 'starlight-payment-gateway-for-kaspi' ), __( 'The plugin checks the result through the Kaspi API and marks an order paid only after a confirmed successful payment with a validated amount and transaction. This reduces manual work for routine successful payments.', 'starlight-payment-gateway-for-kaspi' ) ],
    … …  
    162167                ];
    163168                foreach ( $benefits as $benefit ) {
    164                         echo '<dt><strong>' . esc_html( $benefit[0] ) . '</strong></dt><dd><p>' . esc_html( $benefit[1] ) . '</p></dd>';
    165                 }
    166                 echo '</dl><h2>' . esc_html__( 'Compare the free and full versions', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
    167                 echo '<div style="overflow-x:auto"><table class="widefat striped"><thead><tr><th scope="col">' . esc_html__( 'Feature', 'starlight-payment-gateway-for-kaspi' ) . '</th><th scope="col">' . esc_html__( 'Free', 'starlight-payment-gateway-for-kaspi' ) . '</th><th scope="col">' . esc_html__( 'Full version', 'starlight-payment-gateway-for-kaspi' ) . '</th></tr></thead><tbody>';
     169                        echo '<div><dt><strong>' . esc_html( $benefit[0] ) . '</strong></dt><dd><p>' . esc_html( $benefit[1] ) . '</p></dd></div>';
     170                }
     171                echo '</dl><h2 id="starlight-kaspi-comparison-title">' . esc_html__( 'Compare the free and full versions', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
     172                echo '<div class="starlight-kaspi-comparison" role="region" aria-labelledby="starlight-kaspi-comparison-title" tabindex="0"><table class="widefat striped"><thead><tr><th scope="col">' . esc_html__( 'Feature', 'starlight-payment-gateway-for-kaspi' ) . '</th><th scope="col">' . esc_html__( 'Free', 'starlight-payment-gateway-for-kaspi' ) . '</th><th scope="col">' . esc_html__( 'Full version', 'starlight-payment-gateway-for-kaspi' ) . '</th></tr></thead><tbody>';
    168173                $rows = [
    169174                        [ __( 'Payment link', 'starlight-payment-gateway-for-kaspi' ), __( 'Shared merchant link', 'starlight-payment-gateway-for-kaspi' ), __( 'Individual API link for the order', 'starlight-payment-gateway-for-kaspi' ) ],
    … …  
    179184                        echo '<tr><th scope="row">' . esc_html( $row[0] ) . '</th><td>' . esc_html( $row[1] ) . '</td><td>' . esc_html( $row[2] ) . '</td></tr>';
    180185                }
    181                 echo '</tbody></table></div><h2>' . esc_html__( 'Try the full version on your store', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
     186                echo '</tbody></table></div><div class="starlight-kaspi-trial"><h2>' . esc_html__( 'Try the full version on your store', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
    182187                echo '<p><strong>' . esc_html__( 'Seven-day trial. No credit card required.', 'starlight-payment-gateway-for-kaspi' ) . '</strong></p>';
    183188                echo '<p>' . esc_html__( 'The full integration requires merchant access to Kaspi Public QR API Scheme 1. Purchasing the plugin does not grant access to the Kaspi API.', 'starlight-payment-gateway-for-kaspi' ) . '</p>';
    … …  
    190195                        echo '<p><a class="button button-primary" href="' . esc_url( $url ) . '" target="_blank" rel="noopener noreferrer">' . esc_html__( 'Explore the full version', 'starlight-payment-gateway-for-kaspi' ) . '</a></p>';
    191196                }
    192                 echo '<p>' . esc_html__( 'Developed by Starlight Group. Not affiliated with or endorsed by Kaspi.kz or WooCommerce.', 'starlight-payment-gateway-for-kaspi' ) . '</p>';
    193                 echo '</section>';
     197                echo '</div><p class="starlight-kaspi-disclaimer">' . esc_html__( 'Developed by Starlight Group. Not affiliated with or endorsed by Kaspi.kz or WooCommerce.', 'starlight-payment-gateway-for-kaspi' ) . '</p>';
     198                echo '</section></div>';
    194199        }
    195200}
  • starlight-payment-gateway-for-kaspi/tags/1.0.6/readme.txt

    r3742465 r3742487  
    66Requires PHP: 8.1
    77Requires Plugins: woocommerce
    8 Stable tag: 1.0.5
     8Stable tag: 1.0.6
    99License: GPL-3.0-or-later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
    … …  
    191191== Changelog ==
    192192
     193= 1.0.6 =
     194* Confirm compatibility with WooCommerce 11.2.1, including HPOS with synchronization disabled and legacy order storage.
     195* Improve the Full version tab with a spaced language selector, responsive benefit cards and a readable comparison table.
     196
    193197= 1.0.5 =
    194198* Rewrite the directory description with complete English and Russian sections, clear setup steps, store benefits and full-version requirements.
  • starlight-payment-gateway-for-kaspi/tags/1.0.6/starlight-payment-gateway-for-kaspi.php

    r3742465 r3742487  
    44 * Plugin URI: https://group-starlight.com/products/kz-pay/
    55 * Description: Kaspi Pay payment gateway for WooCommerce: accept KZT orders using payment links and confirm payments manually. By Starlight Group.
    6  * Version: 1.0.5
     6 * Version: 1.0.6
    77 * Requires at least: 6.9
    88 * Requires PHP: 8.1
    99 * Requires Plugins: woocommerce
    1010 * WC requires at least: 10.8
    11  * WC tested up to: 10.8.1
     11 * WC tested up to: 11.2.1
    1212 * Author: Starlight Group
    1313 * Author URI: https://group-starlight.com/
    … …  
    2323}
    2424
    25 define( 'STARLIGHT_KASPI_LINKS_VERSION', '1.0.5' );
     25define( 'STARLIGHT_KASPI_LINKS_VERSION', '1.0.6' );
    2626define( 'STARLIGHT_KASPI_LINKS_FILE', __FILE__ );
    2727
  • starlight-payment-gateway-for-kaspi/trunk/includes/Admin.php

    r3740349 r3742487  
    99        public static function register(): void {
    1010                add_action( 'admin_menu', static function (): void {
    11                         add_submenu_page( 'woocommerce', __( 'Starlight Payment Gateway for Kaspi', 'starlight-payment-gateway-for-kaspi' ), __( 'Starlight Payments', 'starlight-payment-gateway-for-kaspi' ), 'manage_woocommerce', 'starlight-payment-gateway-for-kaspi', [ self::class, 'render' ] );
     11                        $hook = add_submenu_page( 'woocommerce', __( 'Starlight Payment Gateway for Kaspi', 'starlight-payment-gateway-for-kaspi' ), __( 'Starlight Payments', 'starlight-payment-gateway-for-kaspi' ), 'manage_woocommerce', 'starlight-payment-gateway-for-kaspi', [ self::class, 'render' ] );
     12                        add_action( 'admin_enqueue_scripts', static function ( string $screen ) use ( $hook ): void {
     13                                if ( $hook && $screen === $hook ) {
     14                                        wp_enqueue_style( 'starlight-kaspi-links-admin', plugins_url( 'assets/admin.css', STARLIGHT_KASPI_LINKS_FILE ), [], STARLIGHT_KASPI_LINKS_VERSION );
     15                                }
     16                        } );
    1217                } );
    1318                add_action( 'admin_post_starlight_kaspi_links_save', [ self::class, 'save' ] );
    … …  
    137142
    138143        private static function full_version_content( string $language ): void {
    139                 echo '<nav aria-label="' . esc_attr__( 'Advertisement language', 'starlight-payment-gateway-for-kaspi' ) . '">';
     144                echo '<div class="starlight-kaspi-full"><div class="starlight-kaspi-language"><nav aria-label="' . esc_attr__( 'Advertisement language', 'starlight-payment-gateway-for-kaspi' ) . '">';
    140145                $choices = [ 'auto' => __( 'Automatic (WordPress language)', 'starlight-payment-gateway-for-kaspi' ), 'ru' => 'Русский', 'en' => 'English' ];
    141146                foreach ( $choices as $choice => $label ) {
    142147                        $url = add_query_arg( [ 'page' => 'starlight-payment-gateway-for-kaspi', 'tab' => 'full', 'ads_lang' => $choice ], admin_url( 'admin.php' ) );
    143                         echo '<a class="button' . ( $choice === $language ? ' button-secondary' : '' ) . '"' . ( $choice === $language ? ' aria-current="true" style="font-weight:700"' : '' ) . ( 'auto' !== $choice ? ' lang="' . esc_attr( $choice ) . '"' : '' ) . ' href="' . esc_url( $url ) . '">' . esc_html( $label ) . '</a> ';
    144                 }
    145                 echo '</nav><p>' . esc_html__( 'This selection changes only the full-version description on this page.', 'starlight-payment-gateway-for-kaspi' ) . '</p>';
     148                        echo '<a class="button"' . ( $choice === $language ? ' aria-current="true"' : '' ) . ( 'auto' !== $choice ? ' lang="' . esc_attr( $choice ) . '"' : '' ) . ' href="' . esc_url( $url ) . '">' . esc_html( $label ) . '</a> ';
     149                }
     150                echo '</nav><p>' . esc_html__( 'This selection changes only the full-version description on this page.', 'starlight-payment-gateway-for-kaspi' ) . '</p></div>';
    146151                echo '<section' . ( 'auto' !== $language ? ' lang="' . esc_attr( $language ) . '"' : '' ) . '>';
    147                 echo '<h2>' . esc_html__( 'KZ Pay - automate Kaspi payments for your store', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
     152                echo '<div class="starlight-kaspi-intro"><h2>' . esc_html__( 'KZ Pay - automate Kaspi payments for your store', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
    148153                echo '<p><strong>' . esc_html__( 'Less manual reconciliation. More time for orders and customers.', 'starlight-payment-gateway-for-kaspi' ) . '</strong></p>';
    149154                echo '<p>' . esc_html__( 'The full version connects Kaspi payments to WooCommerce orders: it creates a payment for each order, gives customers a QR or payment-link option, and automatically updates the order after payment confirmation and validation.', 'starlight-payment-gateway-for-kaspi' ) . '</p>';
    150                 echo '<h2>' . esc_html__( 'What your store gains', 'starlight-payment-gateway-for-kaspi' ) . '</h2><dl>';
     155                echo '</div><h2>' . esc_html__( 'What your store gains', 'starlight-payment-gateway-for-kaspi' ) . '</h2><dl class="starlight-kaspi-benefits">';
    151156                $benefits = [
    152157                        [ __( 'Automatic payment confirmation', 'starlight-payment-gateway-for-kaspi' ), __( 'The plugin checks the result through the Kaspi API and marks an order paid only after a confirmed successful payment with a validated amount and transaction. This reduces manual work for routine successful payments.', 'starlight-payment-gateway-for-kaspi' ) ],
    … …  
    162167                ];
    163168                foreach ( $benefits as $benefit ) {
    164                         echo '<dt><strong>' . esc_html( $benefit[0] ) . '</strong></dt><dd><p>' . esc_html( $benefit[1] ) . '</p></dd>';
    165                 }
    166                 echo '</dl><h2>' . esc_html__( 'Compare the free and full versions', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
    167                 echo '<div style="overflow-x:auto"><table class="widefat striped"><thead><tr><th scope="col">' . esc_html__( 'Feature', 'starlight-payment-gateway-for-kaspi' ) . '</th><th scope="col">' . esc_html__( 'Free', 'starlight-payment-gateway-for-kaspi' ) . '</th><th scope="col">' . esc_html__( 'Full version', 'starlight-payment-gateway-for-kaspi' ) . '</th></tr></thead><tbody>';
     169                        echo '<div><dt><strong>' . esc_html( $benefit[0] ) . '</strong></dt><dd><p>' . esc_html( $benefit[1] ) . '</p></dd></div>';
     170                }
     171                echo '</dl><h2 id="starlight-kaspi-comparison-title">' . esc_html__( 'Compare the free and full versions', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
     172                echo '<div class="starlight-kaspi-comparison" role="region" aria-labelledby="starlight-kaspi-comparison-title" tabindex="0"><table class="widefat striped"><thead><tr><th scope="col">' . esc_html__( 'Feature', 'starlight-payment-gateway-for-kaspi' ) . '</th><th scope="col">' . esc_html__( 'Free', 'starlight-payment-gateway-for-kaspi' ) . '</th><th scope="col">' . esc_html__( 'Full version', 'starlight-payment-gateway-for-kaspi' ) . '</th></tr></thead><tbody>';
    168173                $rows = [
    169174                        [ __( 'Payment link', 'starlight-payment-gateway-for-kaspi' ), __( 'Shared merchant link', 'starlight-payment-gateway-for-kaspi' ), __( 'Individual API link for the order', 'starlight-payment-gateway-for-kaspi' ) ],
    … …  
    179184                        echo '<tr><th scope="row">' . esc_html( $row[0] ) . '</th><td>' . esc_html( $row[1] ) . '</td><td>' . esc_html( $row[2] ) . '</td></tr>';
    180185                }
    181                 echo '</tbody></table></div><h2>' . esc_html__( 'Try the full version on your store', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
     186                echo '</tbody></table></div><div class="starlight-kaspi-trial"><h2>' . esc_html__( 'Try the full version on your store', 'starlight-payment-gateway-for-kaspi' ) . '</h2>';
    182187                echo '<p><strong>' . esc_html__( 'Seven-day trial. No credit card required.', 'starlight-payment-gateway-for-kaspi' ) . '</strong></p>';
    183188                echo '<p>' . esc_html__( 'The full integration requires merchant access to Kaspi Public QR API Scheme 1. Purchasing the plugin does not grant access to the Kaspi API.', 'starlight-payment-gateway-for-kaspi' ) . '</p>';
    … …  
    190195                        echo '<p><a class="button button-primary" href="' . esc_url( $url ) . '" target="_blank" rel="noopener noreferrer">' . esc_html__( 'Explore the full version', 'starlight-payment-gateway-for-kaspi' ) . '</a></p>';
    191196                }
    192                 echo '<p>' . esc_html__( 'Developed by Starlight Group. Not affiliated with or endorsed by Kaspi.kz or WooCommerce.', 'starlight-payment-gateway-for-kaspi' ) . '</p>';
    193                 echo '</section>';
     197                echo '</div><p class="starlight-kaspi-disclaimer">' . esc_html__( 'Developed by Starlight Group. Not affiliated with or endorsed by Kaspi.kz or WooCommerce.', 'starlight-payment-gateway-for-kaspi' ) . '</p>';
     198                echo '</section></div>';
    194199        }
    195200}
  • starlight-payment-gateway-for-kaspi/trunk/readme.txt

    r3742465 r3742487  
    66Requires PHP: 8.1
    77Requires Plugins: woocommerce
    8 Stable tag: 1.0.5
     8Stable tag: 1.0.6
    99License: GPL-3.0-or-later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
    … …  
    191191== Changelog ==
    192192
     193= 1.0.6 =
     194* Confirm compatibility with WooCommerce 11.2.1, including HPOS with synchronization disabled and legacy order storage.
     195* Improve the Full version tab with a spaced language selector, responsive benefit cards and a readable comparison table.
     196
    193197= 1.0.5 =
    194198* Rewrite the directory description with complete English and Russian sections, clear setup steps, store benefits and full-version requirements.
  • starlight-payment-gateway-for-kaspi/trunk/starlight-payment-gateway-for-kaspi.php

    r3742465 r3742487  
    44 * Plugin URI: https://group-starlight.com/products/kz-pay/
    55 * Description: Kaspi Pay payment gateway for WooCommerce: accept KZT orders using payment links and confirm payments manually. By Starlight Group.
    6  * Version: 1.0.5
     6 * Version: 1.0.6
    77 * Requires at least: 6.9
    88 * Requires PHP: 8.1
    99 * Requires Plugins: woocommerce
    1010 * WC requires at least: 10.8
    11  * WC tested up to: 10.8.1
     11 * WC tested up to: 11.2.1
    1212 * Author: Starlight Group
    1313 * Author URI: https://group-starlight.com/
    … …  
    2323}
    2424
    25 define( 'STARLIGHT_KASPI_LINKS_VERSION', '1.0.5' );
     25define( 'STARLIGHT_KASPI_LINKS_VERSION', '1.0.6' );
    2626define( 'STARLIGHT_KASPI_LINKS_FILE', __FILE__ );
    2727
Note: See TracChangeset for help on using the changeset viewer.