Changeset 3497619
- Timestamp:
- 04/02/2026 03:33:13 PM (27 hours ago)
- Location:
- anka-commerce
- Files:
-
- 25 edited
- 2 copied
-
tags/1.2.1 (copied) (copied from anka-commerce/trunk)
-
tags/1.2.1/README.md (modified) (3 diffs)
-
tags/1.2.1/anka-commerce.php (modified) (3 diffs)
-
tags/1.2.1/build/anka-commerce-woocommerce-block.asset.php (modified) (1 diff)
-
tags/1.2.1/build/anka-commerce-woocommerce-block.js (modified) (1 diff)
-
tags/1.2.1/includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay-blocks-support.php (modified) (1 diff)
-
tags/1.2.1/includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php (modified) (1 diff)
-
tags/1.2.1/includes/woocommerce/class-anka-commerce-woocommerce.php (modified) (4 diffs)
-
tags/1.2.1/languages/anka-commerce-fr_FR.mo (modified) (previous)
-
tags/1.2.1/languages/anka-commerce-fr_FR.po (modified) (17 diffs)
-
tags/1.2.1/languages/anka-commerce.pot (modified) (5 diffs)
-
tags/1.2.1/package-lock.json (modified) (2 diffs)
-
tags/1.2.1/package.json (modified) (1 diff)
-
tags/1.2.1/readme.txt (copied) (copied from anka-commerce/trunk/readme.txt) (3 diffs)
-
trunk/README.md (modified) (3 diffs)
-
trunk/anka-commerce.php (modified) (3 diffs)
-
trunk/build/anka-commerce-woocommerce-block.asset.php (modified) (1 diff)
-
trunk/build/anka-commerce-woocommerce-block.js (modified) (1 diff)
-
trunk/includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay-blocks-support.php (modified) (1 diff)
-
trunk/includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php (modified) (1 diff)
-
trunk/includes/woocommerce/class-anka-commerce-woocommerce.php (modified) (4 diffs)
-
trunk/languages/anka-commerce-fr_FR.mo (modified) (previous)
-
trunk/languages/anka-commerce-fr_FR.po (modified) (17 diffs)
-
trunk/languages/anka-commerce.pot (modified) (5 diffs)
-
trunk/package-lock.json (modified) (2 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
anka-commerce/tags/1.2.1/README.md
r3434624 r3497619 7 7 **Tested up to**: 6.7 8 8 **Requires PHP**: 7.2 9 **Stable tag**: 1.2. 09 **Stable tag**: 1.2.1 10 10 **License**: GPLv3 or later 11 11 **License URI**: [http://www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html) … … 127 127 ## Changelog 128 128 129 ### 1.2.1 130 131 - Added an optional setting to charge buyers a fixed 4% ANKA Pay processing fee 132 - Applied processing fee support for ANKA Pay checkout flow, including direct checkout order creation 133 - Added fee metadata support for WooCommerce Blocks integration 134 - Updated translation catalogs and French locale strings for new processing fee labels 135 129 136 ### 1.2.0 130 137 … … 166 173 ## Upgrade Notice 167 174 175 ### Version 1.2.1 176 This update introduces optional ANKA Pay processing fee support and translation updates. Please test checkout totals and gateway settings after upgrading. 177 168 178 ### Version 1.2.0 169 179 **REQUIRED UPDATE**: The ANKA Pay API has been updated. You must use version 1.2.0 or later - previous versions are no longer compatible. This version adds required category mapping and enhanced API integration. -
anka-commerce/tags/1.2.1/anka-commerce.php
r3434624 r3497619 3 3 * Plugin Name: ANKA Commerce 4 4 * Description: Accept payments through ANKA Pay using Credit Cards, Mobile Money, Nigerian Bank Transfer, and PayPal on your WooCommerce store or Payment buttons. 5 * Version: 1.2. 05 * Version: 1.2.1 6 6 * Text Domain: anka-commerce 7 7 * Domain Path: /languages … … 16 16 define( 'ANKA_COMMERCE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 17 17 define( 'ANKA_COMMERCE_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 18 define( 'ANKA_COMMERCE_VERSION', '1.2. 0' );18 define( 'ANKA_COMMERCE_VERSION', '1.2.1' ); 19 19 define( 'ANKA_COMMERCE_DB_VERSION', '1.1.0' ); 20 20 … … 104 104 add_action('template_redirect', array('Anka_Commerce_Woocommerce', 'anka_commerce_woocommerce_direct_checkout_redirection')); 105 105 106 // Add ANKA Pay processing fee to buyer totals when enabled. 107 add_action('woocommerce_cart_calculate_fees', array('Anka_Commerce_Woocommerce', 'anka_commerce_woocommerce_add_processing_fee'), 20, 1); 108 106 109 // Register REST API route to get payment method icon url 107 110 add_action('rest_api_init', array('Anka_Commerce_Woocommerce', 'anka_commerce_woocommerce_register_rest_api_route')); -
anka-commerce/tags/1.2.1/build/anka-commerce-woocommerce-block.asset.php
r3201011 r3497619 1 <?php return array('dependencies' => array('react', 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => ' 746ee53e2d62b689ac27');1 <?php return array('dependencies' => array('react', 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => 'eaa63f08875620c4919d'); -
anka-commerce/tags/1.2.1/build/anka-commerce-woocommerce-block.js
r3201011 r3497619 1 (()=>{"use strict";var e={20:(e,t,r)=>{var o=r(609),n=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,c={},p=null,l=null;for(o in void 0!==r&&(p=""+r),void 0!==t.key&&(p=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,o)&&!i.hasOwnProperty(o)&&(c[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===c[o]&&(c[o]=t[o]);return{$$typeof:n,type:e,key:p,ref:l,props:c,_owner:s.current}}t.jsx=c,t.jsxs=c},848:(e,t,r)=>{e.exports=r(20)},609:e=>{e.exports=window.React}},t={};const r=window.wp.i18n,o=window.wc.wcBlocksRegistry,n=window.wp.htmlEntities,a=window.wc.wcSettings,s=window.wp.element;var i=function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}(848);const c=(0,a.getSetting)("ankapay_data",{}),p=(0,r.__)("ANKA Pay","anka-commerce"),l=(0,n.decodeEntities)(c.title)||p,w=()=>(0,n.decodeEntities)(c.description||""),d=()=>{const[e,t]=(0,s.useState)(c.default _icon);return(0,s.useEffect)((()=>{wp.apiFetch({path:"/anka-commerce/v1/woocommerce/get-icon-url"}).then((e=>{t(e)})).catch((e=>{console.error("Error fetching ANKA Pay icon:",e)}))}),[]),(0,i.jsx)("img",{src:e,alt:"ANKA Pay",style:{float:"right"}})},f=()=>(0,i.jsxs)("span",{style:{width:"100%"},children:[l,(0,i.jsx)(d,{})]}),u={name:"ankapay",label:(0,i.jsx)(f,{}),content:(0,i.jsx)(w,{}),edit:(0,i.jsx)(w,{}),icon:(0,i.jsx)(d,{}),canMakePayment:()=>!0,ariaLabel:l,supports:{features:c.supports}};(0,o.registerPaymentMethod)(u)})();1 (()=>{"use strict";var e={20:(e,t,r)=>{var o=r(609),n=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,c={},p=null,l=null;for(o in void 0!==r&&(p=""+r),void 0!==t.key&&(p=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,o)&&!i.hasOwnProperty(o)&&(c[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===c[o]&&(c[o]=t[o]);return{$$typeof:n,type:e,key:p,ref:l,props:c,_owner:s.current}}t.jsx=c,t.jsxs=c},848:(e,t,r)=>{e.exports=r(20)},609:e=>{e.exports=window.React}},t={};const r=window.wp.i18n,o=window.wc.wcBlocksRegistry,n=window.wp.htmlEntities,a=window.wc.wcSettings,s=window.wp.element;var i=function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}(848);const c=(0,a.getSetting)("ankapay_data",{}),p=(0,r.__)("ANKA Pay","anka-commerce"),l=(0,n.decodeEntities)(c.title)||p,w=()=>(0,n.decodeEntities)(c.description||""),d=()=>{const[e,t]=(0,s.useState)(c.defaultIcon);return(0,s.useEffect)((()=>{wp.apiFetch({path:"/anka-commerce/v1/woocommerce/get-icon-url"}).then((e=>{t(e)})).catch((e=>{console.error("Error fetching ANKA Pay icon:",e)}))}),[]),(0,i.jsx)("img",{src:e,alt:"ANKA Pay",style:{float:"right"}})},f=()=>(0,i.jsxs)("span",{style:{width:"100%"},children:[l,(0,i.jsx)(d,{})]}),u={name:"ankapay",label:(0,i.jsx)(f,{}),content:(0,i.jsx)(w,{}),edit:(0,i.jsx)(w,{}),icon:(0,i.jsx)(d,{}),canMakePayment:()=>!0,ariaLabel:l,supports:{features:c.supports}};(0,o.registerPaymentMethod)(u)})(); -
anka-commerce/tags/1.2.1/includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay-blocks-support.php
r3201011 r3497619 87 87 'title' => sanitize_text_field( $this->get_setting( 'title' ) ), 88 88 'description' => sanitize_text_field( $this->get_setting( 'description' ) ), 89 'chargeProcessingFee' => 'yes' === sanitize_text_field( $this->get_setting( 'charge_processing_fee' ) ), 90 'processingFeeLabel' => __( 'ANKA Pay processing fee (4%)', 'anka-commerce' ), 89 91 'defaultIcon' => esc_url( ANKA_COMMERCE_PLUGIN_URL . 'assets/img/anka-pay-global.png' ), 90 92 'supports' => array_filter( $this->gateway->supports, [ $this->gateway, 'supports' ] ) -
anka-commerce/tags/1.2.1/includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php
r3434624 r3497619 81 81 'title' => __( 'Enable Direct Checkout', 'anka-commerce' ), 82 82 'description' => __( 'Skip WordPress checkout and go directly to ANKA Pay checkout.', 'anka-commerce' ), 83 'type' => 'checkbox', 84 'default' => 'no', 85 ), 86 'charge_processing_fee' => array( 87 'title' => __( 'Charge Processing Fee To Buyer', 'anka-commerce' ), 88 'description' => __( 'Add a 4% ANKA Pay processing fee to the buyer total when ANKA Pay is selected.', 'anka-commerce' ), 83 89 'type' => 'checkbox', 84 90 'default' => 'no', -
anka-commerce/tags/1.2.1/includes/woocommerce/class-anka-commerce-woocommerce.php
r3434624 r3497619 14 14 15 15 class Anka_Commerce_Woocommerce { 16 17 /** 18 * Fixed ANKA Pay processing fee rate. 19 */ 20 const ANKA_COMMERCE_WOOCOMMERCE_PROCESSING_FEE_RATE = 0.04; 16 21 17 22 /** … … 265 270 266 271 /** 272 * Add ANKA Pay processing fee to cart totals when enabled. 273 * 274 * @param WC_Cart $cart 275 */ 276 public static function anka_commerce_woocommerce_add_processing_fee( $cart ) { 277 if ( ! $cart || ! is_a( $cart, 'WC_Cart' ) ) { 278 return; 279 } 280 281 if ( is_admin() && ! defined( 'DOING_AJAX' ) ) { 282 return; 283 } 284 285 if ( ! self::anka_commerce_woocommerce_is_processing_fee_enabled() ) { 286 return; 287 } 288 289 $selected_payment_method = self::anka_commerce_woocommerce_get_selected_payment_method(); 290 if ( 'ankapay' !== $selected_payment_method ) { 291 return; 292 } 293 294 $cart_total_for_fee = self::anka_commerce_woocommerce_get_cart_total_for_processing_fee( $cart ); 295 $fee_amount = self::anka_commerce_woocommerce_get_processing_fee_amount( $cart_total_for_fee ); 296 297 if ( $fee_amount <= 0 ) { 298 return; 299 } 300 301 $cart->add_fee( self::anka_commerce_woocommerce_get_processing_fee_label(), $fee_amount, false ); 302 } 303 304 /** 267 305 * Create WooCommerce order. 268 306 * … … 275 313 $quantity = $cart_item['quantity']; 276 314 $order->add_product(wc_get_product($product_id), $quantity); 315 } 316 317 if ( self::anka_commerce_woocommerce_is_processing_fee_enabled() ) { 318 $cart_total_for_fee = self::anka_commerce_woocommerce_get_cart_total_for_processing_fee( WC()->cart ); 319 $fee_amount = self::anka_commerce_woocommerce_get_processing_fee_amount( $cart_total_for_fee ); 320 321 if ( $fee_amount > 0 ) { 322 $fee_item = new WC_Order_Item_Fee(); 323 $fee_item->set_name( self::anka_commerce_woocommerce_get_processing_fee_label() ); 324 $fee_item->set_amount( $fee_amount ); 325 $fee_item->set_total( $fee_amount ); 326 $fee_item->set_tax_status( 'none' ); 327 328 $order->add_item( $fee_item ); 329 } 277 330 } 278 331 … … 521 574 return null; 522 575 } 576 577 /** 578 * Check if processing fee is enabled in ANKA Pay settings. 579 * 580 * @return bool 581 */ 582 private static function anka_commerce_woocommerce_is_processing_fee_enabled() { 583 $settings = get_option( 'woocommerce_ankapay_settings', array() ); 584 return isset( $settings['charge_processing_fee'] ) && 'yes' === $settings['charge_processing_fee']; 585 } 586 587 /** 588 * Get fee amount based on configured fixed percentage. 589 * 590 * @param float $base_amount 591 * @return float 592 */ 593 private static function anka_commerce_woocommerce_get_processing_fee_amount( $base_amount ) { 594 if ( $base_amount <= 0 ) { 595 return 0; 596 } 597 598 $fee_amount = (float) $base_amount * self::ANKA_COMMERCE_WOOCOMMERCE_PROCESSING_FEE_RATE; 599 return (float) wc_format_decimal( $fee_amount, wc_get_price_decimals() ); 600 } 601 602 /** 603 * Get the cart total basis for processing fee. 604 * 605 * @param WC_Cart $cart 606 * @return float 607 */ 608 private static function anka_commerce_woocommerce_get_cart_total_for_processing_fee( $cart ) { 609 if ( ! $cart || ! is_a( $cart, 'WC_Cart' ) ) { 610 return 0; 611 } 612 613 return (float) $cart->get_cart_contents_total() 614 + (float) $cart->get_shipping_total() 615 + (float) $cart->get_cart_contents_tax() 616 + (float) $cart->get_shipping_tax(); 617 } 618 619 /** 620 * Resolve selected payment method from request/session. 621 * 622 * @return string 623 */ 624 private static function anka_commerce_woocommerce_get_selected_payment_method() { 625 if ( isset( $_POST['payment_method'] ) ) { 626 $posted_method = sanitize_text_field( wp_unslash( $_POST['payment_method'] ) ); 627 628 if ( WC()->session ) { 629 WC()->session->set( 'chosen_payment_method', $posted_method ); 630 } 631 632 return $posted_method; 633 } 634 635 if ( WC()->session ) { 636 return (string) WC()->session->get( 'chosen_payment_method', '' ); 637 } 638 639 return ''; 640 } 641 642 /** 643 * Get buyer-visible processing fee label. 644 * 645 * @return string 646 */ 647 private static function anka_commerce_woocommerce_get_processing_fee_label() { 648 return __( 'ANKA Pay processing fee (4%)', 'anka-commerce' ); 649 } 523 650 } 524 651 ?> -
anka-commerce/tags/1.2.1/languages/anka-commerce-fr_FR.po
r3434624 r3497619 1 # Copyright (C) 2026 1 # Copyright (C) 2026 2 2 # This file is distributed under the GPL-3.0+. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: ANKA Commerce 1.2.0\n" 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordpress-" 7 "plugin\n" 8 "POT-Creation-Date: 2026-01-07T09:24:29+00:00\n" 5 "Project-Id-Version: ANKA Commerce 1.2.1\n" 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordpress-plugin\n" 7 "POT-Creation-Date: 2026-04-02T14:03:22+00:00\n" 9 8 "PO-Revision-Date: 2026-01-07 10:27+0100\n" 10 9 "Last-Translator: \n" … … 29 28 msgstr "" 30 29 "Acceptez les paiements via ANKA Pay sur votre boutique WooCommerce en " 31 "utilisant des cartes de crédit, Mobile Money, Virement bancaire nigérian, " 32 "et PayPal." 33 34 #. translators: %1$s is the error status, %2$s is the error detail, %3$s is the error source pointer 35 #: includes/api/class-anka-pay-api.php:215 36 msgid "Error %1$s: %2$s (%3$s)" 37 msgstr "Erreur %1$s: %2$s (%3$s)" 30 "utilisant des cartes de crédit, Mobile Money, Virement bancaire nigérian, et " 31 "PayPal." 38 32 39 33 #: includes/class-anka-commerce-categories.php:305 … … 105 99 "Please set your API token in the settings before creating a payment button." 106 100 msgstr "" 107 "Veuillez entrer votre Token API dans les paramètres avant de créer un "108 " boutonde paiement."101 "Veuillez entrer votre Token API dans les paramètres avant de créer un bouton " 102 "de paiement." 109 103 110 104 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:167 … … 159 153 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:228 160 154 msgid "Select the category that best describes your product or service" 161 msgstr "" 162 "Sélectionnez la catégorie qui décrit le mieux votre produit ou service" 155 msgstr "Sélectionnez la catégorie qui décrit le mieux votre produit ou service" 163 156 164 157 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:230 … … 248 241 249 242 #: includes/webhook/class-anka-pay-webhook-handler.php:143 250 #: includes/woocommerce/class-anka-commerce-woocommerce.php:20 4243 #: includes/woocommerce/class-anka-commerce-woocommerce.php:209 251 244 msgid "Awaiting ANKA Pay payment" 252 245 msgstr "En attente du paiement ANKA Pay" … … 259 252 msgid "ANKA Pay payment failed" 260 253 msgstr "Échec du paiement ANKA Pay" 254 255 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay-blocks-support.php:90 256 #: includes/woocommerce/class-anka-commerce-woocommerce.php:648 257 msgid "ANKA Pay processing fee (4%)" 258 msgstr "Frais de traitement ANKA Pay (4 %)" 261 259 262 260 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:34 … … 273 271 msgstr "" 274 272 "Acceptez les paiements via ANKA Pay sur votre boutique WooCommerce en " 275 "utilisant des cartes de crédit, Mobile Money, Virement bancaire nigérian, "276 " etPayPal."273 "utilisant des cartes de crédit, Mobile Money, Virement bancaire nigérian, et " 274 "PayPal." 277 275 278 276 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:75 … … 299 297 300 298 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:87 299 msgid "Charge Processing Fee To Buyer" 300 msgstr "Facturer les frais de traitement à l’acheteur" 301 302 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:88 303 msgid "" 304 "Add a 4% ANKA Pay processing fee to the buyer total when ANKA Pay is " 305 "selected." 306 msgstr "" 307 "Ajouter des frais de traitement ANKA Pay de 4 % au total payé par " 308 "l’acheteur lorsque ANKA Pay est sélectionné." 309 310 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:93 301 311 msgid "Category Mapping" 302 312 msgstr "Cartographie des catégories" 303 313 304 314 #. translators: %s: Clear cache URL 305 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:9 1315 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:97 306 316 msgid "" 307 317 "<strong>REQUIRED FOR FRAUD MONITORING:</strong> You must map each " … … 320 330 "actualiser les catégories à partir de l'API" 321 331 322 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 36332 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:142 323 333 msgid "WooCommerce Category" 324 334 msgstr "Catégories WooCommerce" 325 335 326 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 39336 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:145 327 337 msgid "ANKA Pay Category" 328 338 msgstr "Catégories ANKA Pay" 329 339 330 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 57340 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:163 331 341 msgid "-- Select ANKA Category --" 332 342 msgstr "-- Sélectionnez la catégorie ANKA --" 333 343 334 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 76344 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:182 335 345 msgid "" 336 346 "No WooCommerce product categories found. Create product categories first." … … 339 349 "catégories de produits." 340 350 341 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:26 2351 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:268 342 352 msgid "Payment error: Unable to create payment link with ANKA Pay." 343 353 msgstr "" … … 345 355 346 356 #. translators: %s: error message 347 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:27 0348 #: includes/woocommerce/class-anka-commerce-woocommerce.php:12 0357 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:276 358 #: includes/woocommerce/class-anka-commerce-woocommerce.php:125 349 359 msgid "ANKA Pay API Error: %s" 350 360 msgstr "Erreur API ANKA Pay : %s" 351 361 352 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:32 0362 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:326 353 363 msgid "Categories cache cleared and refreshed from API!" 354 364 msgstr "Cache des catégories effacé et actualisé à partir de l'API !" 355 365 356 366 #. translators: 1: WooCommerce settings URL 357 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:33 2367 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:338 358 368 msgid "" 359 369 "ANKA Pay is enabled, but the checkout page is not forced to use HTTPS. " … … 365 375 "forçant l’utilisation de SSL sur les pages de paiement dans le %s." 366 376 367 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:33 3368 #: includes/woocommerce/class-anka-commerce-woocommerce.php:26 1377 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:339 378 #: includes/woocommerce/class-anka-commerce-woocommerce.php:266 369 379 msgid "WooCommerce settings" 370 380 msgstr "Réglages WooCommerce" 371 381 372 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 59373 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 77382 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:365 383 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:383 374 384 msgid "ANKA Pay: ACTION REQUIRED" 375 385 msgstr "ANKA Pay : ACTION REQUISE" 376 386 377 387 #. translators: 1: WooCommerce categories URL, 2: ANKA Pay settings URL 378 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 1388 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:367 379 389 msgid "" 380 390 "Payment processing is blocked because no product categories exist. You must " … … 386 396 "dans %2$s afin de respecter les normes de prévention de la fraude." 387 397 388 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 2398 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:368 389 399 msgid "create product categories" 390 400 msgstr "créer des catégories de produits" 391 401 392 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 3393 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:38 1402 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:369 403 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:387 394 404 msgid "ANKA Pay settings" 395 405 msgstr "Réglages ANKA Pay" 396 406 397 407 #. translators: 1: list of unmapped categories, 2: ANKA Pay settings URL 398 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 79408 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:385 399 409 msgid "" 400 410 "Payment processing is blocked for products in these unmapped categories: " … … 407 417 "de la fraude." 408 418 409 #: includes/woocommerce/class-anka-commerce-woocommerce.php: 95419 #: includes/woocommerce/class-anka-commerce-woocommerce.php:100 410 420 msgid "Your cart is empty." 411 421 msgstr "Votre panier est vide." 412 422 413 #: includes/woocommerce/class-anka-commerce-woocommerce.php:10 2423 #: includes/woocommerce/class-anka-commerce-woocommerce.php:107 414 424 msgid "Unable to create order." 415 425 msgstr "Impossible de créer une commande." 416 426 417 #: includes/woocommerce/class-anka-commerce-woocommerce.php:11 4427 #: includes/woocommerce/class-anka-commerce-woocommerce.php:119 418 428 msgid "ANKA Pay payment link creation failed" 419 429 msgstr "Échec de la création du lien de paiement ANKA Pay" 420 430 421 #: includes/woocommerce/class-anka-commerce-woocommerce.php:16 3431 #: includes/woocommerce/class-anka-commerce-woocommerce.php:168 422 432 msgid "Uncategorized" 423 433 msgstr "Sans catégorie" 424 434 425 435 #. translators: %s: product categories 426 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 68436 #: includes/woocommerce/class-anka-commerce-woocommerce.php:173 427 437 msgid "" 428 438 "Payment link creation blocked: No ANKA Pay category mapping configured for " … … 436 446 437 447 #. translators: %s: link to contact 438 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 78448 #: includes/woocommerce/class-anka-commerce-woocommerce.php:183 439 449 msgid "" 440 450 "Unable to process payment: Products in your cart must have categories " … … 444 454 "Impossible de traiter le paiement : les produits dans votre panier doivent " 445 455 "être classés dans des catégories attribuées et mappées par l'administrateur " 446 "du magasin afin de prévenir toute fraude. Veuillez contacter le magasin "447 " pourobtenir de l'aide. %s"448 449 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 79456 "du magasin afin de prévenir toute fraude. Veuillez contacter le magasin pour " 457 "obtenir de l'aide. %s" 458 459 #: includes/woocommerce/class-anka-commerce-woocommerce.php:184 450 460 msgid "Configure now" 451 461 msgstr "Configurer maintenant" 452 462 453 463 #. translators: %s: category value 454 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 89464 #: includes/woocommerce/class-anka-commerce-woocommerce.php:194 455 465 msgid "" 456 466 "Payment link creation blocked: Invalid ANKA Pay category \"%s\". Please " 457 467 "update category mapping in ANKA Pay settings with a valid category." 458 468 msgstr "" 459 "Création du lien de paiement bloquée : catégorie ANKA Pay « %s » non "460 " valide. Veuillez mettre à jour le mappage des catégories dans les"461 " paramètres ANKAPay avec une catégorie valide."462 463 #: includes/woocommerce/class-anka-commerce-woocommerce.php: 196469 "Création du lien de paiement bloquée : catégorie ANKA Pay « %s » non valide. " 470 "Veuillez mettre à jour le mappage des catégories dans les paramètres ANKA " 471 "Pay avec une catégorie valide." 472 473 #: includes/woocommerce/class-anka-commerce-woocommerce.php:201 464 474 msgid "" 465 475 "Invalid product category configuration. Please contact the store " … … 489 499 msgid "Select Payment Button" 490 500 msgstr "Sélectionner un bouton de paiement" 501 502 #~ msgid "Error %1$s: %2$s (%3$s)" 503 #~ msgstr "Erreur %1$s: %2$s (%3$s)" -
anka-commerce/tags/1.2.1/languages/anka-commerce.pot
r3434624 r3497619 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 1-07T09:24:29+00:00\n"12 "POT-Creation-Date: 2026-04-02T14:03:22+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.10.0\n" … … 23 23 #: anka-commerce.php 24 24 msgid "Accept payments through ANKA Pay using Credit Cards, Mobile Money, Nigerian Bank Transfer, and PayPal on your WooCommerce store or Payment buttons." 25 msgstr ""26 27 #. translators: %1$s is the error status, %2$s is the error detail, %3$s is the error source pointer28 #: includes/api/class-anka-pay-api.php:21529 msgid "Error %1$s: %2$s (%3$s)"30 25 msgstr "" 31 26 … … 228 223 229 224 #: includes/webhook/class-anka-pay-webhook-handler.php:143 230 #: includes/woocommerce/class-anka-commerce-woocommerce.php:20 4225 #: includes/woocommerce/class-anka-commerce-woocommerce.php:209 231 226 msgid "Awaiting ANKA Pay payment" 232 227 msgstr "" … … 238 233 #: includes/webhook/class-anka-pay-webhook-handler.php:153 239 234 msgid "ANKA Pay payment failed" 235 msgstr "" 236 237 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay-blocks-support.php:90 238 #: includes/woocommerce/class-anka-commerce-woocommerce.php:648 239 msgid "ANKA Pay processing fee (4%)" 240 240 msgstr "" 241 241 … … 268 268 269 269 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:87 270 msgid "Charge Processing Fee To Buyer" 271 msgstr "" 272 273 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:88 274 msgid "Add a 4% ANKA Pay processing fee to the buyer total when ANKA Pay is selected." 275 msgstr "" 276 277 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:93 270 278 msgid "Category Mapping" 271 279 msgstr "" 272 280 273 281 #. translators: %s: Clear cache URL 274 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:9 1282 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:97 275 283 msgid "<strong>REQUIRED FOR FRAUD MONITORING:</strong> You must map each WooCommerce product category to a specific ANKA Pay category. Payment link creation will be blocked for products without a valid category mapping. Unmapped categories will cause checkout to fail.<br><br><a href=\"%s\" class=\"button button-secondary\">Clear Categories Cache</a> - Click to refresh categories from API" 276 284 msgstr "" 277 285 278 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 36286 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:142 279 287 msgid "WooCommerce Category" 280 288 msgstr "" 281 289 282 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 39290 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:145 283 291 msgid "ANKA Pay Category" 284 292 msgstr "" 285 293 286 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 57294 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:163 287 295 msgid "-- Select ANKA Category --" 288 296 msgstr "" 289 297 290 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 76298 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:182 291 299 msgid "No WooCommerce product categories found. Create product categories first." 292 300 msgstr "" 293 301 294 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:26 2302 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:268 295 303 msgid "Payment error: Unable to create payment link with ANKA Pay." 296 304 msgstr "" 297 305 298 306 #. translators: %s: error message 299 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:27 0300 #: includes/woocommerce/class-anka-commerce-woocommerce.php:12 0307 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:276 308 #: includes/woocommerce/class-anka-commerce-woocommerce.php:125 301 309 msgid "ANKA Pay API Error: %s" 302 310 msgstr "" 303 311 304 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:32 0312 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:326 305 313 msgid "Categories cache cleared and refreshed from API!" 306 314 msgstr "" 307 315 308 316 #. translators: 1: WooCommerce settings URL 309 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:33 2317 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:338 310 318 msgid "ANKA Pay is enabled, but the checkout page is not forced to use HTTPS. Please ensure your checkout page is secure by forcing SSL on the checkout pages in the %s." 311 319 msgstr "" 312 320 313 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:33 3314 #: includes/woocommerce/class-anka-commerce-woocommerce.php:26 1321 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:339 322 #: includes/woocommerce/class-anka-commerce-woocommerce.php:266 315 323 msgid "WooCommerce settings" 316 324 msgstr "" 317 325 318 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 59319 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 77326 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:365 327 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:383 320 328 msgid "ANKA Pay: ACTION REQUIRED" 321 329 msgstr "" 322 330 323 331 #. translators: 1: WooCommerce categories URL, 2: ANKA Pay settings URL 324 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 1332 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:367 325 333 msgid "Payment processing is blocked because no product categories exist. You must %1$s, assign them to your products, and then map them in the %2$s for fraud prevention compliance." 326 334 msgstr "" 327 335 328 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 2336 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:368 329 337 msgid "create product categories" 330 338 msgstr "" 331 339 332 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 3333 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:38 1340 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:369 341 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:387 334 342 msgid "ANKA Pay settings" 335 343 msgstr "" 336 344 337 345 #. translators: 1: list of unmapped categories, 2: ANKA Pay settings URL 338 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 79346 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:385 339 347 msgid "Payment processing is blocked for products in these unmapped categories: <strong>%1$s</strong>. You must map ALL categories in the %2$s for fraud prevention compliance." 340 348 msgstr "" 341 349 342 #: includes/woocommerce/class-anka-commerce-woocommerce.php: 95350 #: includes/woocommerce/class-anka-commerce-woocommerce.php:100 343 351 msgid "Your cart is empty." 344 352 msgstr "" 345 353 346 #: includes/woocommerce/class-anka-commerce-woocommerce.php:10 2354 #: includes/woocommerce/class-anka-commerce-woocommerce.php:107 347 355 msgid "Unable to create order." 348 356 msgstr "" 349 357 350 #: includes/woocommerce/class-anka-commerce-woocommerce.php:11 4358 #: includes/woocommerce/class-anka-commerce-woocommerce.php:119 351 359 msgid "ANKA Pay payment link creation failed" 352 360 msgstr "" 353 361 354 #: includes/woocommerce/class-anka-commerce-woocommerce.php:16 3362 #: includes/woocommerce/class-anka-commerce-woocommerce.php:168 355 363 msgid "Uncategorized" 356 364 msgstr "" 357 365 358 366 #. translators: %s: product categories 359 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 68367 #: includes/woocommerce/class-anka-commerce-woocommerce.php:173 360 368 msgid "Payment link creation blocked: No ANKA Pay category mapping configured for product categories: %s. This is required for fraud monitoring. Please configure category mapping in ANKA Pay settings." 361 369 msgstr "" 362 370 363 371 #. translators: %s: link to contact 364 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 78372 #: includes/woocommerce/class-anka-commerce-woocommerce.php:183 365 373 msgid "Unable to process payment: Products in your cart must have categories assigned and mapped by the store administrator for fraud prevention. Please contact the store for assistance. %s" 366 374 msgstr "" 367 375 368 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 79376 #: includes/woocommerce/class-anka-commerce-woocommerce.php:184 369 377 msgid "Configure now" 370 378 msgstr "" 371 379 372 380 #. translators: %s: category value 373 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 89381 #: includes/woocommerce/class-anka-commerce-woocommerce.php:194 374 382 msgid "Payment link creation blocked: Invalid ANKA Pay category \"%s\". Please update category mapping in ANKA Pay settings with a valid category." 375 383 msgstr "" 376 384 377 #: includes/woocommerce/class-anka-commerce-woocommerce.php: 196385 #: includes/woocommerce/class-anka-commerce-woocommerce.php:201 378 386 msgid "Invalid product category configuration. Please contact the store administrator to update category mappings." 379 387 msgstr "" -
anka-commerce/tags/1.2.1/package-lock.json
r3336161 r3497619 1 1 { 2 2 "name": "anka-commerce", 3 "version": "1. 1.4",3 "version": "1.2.1", 4 4 "lockfileVersion": 3, 5 5 "requires": true, … … 7 7 "": { 8 8 "name": "anka-commerce", 9 "version": "1. 1.4",9 "version": "1.2.1", 10 10 "license": "ISC", 11 11 "devDependencies": { -
anka-commerce/tags/1.2.1/package.json
r3434624 r3497619 2 2 "name": "anka-commerce", 3 3 "title": "ANKA Commerce", 4 "version": "1.2. 0",4 "version": "1.2.1", 5 5 "license": "ISC", 6 6 "keywords": [], -
anka-commerce/tags/1.2.1/readme.txt
r3465368 r3497619 6 6 Tested up to: 6.7 7 7 Requires PHP: 7.2 8 Stable tag: 1.2. 08 Stable tag: 1.2.1 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 119 119 120 120 == Changelog == 121 = 1.2.1 = 122 * Added an optional setting to charge buyers a fixed 4% ANKA Pay processing fee 123 * Applied processing fee support for ANKA Pay checkout flow, including direct checkout order creation 124 * Added fee metadata support for WooCommerce Blocks integration 125 * Updated translation catalogs and French locale strings for new processing fee labels 126 121 127 = 1.2.0 = 122 128 * **IMPORTANT**: This update is required for compatibility with the latest ANKA Pay API. Previous versions will stop working when the API is updated. … … 150 156 151 157 == Upgrade Notice == 158 = 1.2.1 = 159 This update introduces optional ANKA Pay processing fee support and translation updates. Please test checkout totals and gateway settings after upgrading. 160 152 161 = 1.2.0 = 153 162 **CRITICAL UPDATE REQUIRED**: You must upgrade to version 1.2.0 before the ANKA Pay API update. Previous versions will stop working after the API deployment. This version adds required category and image URL support for API compatibility. -
anka-commerce/trunk/README.md
r3434624 r3497619 7 7 **Tested up to**: 6.7 8 8 **Requires PHP**: 7.2 9 **Stable tag**: 1.2. 09 **Stable tag**: 1.2.1 10 10 **License**: GPLv3 or later 11 11 **License URI**: [http://www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html) … … 127 127 ## Changelog 128 128 129 ### 1.2.1 130 131 - Added an optional setting to charge buyers a fixed 4% ANKA Pay processing fee 132 - Applied processing fee support for ANKA Pay checkout flow, including direct checkout order creation 133 - Added fee metadata support for WooCommerce Blocks integration 134 - Updated translation catalogs and French locale strings for new processing fee labels 135 129 136 ### 1.2.0 130 137 … … 166 173 ## Upgrade Notice 167 174 175 ### Version 1.2.1 176 This update introduces optional ANKA Pay processing fee support and translation updates. Please test checkout totals and gateway settings after upgrading. 177 168 178 ### Version 1.2.0 169 179 **REQUIRED UPDATE**: The ANKA Pay API has been updated. You must use version 1.2.0 or later - previous versions are no longer compatible. This version adds required category mapping and enhanced API integration. -
anka-commerce/trunk/anka-commerce.php
r3434624 r3497619 3 3 * Plugin Name: ANKA Commerce 4 4 * Description: Accept payments through ANKA Pay using Credit Cards, Mobile Money, Nigerian Bank Transfer, and PayPal on your WooCommerce store or Payment buttons. 5 * Version: 1.2. 05 * Version: 1.2.1 6 6 * Text Domain: anka-commerce 7 7 * Domain Path: /languages … … 16 16 define( 'ANKA_COMMERCE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 17 17 define( 'ANKA_COMMERCE_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 18 define( 'ANKA_COMMERCE_VERSION', '1.2. 0' );18 define( 'ANKA_COMMERCE_VERSION', '1.2.1' ); 19 19 define( 'ANKA_COMMERCE_DB_VERSION', '1.1.0' ); 20 20 … … 104 104 add_action('template_redirect', array('Anka_Commerce_Woocommerce', 'anka_commerce_woocommerce_direct_checkout_redirection')); 105 105 106 // Add ANKA Pay processing fee to buyer totals when enabled. 107 add_action('woocommerce_cart_calculate_fees', array('Anka_Commerce_Woocommerce', 'anka_commerce_woocommerce_add_processing_fee'), 20, 1); 108 106 109 // Register REST API route to get payment method icon url 107 110 add_action('rest_api_init', array('Anka_Commerce_Woocommerce', 'anka_commerce_woocommerce_register_rest_api_route')); -
anka-commerce/trunk/build/anka-commerce-woocommerce-block.asset.php
r3201011 r3497619 1 <?php return array('dependencies' => array('react', 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => ' 746ee53e2d62b689ac27');1 <?php return array('dependencies' => array('react', 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => 'eaa63f08875620c4919d'); -
anka-commerce/trunk/build/anka-commerce-woocommerce-block.js
r3201011 r3497619 1 (()=>{"use strict";var e={20:(e,t,r)=>{var o=r(609),n=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,c={},p=null,l=null;for(o in void 0!==r&&(p=""+r),void 0!==t.key&&(p=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,o)&&!i.hasOwnProperty(o)&&(c[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===c[o]&&(c[o]=t[o]);return{$$typeof:n,type:e,key:p,ref:l,props:c,_owner:s.current}}t.jsx=c,t.jsxs=c},848:(e,t,r)=>{e.exports=r(20)},609:e=>{e.exports=window.React}},t={};const r=window.wp.i18n,o=window.wc.wcBlocksRegistry,n=window.wp.htmlEntities,a=window.wc.wcSettings,s=window.wp.element;var i=function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}(848);const c=(0,a.getSetting)("ankapay_data",{}),p=(0,r.__)("ANKA Pay","anka-commerce"),l=(0,n.decodeEntities)(c.title)||p,w=()=>(0,n.decodeEntities)(c.description||""),d=()=>{const[e,t]=(0,s.useState)(c.default _icon);return(0,s.useEffect)((()=>{wp.apiFetch({path:"/anka-commerce/v1/woocommerce/get-icon-url"}).then((e=>{t(e)})).catch((e=>{console.error("Error fetching ANKA Pay icon:",e)}))}),[]),(0,i.jsx)("img",{src:e,alt:"ANKA Pay",style:{float:"right"}})},f=()=>(0,i.jsxs)("span",{style:{width:"100%"},children:[l,(0,i.jsx)(d,{})]}),u={name:"ankapay",label:(0,i.jsx)(f,{}),content:(0,i.jsx)(w,{}),edit:(0,i.jsx)(w,{}),icon:(0,i.jsx)(d,{}),canMakePayment:()=>!0,ariaLabel:l,supports:{features:c.supports}};(0,o.registerPaymentMethod)(u)})();1 (()=>{"use strict";var e={20:(e,t,r)=>{var o=r(609),n=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,c={},p=null,l=null;for(o in void 0!==r&&(p=""+r),void 0!==t.key&&(p=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,o)&&!i.hasOwnProperty(o)&&(c[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===c[o]&&(c[o]=t[o]);return{$$typeof:n,type:e,key:p,ref:l,props:c,_owner:s.current}}t.jsx=c,t.jsxs=c},848:(e,t,r)=>{e.exports=r(20)},609:e=>{e.exports=window.React}},t={};const r=window.wp.i18n,o=window.wc.wcBlocksRegistry,n=window.wp.htmlEntities,a=window.wc.wcSettings,s=window.wp.element;var i=function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}(848);const c=(0,a.getSetting)("ankapay_data",{}),p=(0,r.__)("ANKA Pay","anka-commerce"),l=(0,n.decodeEntities)(c.title)||p,w=()=>(0,n.decodeEntities)(c.description||""),d=()=>{const[e,t]=(0,s.useState)(c.defaultIcon);return(0,s.useEffect)((()=>{wp.apiFetch({path:"/anka-commerce/v1/woocommerce/get-icon-url"}).then((e=>{t(e)})).catch((e=>{console.error("Error fetching ANKA Pay icon:",e)}))}),[]),(0,i.jsx)("img",{src:e,alt:"ANKA Pay",style:{float:"right"}})},f=()=>(0,i.jsxs)("span",{style:{width:"100%"},children:[l,(0,i.jsx)(d,{})]}),u={name:"ankapay",label:(0,i.jsx)(f,{}),content:(0,i.jsx)(w,{}),edit:(0,i.jsx)(w,{}),icon:(0,i.jsx)(d,{}),canMakePayment:()=>!0,ariaLabel:l,supports:{features:c.supports}};(0,o.registerPaymentMethod)(u)})(); -
anka-commerce/trunk/includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay-blocks-support.php
r3201011 r3497619 87 87 'title' => sanitize_text_field( $this->get_setting( 'title' ) ), 88 88 'description' => sanitize_text_field( $this->get_setting( 'description' ) ), 89 'chargeProcessingFee' => 'yes' === sanitize_text_field( $this->get_setting( 'charge_processing_fee' ) ), 90 'processingFeeLabel' => __( 'ANKA Pay processing fee (4%)', 'anka-commerce' ), 89 91 'defaultIcon' => esc_url( ANKA_COMMERCE_PLUGIN_URL . 'assets/img/anka-pay-global.png' ), 90 92 'supports' => array_filter( $this->gateway->supports, [ $this->gateway, 'supports' ] ) -
anka-commerce/trunk/includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php
r3434624 r3497619 81 81 'title' => __( 'Enable Direct Checkout', 'anka-commerce' ), 82 82 'description' => __( 'Skip WordPress checkout and go directly to ANKA Pay checkout.', 'anka-commerce' ), 83 'type' => 'checkbox', 84 'default' => 'no', 85 ), 86 'charge_processing_fee' => array( 87 'title' => __( 'Charge Processing Fee To Buyer', 'anka-commerce' ), 88 'description' => __( 'Add a 4% ANKA Pay processing fee to the buyer total when ANKA Pay is selected.', 'anka-commerce' ), 83 89 'type' => 'checkbox', 84 90 'default' => 'no', -
anka-commerce/trunk/includes/woocommerce/class-anka-commerce-woocommerce.php
r3434624 r3497619 14 14 15 15 class Anka_Commerce_Woocommerce { 16 17 /** 18 * Fixed ANKA Pay processing fee rate. 19 */ 20 const ANKA_COMMERCE_WOOCOMMERCE_PROCESSING_FEE_RATE = 0.04; 16 21 17 22 /** … … 265 270 266 271 /** 272 * Add ANKA Pay processing fee to cart totals when enabled. 273 * 274 * @param WC_Cart $cart 275 */ 276 public static function anka_commerce_woocommerce_add_processing_fee( $cart ) { 277 if ( ! $cart || ! is_a( $cart, 'WC_Cart' ) ) { 278 return; 279 } 280 281 if ( is_admin() && ! defined( 'DOING_AJAX' ) ) { 282 return; 283 } 284 285 if ( ! self::anka_commerce_woocommerce_is_processing_fee_enabled() ) { 286 return; 287 } 288 289 $selected_payment_method = self::anka_commerce_woocommerce_get_selected_payment_method(); 290 if ( 'ankapay' !== $selected_payment_method ) { 291 return; 292 } 293 294 $cart_total_for_fee = self::anka_commerce_woocommerce_get_cart_total_for_processing_fee( $cart ); 295 $fee_amount = self::anka_commerce_woocommerce_get_processing_fee_amount( $cart_total_for_fee ); 296 297 if ( $fee_amount <= 0 ) { 298 return; 299 } 300 301 $cart->add_fee( self::anka_commerce_woocommerce_get_processing_fee_label(), $fee_amount, false ); 302 } 303 304 /** 267 305 * Create WooCommerce order. 268 306 * … … 275 313 $quantity = $cart_item['quantity']; 276 314 $order->add_product(wc_get_product($product_id), $quantity); 315 } 316 317 if ( self::anka_commerce_woocommerce_is_processing_fee_enabled() ) { 318 $cart_total_for_fee = self::anka_commerce_woocommerce_get_cart_total_for_processing_fee( WC()->cart ); 319 $fee_amount = self::anka_commerce_woocommerce_get_processing_fee_amount( $cart_total_for_fee ); 320 321 if ( $fee_amount > 0 ) { 322 $fee_item = new WC_Order_Item_Fee(); 323 $fee_item->set_name( self::anka_commerce_woocommerce_get_processing_fee_label() ); 324 $fee_item->set_amount( $fee_amount ); 325 $fee_item->set_total( $fee_amount ); 326 $fee_item->set_tax_status( 'none' ); 327 328 $order->add_item( $fee_item ); 329 } 277 330 } 278 331 … … 521 574 return null; 522 575 } 576 577 /** 578 * Check if processing fee is enabled in ANKA Pay settings. 579 * 580 * @return bool 581 */ 582 private static function anka_commerce_woocommerce_is_processing_fee_enabled() { 583 $settings = get_option( 'woocommerce_ankapay_settings', array() ); 584 return isset( $settings['charge_processing_fee'] ) && 'yes' === $settings['charge_processing_fee']; 585 } 586 587 /** 588 * Get fee amount based on configured fixed percentage. 589 * 590 * @param float $base_amount 591 * @return float 592 */ 593 private static function anka_commerce_woocommerce_get_processing_fee_amount( $base_amount ) { 594 if ( $base_amount <= 0 ) { 595 return 0; 596 } 597 598 $fee_amount = (float) $base_amount * self::ANKA_COMMERCE_WOOCOMMERCE_PROCESSING_FEE_RATE; 599 return (float) wc_format_decimal( $fee_amount, wc_get_price_decimals() ); 600 } 601 602 /** 603 * Get the cart total basis for processing fee. 604 * 605 * @param WC_Cart $cart 606 * @return float 607 */ 608 private static function anka_commerce_woocommerce_get_cart_total_for_processing_fee( $cart ) { 609 if ( ! $cart || ! is_a( $cart, 'WC_Cart' ) ) { 610 return 0; 611 } 612 613 return (float) $cart->get_cart_contents_total() 614 + (float) $cart->get_shipping_total() 615 + (float) $cart->get_cart_contents_tax() 616 + (float) $cart->get_shipping_tax(); 617 } 618 619 /** 620 * Resolve selected payment method from request/session. 621 * 622 * @return string 623 */ 624 private static function anka_commerce_woocommerce_get_selected_payment_method() { 625 if ( isset( $_POST['payment_method'] ) ) { 626 $posted_method = sanitize_text_field( wp_unslash( $_POST['payment_method'] ) ); 627 628 if ( WC()->session ) { 629 WC()->session->set( 'chosen_payment_method', $posted_method ); 630 } 631 632 return $posted_method; 633 } 634 635 if ( WC()->session ) { 636 return (string) WC()->session->get( 'chosen_payment_method', '' ); 637 } 638 639 return ''; 640 } 641 642 /** 643 * Get buyer-visible processing fee label. 644 * 645 * @return string 646 */ 647 private static function anka_commerce_woocommerce_get_processing_fee_label() { 648 return __( 'ANKA Pay processing fee (4%)', 'anka-commerce' ); 649 } 523 650 } 524 651 ?> -
anka-commerce/trunk/languages/anka-commerce-fr_FR.po
r3434624 r3497619 1 # Copyright (C) 2026 1 # Copyright (C) 2026 2 2 # This file is distributed under the GPL-3.0+. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: ANKA Commerce 1.2.0\n" 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordpress-" 7 "plugin\n" 8 "POT-Creation-Date: 2026-01-07T09:24:29+00:00\n" 5 "Project-Id-Version: ANKA Commerce 1.2.1\n" 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordpress-plugin\n" 7 "POT-Creation-Date: 2026-04-02T14:03:22+00:00\n" 9 8 "PO-Revision-Date: 2026-01-07 10:27+0100\n" 10 9 "Last-Translator: \n" … … 29 28 msgstr "" 30 29 "Acceptez les paiements via ANKA Pay sur votre boutique WooCommerce en " 31 "utilisant des cartes de crédit, Mobile Money, Virement bancaire nigérian, " 32 "et PayPal." 33 34 #. translators: %1$s is the error status, %2$s is the error detail, %3$s is the error source pointer 35 #: includes/api/class-anka-pay-api.php:215 36 msgid "Error %1$s: %2$s (%3$s)" 37 msgstr "Erreur %1$s: %2$s (%3$s)" 30 "utilisant des cartes de crédit, Mobile Money, Virement bancaire nigérian, et " 31 "PayPal." 38 32 39 33 #: includes/class-anka-commerce-categories.php:305 … … 105 99 "Please set your API token in the settings before creating a payment button." 106 100 msgstr "" 107 "Veuillez entrer votre Token API dans les paramètres avant de créer un "108 " boutonde paiement."101 "Veuillez entrer votre Token API dans les paramètres avant de créer un bouton " 102 "de paiement." 109 103 110 104 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:167 … … 159 153 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:228 160 154 msgid "Select the category that best describes your product or service" 161 msgstr "" 162 "Sélectionnez la catégorie qui décrit le mieux votre produit ou service" 155 msgstr "Sélectionnez la catégorie qui décrit le mieux votre produit ou service" 163 156 164 157 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:230 … … 248 241 249 242 #: includes/webhook/class-anka-pay-webhook-handler.php:143 250 #: includes/woocommerce/class-anka-commerce-woocommerce.php:20 4243 #: includes/woocommerce/class-anka-commerce-woocommerce.php:209 251 244 msgid "Awaiting ANKA Pay payment" 252 245 msgstr "En attente du paiement ANKA Pay" … … 259 252 msgid "ANKA Pay payment failed" 260 253 msgstr "Échec du paiement ANKA Pay" 254 255 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay-blocks-support.php:90 256 #: includes/woocommerce/class-anka-commerce-woocommerce.php:648 257 msgid "ANKA Pay processing fee (4%)" 258 msgstr "Frais de traitement ANKA Pay (4 %)" 261 259 262 260 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:34 … … 273 271 msgstr "" 274 272 "Acceptez les paiements via ANKA Pay sur votre boutique WooCommerce en " 275 "utilisant des cartes de crédit, Mobile Money, Virement bancaire nigérian, "276 " etPayPal."273 "utilisant des cartes de crédit, Mobile Money, Virement bancaire nigérian, et " 274 "PayPal." 277 275 278 276 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:75 … … 299 297 300 298 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:87 299 msgid "Charge Processing Fee To Buyer" 300 msgstr "Facturer les frais de traitement à l’acheteur" 301 302 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:88 303 msgid "" 304 "Add a 4% ANKA Pay processing fee to the buyer total when ANKA Pay is " 305 "selected." 306 msgstr "" 307 "Ajouter des frais de traitement ANKA Pay de 4 % au total payé par " 308 "l’acheteur lorsque ANKA Pay est sélectionné." 309 310 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:93 301 311 msgid "Category Mapping" 302 312 msgstr "Cartographie des catégories" 303 313 304 314 #. translators: %s: Clear cache URL 305 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:9 1315 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:97 306 316 msgid "" 307 317 "<strong>REQUIRED FOR FRAUD MONITORING:</strong> You must map each " … … 320 330 "actualiser les catégories à partir de l'API" 321 331 322 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 36332 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:142 323 333 msgid "WooCommerce Category" 324 334 msgstr "Catégories WooCommerce" 325 335 326 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 39336 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:145 327 337 msgid "ANKA Pay Category" 328 338 msgstr "Catégories ANKA Pay" 329 339 330 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 57340 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:163 331 341 msgid "-- Select ANKA Category --" 332 342 msgstr "-- Sélectionnez la catégorie ANKA --" 333 343 334 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 76344 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:182 335 345 msgid "" 336 346 "No WooCommerce product categories found. Create product categories first." … … 339 349 "catégories de produits." 340 350 341 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:26 2351 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:268 342 352 msgid "Payment error: Unable to create payment link with ANKA Pay." 343 353 msgstr "" … … 345 355 346 356 #. translators: %s: error message 347 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:27 0348 #: includes/woocommerce/class-anka-commerce-woocommerce.php:12 0357 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:276 358 #: includes/woocommerce/class-anka-commerce-woocommerce.php:125 349 359 msgid "ANKA Pay API Error: %s" 350 360 msgstr "Erreur API ANKA Pay : %s" 351 361 352 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:32 0362 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:326 353 363 msgid "Categories cache cleared and refreshed from API!" 354 364 msgstr "Cache des catégories effacé et actualisé à partir de l'API !" 355 365 356 366 #. translators: 1: WooCommerce settings URL 357 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:33 2367 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:338 358 368 msgid "" 359 369 "ANKA Pay is enabled, but the checkout page is not forced to use HTTPS. " … … 365 375 "forçant l’utilisation de SSL sur les pages de paiement dans le %s." 366 376 367 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:33 3368 #: includes/woocommerce/class-anka-commerce-woocommerce.php:26 1377 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:339 378 #: includes/woocommerce/class-anka-commerce-woocommerce.php:266 369 379 msgid "WooCommerce settings" 370 380 msgstr "Réglages WooCommerce" 371 381 372 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 59373 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 77382 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:365 383 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:383 374 384 msgid "ANKA Pay: ACTION REQUIRED" 375 385 msgstr "ANKA Pay : ACTION REQUISE" 376 386 377 387 #. translators: 1: WooCommerce categories URL, 2: ANKA Pay settings URL 378 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 1388 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:367 379 389 msgid "" 380 390 "Payment processing is blocked because no product categories exist. You must " … … 386 396 "dans %2$s afin de respecter les normes de prévention de la fraude." 387 397 388 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 2398 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:368 389 399 msgid "create product categories" 390 400 msgstr "créer des catégories de produits" 391 401 392 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 3393 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:38 1402 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:369 403 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:387 394 404 msgid "ANKA Pay settings" 395 405 msgstr "Réglages ANKA Pay" 396 406 397 407 #. translators: 1: list of unmapped categories, 2: ANKA Pay settings URL 398 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 79408 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:385 399 409 msgid "" 400 410 "Payment processing is blocked for products in these unmapped categories: " … … 407 417 "de la fraude." 408 418 409 #: includes/woocommerce/class-anka-commerce-woocommerce.php: 95419 #: includes/woocommerce/class-anka-commerce-woocommerce.php:100 410 420 msgid "Your cart is empty." 411 421 msgstr "Votre panier est vide." 412 422 413 #: includes/woocommerce/class-anka-commerce-woocommerce.php:10 2423 #: includes/woocommerce/class-anka-commerce-woocommerce.php:107 414 424 msgid "Unable to create order." 415 425 msgstr "Impossible de créer une commande." 416 426 417 #: includes/woocommerce/class-anka-commerce-woocommerce.php:11 4427 #: includes/woocommerce/class-anka-commerce-woocommerce.php:119 418 428 msgid "ANKA Pay payment link creation failed" 419 429 msgstr "Échec de la création du lien de paiement ANKA Pay" 420 430 421 #: includes/woocommerce/class-anka-commerce-woocommerce.php:16 3431 #: includes/woocommerce/class-anka-commerce-woocommerce.php:168 422 432 msgid "Uncategorized" 423 433 msgstr "Sans catégorie" 424 434 425 435 #. translators: %s: product categories 426 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 68436 #: includes/woocommerce/class-anka-commerce-woocommerce.php:173 427 437 msgid "" 428 438 "Payment link creation blocked: No ANKA Pay category mapping configured for " … … 436 446 437 447 #. translators: %s: link to contact 438 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 78448 #: includes/woocommerce/class-anka-commerce-woocommerce.php:183 439 449 msgid "" 440 450 "Unable to process payment: Products in your cart must have categories " … … 444 454 "Impossible de traiter le paiement : les produits dans votre panier doivent " 445 455 "être classés dans des catégories attribuées et mappées par l'administrateur " 446 "du magasin afin de prévenir toute fraude. Veuillez contacter le magasin "447 " pourobtenir de l'aide. %s"448 449 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 79456 "du magasin afin de prévenir toute fraude. Veuillez contacter le magasin pour " 457 "obtenir de l'aide. %s" 458 459 #: includes/woocommerce/class-anka-commerce-woocommerce.php:184 450 460 msgid "Configure now" 451 461 msgstr "Configurer maintenant" 452 462 453 463 #. translators: %s: category value 454 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 89464 #: includes/woocommerce/class-anka-commerce-woocommerce.php:194 455 465 msgid "" 456 466 "Payment link creation blocked: Invalid ANKA Pay category \"%s\". Please " 457 467 "update category mapping in ANKA Pay settings with a valid category." 458 468 msgstr "" 459 "Création du lien de paiement bloquée : catégorie ANKA Pay « %s » non "460 " valide. Veuillez mettre à jour le mappage des catégories dans les"461 " paramètres ANKAPay avec une catégorie valide."462 463 #: includes/woocommerce/class-anka-commerce-woocommerce.php: 196469 "Création du lien de paiement bloquée : catégorie ANKA Pay « %s » non valide. " 470 "Veuillez mettre à jour le mappage des catégories dans les paramètres ANKA " 471 "Pay avec une catégorie valide." 472 473 #: includes/woocommerce/class-anka-commerce-woocommerce.php:201 464 474 msgid "" 465 475 "Invalid product category configuration. Please contact the store " … … 489 499 msgid "Select Payment Button" 490 500 msgstr "Sélectionner un bouton de paiement" 501 502 #~ msgid "Error %1$s: %2$s (%3$s)" 503 #~ msgstr "Erreur %1$s: %2$s (%3$s)" -
anka-commerce/trunk/languages/anka-commerce.pot
r3434624 r3497619 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 1-07T09:24:29+00:00\n"12 "POT-Creation-Date: 2026-04-02T14:03:22+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.10.0\n" … … 23 23 #: anka-commerce.php 24 24 msgid "Accept payments through ANKA Pay using Credit Cards, Mobile Money, Nigerian Bank Transfer, and PayPal on your WooCommerce store or Payment buttons." 25 msgstr ""26 27 #. translators: %1$s is the error status, %2$s is the error detail, %3$s is the error source pointer28 #: includes/api/class-anka-pay-api.php:21529 msgid "Error %1$s: %2$s (%3$s)"30 25 msgstr "" 31 26 … … 228 223 229 224 #: includes/webhook/class-anka-pay-webhook-handler.php:143 230 #: includes/woocommerce/class-anka-commerce-woocommerce.php:20 4225 #: includes/woocommerce/class-anka-commerce-woocommerce.php:209 231 226 msgid "Awaiting ANKA Pay payment" 232 227 msgstr "" … … 238 233 #: includes/webhook/class-anka-pay-webhook-handler.php:153 239 234 msgid "ANKA Pay payment failed" 235 msgstr "" 236 237 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay-blocks-support.php:90 238 #: includes/woocommerce/class-anka-commerce-woocommerce.php:648 239 msgid "ANKA Pay processing fee (4%)" 240 240 msgstr "" 241 241 … … 268 268 269 269 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:87 270 msgid "Charge Processing Fee To Buyer" 271 msgstr "" 272 273 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:88 274 msgid "Add a 4% ANKA Pay processing fee to the buyer total when ANKA Pay is selected." 275 msgstr "" 276 277 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:93 270 278 msgid "Category Mapping" 271 279 msgstr "" 272 280 273 281 #. translators: %s: Clear cache URL 274 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:9 1282 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:97 275 283 msgid "<strong>REQUIRED FOR FRAUD MONITORING:</strong> You must map each WooCommerce product category to a specific ANKA Pay category. Payment link creation will be blocked for products without a valid category mapping. Unmapped categories will cause checkout to fail.<br><br><a href=\"%s\" class=\"button button-secondary\">Clear Categories Cache</a> - Click to refresh categories from API" 276 284 msgstr "" 277 285 278 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 36286 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:142 279 287 msgid "WooCommerce Category" 280 288 msgstr "" 281 289 282 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 39290 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:145 283 291 msgid "ANKA Pay Category" 284 292 msgstr "" 285 293 286 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 57294 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:163 287 295 msgid "-- Select ANKA Category --" 288 296 msgstr "" 289 297 290 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:1 76298 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:182 291 299 msgid "No WooCommerce product categories found. Create product categories first." 292 300 msgstr "" 293 301 294 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:26 2302 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:268 295 303 msgid "Payment error: Unable to create payment link with ANKA Pay." 296 304 msgstr "" 297 305 298 306 #. translators: %s: error message 299 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:27 0300 #: includes/woocommerce/class-anka-commerce-woocommerce.php:12 0307 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:276 308 #: includes/woocommerce/class-anka-commerce-woocommerce.php:125 301 309 msgid "ANKA Pay API Error: %s" 302 310 msgstr "" 303 311 304 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:32 0312 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:326 305 313 msgid "Categories cache cleared and refreshed from API!" 306 314 msgstr "" 307 315 308 316 #. translators: 1: WooCommerce settings URL 309 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:33 2317 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:338 310 318 msgid "ANKA Pay is enabled, but the checkout page is not forced to use HTTPS. Please ensure your checkout page is secure by forcing SSL on the checkout pages in the %s." 311 319 msgstr "" 312 320 313 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:33 3314 #: includes/woocommerce/class-anka-commerce-woocommerce.php:26 1321 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:339 322 #: includes/woocommerce/class-anka-commerce-woocommerce.php:266 315 323 msgid "WooCommerce settings" 316 324 msgstr "" 317 325 318 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 59319 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 77326 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:365 327 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:383 320 328 msgid "ANKA Pay: ACTION REQUIRED" 321 329 msgstr "" 322 330 323 331 #. translators: 1: WooCommerce categories URL, 2: ANKA Pay settings URL 324 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 1332 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:367 325 333 msgid "Payment processing is blocked because no product categories exist. You must %1$s, assign them to your products, and then map them in the %2$s for fraud prevention compliance." 326 334 msgstr "" 327 335 328 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 2336 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:368 329 337 msgid "create product categories" 330 338 msgstr "" 331 339 332 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:36 3333 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:38 1340 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:369 341 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:387 334 342 msgid "ANKA Pay settings" 335 343 msgstr "" 336 344 337 345 #. translators: 1: list of unmapped categories, 2: ANKA Pay settings URL 338 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:3 79346 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:385 339 347 msgid "Payment processing is blocked for products in these unmapped categories: <strong>%1$s</strong>. You must map ALL categories in the %2$s for fraud prevention compliance." 340 348 msgstr "" 341 349 342 #: includes/woocommerce/class-anka-commerce-woocommerce.php: 95350 #: includes/woocommerce/class-anka-commerce-woocommerce.php:100 343 351 msgid "Your cart is empty." 344 352 msgstr "" 345 353 346 #: includes/woocommerce/class-anka-commerce-woocommerce.php:10 2354 #: includes/woocommerce/class-anka-commerce-woocommerce.php:107 347 355 msgid "Unable to create order." 348 356 msgstr "" 349 357 350 #: includes/woocommerce/class-anka-commerce-woocommerce.php:11 4358 #: includes/woocommerce/class-anka-commerce-woocommerce.php:119 351 359 msgid "ANKA Pay payment link creation failed" 352 360 msgstr "" 353 361 354 #: includes/woocommerce/class-anka-commerce-woocommerce.php:16 3362 #: includes/woocommerce/class-anka-commerce-woocommerce.php:168 355 363 msgid "Uncategorized" 356 364 msgstr "" 357 365 358 366 #. translators: %s: product categories 359 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 68367 #: includes/woocommerce/class-anka-commerce-woocommerce.php:173 360 368 msgid "Payment link creation blocked: No ANKA Pay category mapping configured for product categories: %s. This is required for fraud monitoring. Please configure category mapping in ANKA Pay settings." 361 369 msgstr "" 362 370 363 371 #. translators: %s: link to contact 364 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 78372 #: includes/woocommerce/class-anka-commerce-woocommerce.php:183 365 373 msgid "Unable to process payment: Products in your cart must have categories assigned and mapped by the store administrator for fraud prevention. Please contact the store for assistance. %s" 366 374 msgstr "" 367 375 368 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 79376 #: includes/woocommerce/class-anka-commerce-woocommerce.php:184 369 377 msgid "Configure now" 370 378 msgstr "" 371 379 372 380 #. translators: %s: category value 373 #: includes/woocommerce/class-anka-commerce-woocommerce.php:1 89381 #: includes/woocommerce/class-anka-commerce-woocommerce.php:194 374 382 msgid "Payment link creation blocked: Invalid ANKA Pay category \"%s\". Please update category mapping in ANKA Pay settings with a valid category." 375 383 msgstr "" 376 384 377 #: includes/woocommerce/class-anka-commerce-woocommerce.php: 196385 #: includes/woocommerce/class-anka-commerce-woocommerce.php:201 378 386 msgid "Invalid product category configuration. Please contact the store administrator to update category mappings." 379 387 msgstr "" -
anka-commerce/trunk/package-lock.json
r3336161 r3497619 1 1 { 2 2 "name": "anka-commerce", 3 "version": "1. 1.4",3 "version": "1.2.1", 4 4 "lockfileVersion": 3, 5 5 "requires": true, … … 7 7 "": { 8 8 "name": "anka-commerce", 9 "version": "1. 1.4",9 "version": "1.2.1", 10 10 "license": "ISC", 11 11 "devDependencies": { -
anka-commerce/trunk/package.json
r3434624 r3497619 2 2 "name": "anka-commerce", 3 3 "title": "ANKA Commerce", 4 "version": "1.2. 0",4 "version": "1.2.1", 5 5 "license": "ISC", 6 6 "keywords": [], -
anka-commerce/trunk/readme.txt
r3465368 r3497619 6 6 Tested up to: 6.7 7 7 Requires PHP: 7.2 8 Stable tag: 1.2. 08 Stable tag: 1.2.1 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 119 119 120 120 == Changelog == 121 = 1.2.1 = 122 * Added an optional setting to charge buyers a fixed 4% ANKA Pay processing fee 123 * Applied processing fee support for ANKA Pay checkout flow, including direct checkout order creation 124 * Added fee metadata support for WooCommerce Blocks integration 125 * Updated translation catalogs and French locale strings for new processing fee labels 126 121 127 = 1.2.0 = 122 128 * **IMPORTANT**: This update is required for compatibility with the latest ANKA Pay API. Previous versions will stop working when the API is updated. … … 150 156 151 157 == Upgrade Notice == 158 = 1.2.1 = 159 This update introduces optional ANKA Pay processing fee support and translation updates. Please test checkout totals and gateway settings after upgrading. 160 152 161 = 1.2.0 = 153 162 **CRITICAL UPDATE REQUIRED**: You must upgrade to version 1.2.0 before the ANKA Pay API update. Previous versions will stop working after the API deployment. This version adds required category and image URL support for API compatibility.
Note: See TracChangeset
for help on using the changeset viewer.