Changeset 3742487
- Timestamp:
- 10/12/2026 08:42:52 PM (9 days ago)
- Location:
- starlight-payment-gateway-for-kaspi
- Files:
-
- 2 added
- 6 edited
- 1 copied
-
tags/1.0.6 (copied) (copied from starlight-payment-gateway-for-kaspi/trunk )
-
tags/1.0.6/assets/admin.css (added)
-
tags/1.0.6/includes/Admin.php (modified) (5 diffs)
-
tags/1.0.6/readme.txt (modified) (2 diffs)
-
tags/1.0.6/starlight-payment-gateway-for-kaspi.php (modified) (2 diffs)
-
trunk/assets/admin.css (added)
-
trunk/includes/Admin.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/starlight-payment-gateway-for-kaspi.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
starlight-payment-gateway-for-kaspi/tags/1.0.6/includes/Admin.php
r3740349 r3742487 9 9 public static function register(): void { 10 10 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 } ); 12 17 } ); 13 18 add_action( 'admin_post_starlight_kaspi_links_save', [ self::class, 'save' ] ); … … 137 142 138 143 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' ) . '">'; 140 145 $choices = [ 'auto' => __( 'Automatic (WordPress language)', 'starlight-payment-gateway-for-kaspi' ), 'ru' => 'Русский', 'en' => 'English' ]; 141 146 foreach ( $choices as $choice => $label ) { 142 147 $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>'; 146 151 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>'; 148 153 echo '<p><strong>' . esc_html__( 'Less manual reconciliation. More time for orders and customers.', 'starlight-payment-gateway-for-kaspi' ) . '</strong></p>'; 149 154 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">'; 151 156 $benefits = [ 152 157 [ __( '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' ) ], … … 162 167 ]; 163 168 foreach ( $benefits as $benefit ) { 164 echo '<d t><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>'; 168 173 $rows = [ 169 174 [ __( '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' ) ], … … 179 184 echo '<tr><th scope="row">' . esc_html( $row[0] ) . '</th><td>' . esc_html( $row[1] ) . '</td><td>' . esc_html( $row[2] ) . '</td></tr>'; 180 185 } 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>'; 182 187 echo '<p><strong>' . esc_html__( 'Seven-day trial. No credit card required.', 'starlight-payment-gateway-for-kaspi' ) . '</strong></p>'; 183 188 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>'; … … 190 195 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>'; 191 196 } 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>'; 194 199 } 195 200 } -
starlight-payment-gateway-for-kaspi/tags/1.0.6/readme.txt
r3742465 r3742487 6 6 Requires PHP: 8.1 7 7 Requires Plugins: woocommerce 8 Stable tag: 1.0. 58 Stable tag: 1.0.6 9 9 License: GPL-3.0-or-later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 191 191 == Changelog == 192 192 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 193 197 = 1.0.5 = 194 198 * 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 4 4 * Plugin URI: https://group-starlight.com/products/kz-pay/ 5 5 * Description: Kaspi Pay payment gateway for WooCommerce: accept KZT orders using payment links and confirm payments manually. By Starlight Group. 6 * Version: 1.0. 56 * Version: 1.0.6 7 7 * Requires at least: 6.9 8 8 * Requires PHP: 8.1 9 9 * Requires Plugins: woocommerce 10 10 * WC requires at least: 10.8 11 * WC tested up to: 1 0.8.111 * WC tested up to: 11.2.1 12 12 * Author: Starlight Group 13 13 * Author URI: https://group-starlight.com/ … … 23 23 } 24 24 25 define( 'STARLIGHT_KASPI_LINKS_VERSION', '1.0. 5' );25 define( 'STARLIGHT_KASPI_LINKS_VERSION', '1.0.6' ); 26 26 define( 'STARLIGHT_KASPI_LINKS_FILE', __FILE__ ); 27 27 -
starlight-payment-gateway-for-kaspi/trunk/includes/Admin.php
r3740349 r3742487 9 9 public static function register(): void { 10 10 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 } ); 12 17 } ); 13 18 add_action( 'admin_post_starlight_kaspi_links_save', [ self::class, 'save' ] ); … … 137 142 138 143 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' ) . '">'; 140 145 $choices = [ 'auto' => __( 'Automatic (WordPress language)', 'starlight-payment-gateway-for-kaspi' ), 'ru' => 'Русский', 'en' => 'English' ]; 141 146 foreach ( $choices as $choice => $label ) { 142 147 $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>'; 146 151 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>'; 148 153 echo '<p><strong>' . esc_html__( 'Less manual reconciliation. More time for orders and customers.', 'starlight-payment-gateway-for-kaspi' ) . '</strong></p>'; 149 154 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">'; 151 156 $benefits = [ 152 157 [ __( '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' ) ], … … 162 167 ]; 163 168 foreach ( $benefits as $benefit ) { 164 echo '<d t><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>'; 168 173 $rows = [ 169 174 [ __( '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' ) ], … … 179 184 echo '<tr><th scope="row">' . esc_html( $row[0] ) . '</th><td>' . esc_html( $row[1] ) . '</td><td>' . esc_html( $row[2] ) . '</td></tr>'; 180 185 } 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>'; 182 187 echo '<p><strong>' . esc_html__( 'Seven-day trial. No credit card required.', 'starlight-payment-gateway-for-kaspi' ) . '</strong></p>'; 183 188 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>'; … … 190 195 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>'; 191 196 } 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>'; 194 199 } 195 200 } -
starlight-payment-gateway-for-kaspi/trunk/readme.txt
r3742465 r3742487 6 6 Requires PHP: 8.1 7 7 Requires Plugins: woocommerce 8 Stable tag: 1.0. 58 Stable tag: 1.0.6 9 9 License: GPL-3.0-or-later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 191 191 == Changelog == 192 192 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 193 197 = 1.0.5 = 194 198 * 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 4 4 * Plugin URI: https://group-starlight.com/products/kz-pay/ 5 5 * Description: Kaspi Pay payment gateway for WooCommerce: accept KZT orders using payment links and confirm payments manually. By Starlight Group. 6 * Version: 1.0. 56 * Version: 1.0.6 7 7 * Requires at least: 6.9 8 8 * Requires PHP: 8.1 9 9 * Requires Plugins: woocommerce 10 10 * WC requires at least: 10.8 11 * WC tested up to: 1 0.8.111 * WC tested up to: 11.2.1 12 12 * Author: Starlight Group 13 13 * Author URI: https://group-starlight.com/ … … 23 23 } 24 24 25 define( 'STARLIGHT_KASPI_LINKS_VERSION', '1.0. 5' );25 define( 'STARLIGHT_KASPI_LINKS_VERSION', '1.0.6' ); 26 26 define( 'STARLIGHT_KASPI_LINKS_FILE', __FILE__ ); 27 27
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)