Plugin Directory

Changeset 3336161


Ignore:
Timestamp:
07/29/2025 05:44:22 PM (8 months ago)
Author:
daviddossou
Message:

Update to version 1.1.4: Simplified WooCommerce error message display

Location:
anka-commerce/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • anka-commerce/trunk/README.md

    r3262160 r3336161  
    77**Tested up to**: 6.7
    88**Requires PHP**: 7.2
    9 **Stable tag**: 1.1.3
     9**Stable tag**: 1.1.4
    1010**License**: GPLv3 or later
    1111**License URI**: [http://www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
     
    127127## Changelog
    128128
     129### 1.1.4
     130
     131- Simplify WooCommerce error management to make the error message better understandable.
     132
    129133### 1.1.3
    130134
     
    153157## Upgrade Notice
    154158
    155 Upgrade to version 1.1.0 to enable Payment Buttons, direct checkout, and enhanced features.
     159Upgrade to version 1.1.4 for simplified error message handling and improved user experience.
  • anka-commerce/trunk/anka-commerce.php

    r3262160 r3336161  
    33    * Plugin Name:       ANKA Commerce
    44    * 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.1.3
     5    * Version:           1.1.4
    66    * Text Domain:       anka-commerce
    77    * Domain Path:       /languages
     
    1616    define( 'ANKA_COMMERCE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    1717    define( 'ANKA_COMMERCE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    18     define( 'ANKA_COMMERCE_VERSION', '1.1.3' );
     18    define( 'ANKA_COMMERCE_VERSION', '1.1.4' );
    1919    define( 'ANKA_COMMERCE_DB_VERSION', '1.1.0' );
    2020
  • anka-commerce/trunk/includes/api/class-anka-pay-api.php

    r3214153 r3336161  
    184184     */
    185185    private function get_error_message( $error ) {
    186       $status = isset( $error->status ) ? $error->status : 'Unknown status';
    187       $pointer = isset( $error->source->pointer ) ? $error->source->pointer : 'Unknown source';
    188186      $detail = isset( $error->detail ) ? $error->detail : 'No detail provided';
    189187
    190       return sprintf(
    191         /* translators: %1$s is the error status, %2$s is the error detail, %3$s is the error source pointer */
    192         __( 'Error %1$s: %2$s (%3$s)', 'anka-commerce' ),
    193         sanitize_text_field( $status ),
    194         sanitize_text_field( $detail ),
    195         sanitize_text_field( $pointer )
    196       );
     188      return sanitize_text_field( $detail );
    197189    }
    198190  }
  • anka-commerce/trunk/includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php

    r3262160 r3336161  
    126126        );
    127127      } else {
    128         wc_add_notice( __( 'Payment error: Unable to create payment link with ANKA Pay.', 'anka-commerce' ), 'error' );
    129 
    130128        $order = wc_get_order( $order_id );
    131129        $order->update_status( 'failed', __( 'Payment error: Unable to create payment link with ANKA Pay.', 'anka-commerce' ) );
  • anka-commerce/trunk/includes/woocommerce/class-anka-commerce-woocommerce.php

    r3262160 r3336161  
    109109                    exit;
    110110                } else {
    111                     wc_add_notice(__('Unable to create payment link with ANKA Pay.', 'anka-commerce'), 'error');
    112 
    113111                    $order = wc_get_order($order_id);
    114112                    $order->update_status('failed', __('ANKA Pay payment link creation failed', 'anka-commerce'));
     
    404402         */
    405403        private static function anka_commerce_woocommerce_is_buyer_info_complete($buyer) {
    406             return $buyer['fullname'] !== '' && $buyer['email'] !== '' && $buyer['phone_number'] !== '' && $buyer['street_line_1'] !== '' && $buyer['city'] !== '' && $buyer['country_id'] !== '';
     404            $required_fields = ['fullname', 'email', 'phone_number', 'street_line_1', 'city', 'country_id'];
     405            foreach ($required_fields as $field) {
     406                if (trim($buyer[$field]) === '') {
     407                    return false;
     408                }
     409            }
     410            return true;
    407411        }
    408412    }
  • anka-commerce/trunk/languages/anka-commerce-fr_FR.po

    r3262160 r3336161  
    1 # Copyright (C) 2024
     1# Copyright (C) 2025
    22# This file is distributed under the GPL-3.0+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: ANKA Commerce 1.1.3\n"
     5"Project-Id-Version: ANKA Commerce 1.1.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/anka-commerce\n"
    7 "POT-Creation-Date: 2024-12-02T07:31:13+00:00\n"
    8 "PO-Revision-Date: 2025-03-26 11:53+0100\n"
     7"POT-Creation-Date: 2025-07-29T17:15:01+00:00\n"
     8"PO-Revision-Date: 2025-07-29 18:21+0100\n"
    99"Last-Translator: \n"
    1010"Language-Team: tech-support@anka.africa\n"
     
    1313"Content-Type: text/plain; charset=UTF-8\n"
    1414"Content-Transfer-Encoding: 8bit\n"
    15 "X-Generator: Poedit 3.5\n"
     15"X-Generator: Poedit 3.6\n"
    1616"X-Domain: anka-commerce\n"
    1717
     
    2727"Bank Transfer, and PayPal on your WooCommerce store or Payment buttons."
    2828msgstr ""
    29 "Acceptez les paiements par ANKA Pay en utilisant des cartes de crédit, "
    30 "Mobile Money, Nigerian Bank Transfer, et PayPal sur votre boutique "
    31 "WooCommerce ou sur les boutons de paiement."
    32 
    33 #: includes/api/class-anka-pay-api.php:191
    34 msgid "Error %1$s: %2$s (%3$s)"
    35 msgstr "Erreur %1$s : %2$s (%3$s)"
    36 
    37 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:33
    38 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:34
    39 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:81
     29"Acceptez les paiements via ANKA Pay sur votre boutique WooCommerce en "
     30"utilisant des cartes de crédit, Mobile Money, Nigerian Bank Transfer, et "
     31"PayPal."
     32
     33#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:39
     34#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:40
     35#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:87
    4036msgid "Payment Buttons"
    4137msgstr "Boutons de Paiement"
    4238
    43 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:44
    44 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:82
     39#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:50
     40#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:88
    4541msgid "Add New Button"
    4642msgstr "Ajouter un nouveau bouton"
    4743
    48 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:45
     44#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:51
    4945msgid "Add New"
    5046msgstr "Ajouter"
    5147
    52 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:53
    53 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:54
    54 #: includes/payment-button/class-anka-commerce-payment-button.php:206
     48#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:59
     49#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:60
     50#: includes/payment-button/class-anka-commerce-payment-button.php:204
    5551msgid "Settings"
    5652msgstr "Réglages"
    5753
    58 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
    59 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:150
     54#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
     55#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:156
    6056msgid "Title"
    6157msgstr "Titre"
    6258
    63 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
    64 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:152
     59#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
     60#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:158
    6561msgid "Amount"
    6662msgstr "Montant"
    6763
    68 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
    69 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:153
     64#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
     65#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:159
    7066msgid "Currency"
    7167msgstr "Devise"
    7268
    73 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
     69#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
    7470msgid "Shortcode"
    7571msgstr "Code court"
    7672
    77 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
     73#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
    7874msgid "Payment link"
    7975msgstr "Lien de paiement"
    8076
    81 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
     77#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
    8278msgid "Actions"
    8379msgstr "Actions"
    8480
    85 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:93
     81#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:99
    8682msgid "View"
    8783msgstr "Voir"
    8884
    89 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:95
     85#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:101
    9086msgid "Edit"
    9187msgstr "Modifier"
    9288
    93 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:96
     89#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:102
    9490msgid "Delete"
    9591msgstr "Supprimer"
    9692
    97 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:118
     93#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:124
    9894msgid ""
    9995"Please set your API token in the settings before creating a payment button."
     
    10298"bouton de paiement."
    10399
    104 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:119
     100#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:125
    105101msgid "Go to Settings"
    106102msgstr "Accéder aux paramètres"
    107103
    108 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:145
     104#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:151
    109105msgid "Edit Payment Button"
    110106msgstr "Modifier le bouton de paiement"
    111107
    112 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:145
     108#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:151
    113109msgid "Add New Payment Button"
    114110msgstr "Ajouter un bouton de paiement"
    115111
    116 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:151
     112#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:157
    117113#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:70
    118114msgid "Description"
    119115msgstr "Description"
    120116
    121 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:154
     117#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:160
    122118msgid "Button Text"
    123119msgstr "Texte du Button"
    124120
    125 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:154
    126 #: includes/payment-button/class-anka-commerce-payment-button.php:81
     121#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:160
     122#: includes/payment-button/class-anka-commerce-payment-button.php:79
    127123msgid "Pay Now"
    128124msgstr "Payer Maintenant"
    129125
    130 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:157
     126#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:163
    131127msgid "Update Button"
    132128msgstr "Modifier le bouton"
    133129
    134 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:157
     130#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:163
    135131msgid "Create Button"
    136132msgstr "Créer le bouton"
    137133
    138 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:176
     134#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:182
    139135msgid "Settings saved."
    140136msgstr "Réglages enregistrés."
    141137
    142 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:185
     138#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:192
    143139msgid "ANKA Payment Button Settings"
    144140msgstr "Réglages du bouton de paiement ANKA"
    145141
    146 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:190
     142#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:197
    147143#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:61
    148144msgid "API Token"
     
    150146
    151147#. translators: %s: URL to ANKA Pay API settings
    152 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:198
     148#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:205
    153149#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:64
    154150msgid ""
     
    159155"target=“_blank”>ici</a>."
    160156
    161 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:213
     157#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:220
    162158msgid "Button Color"
    163159msgstr "Couleur du bouton"
    164160
    165 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:217
     161#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:224
    166162msgid "Success Page"
    167163msgstr "Page de succès"
    168164
    169 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:223
     165#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:230
    170166msgid "Select a page"
    171167msgstr "Sélectionner une page"
    172168
    173 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:230
     169#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:237
    174170msgid "Save Changes"
    175171msgstr "Enregistrer les changements"
    176172
    177 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:272
     173#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:279
    178174msgid "Failed to create payment link."
    179175msgstr "Échec de la création d’un lien de paiement."
    180176
    181 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:329
     177#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:336
    182178msgid "Button not found or could not be deleted."
    183179msgstr "Bouton introuvable ou impossible à supprimer."
    184180
    185 #: includes/payment-button/class-anka-commerce-payment-button.php:124
     181#: includes/payment-button/class-anka-commerce-payment-button.php:122
    186182msgid "Payment Success"
    187183msgstr "Succès de paiement"
    188184
    189 #: includes/payment-button/class-anka-commerce-payment-button.php:125
     185#: includes/payment-button/class-anka-commerce-payment-button.php:123
    190186msgid "Thank you for your payment! Your transaction was successful."
    191187msgstr ""
     
    193189
    194190#: includes/webhook/class-anka-pay-webhook-handler.php:121
    195 #: includes/woocommerce/class-anka-commerce-woocommerce.php:145
     191#: includes/woocommerce/class-anka-commerce-woocommerce.php:146
    196192msgid "Awaiting ANKA Pay payment"
    197193msgstr "En attente du paiement ANKA Pay"
     
    243239"commande d’ANKA Pay."
    244240
    245 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:128
    246 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:131
     241#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:129
    247242msgid "Payment error: Unable to create payment link with ANKA Pay."
    248243msgstr ""
     
    251246#. translators: %s: error message
    252247#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:137
    253 #: includes/woocommerce/class-anka-commerce-woocommerce.php:117
     248#: includes/woocommerce/class-anka-commerce-woocommerce.php:118
    254249msgid "ANKA Pay API Error: %s"
    255250msgstr "Erreur API ANKA Pay : %s"
     
    267262
    268263#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:182
    269 #: includes/woocommerce/class-anka-commerce-woocommerce.php:202
     264#: includes/woocommerce/class-anka-commerce-woocommerce.php:203
    270265msgid "WooCommerce settings"
    271266msgstr "Réglages WooCommerce"
    272267
    273 #: includes/woocommerce/class-anka-commerce-woocommerce.php:90
     268#: includes/woocommerce/class-anka-commerce-woocommerce.php:93
    274269msgid "Your cart is empty."
    275270msgstr "Votre panier est vide."
    276271
    277 #: includes/woocommerce/class-anka-commerce-woocommerce.php:97
     272#: includes/woocommerce/class-anka-commerce-woocommerce.php:100
    278273msgid "Unable to create order."
    279274msgstr "Impossible de créer une commande."
    280275
    281 #: includes/woocommerce/class-anka-commerce-woocommerce.php:108
    282 msgid "Unable to create payment link with ANKA Pay."
    283 msgstr "Impossible de créer un lien de paiement avec ANKA Pay."
    284 
    285 #: includes/woocommerce/class-anka-commerce-woocommerce.php:111
     276#: includes/woocommerce/class-anka-commerce-woocommerce.php:112
    286277msgid "ANKA Pay payment link creation failed"
    287278msgstr "Échec de la création du lien de paiement ANKA Pay"
  • anka-commerce/trunk/languages/anka-commerce.pot

    r3262160 r3336161  
    1 # Copyright (C) 2024
     1# Copyright (C) 2025
    22# This file is distributed under the GPL-3.0+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: ANKA Commerce 1.1.3\n"
     5"Project-Id-Version: ANKA Commerce 1.1.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/anka-commerce\n"
    77"Last-Translator: David Dossou david@anka.africa\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-12-02T07:31:13+00:00\n"
     12"POT-Creation-Date: 2025-07-29T17:15:01+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
     
    2525msgstr ""
    2626
    27 #: includes/api/class-anka-pay-api.php:191
    28 msgid "Error %1$s: %2$s (%3$s)"
    29 msgstr ""
    30 
    31 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:33
    32 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:34
    33 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:81
     27#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:39
     28#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:40
     29#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:87
    3430msgid "Payment Buttons"
    3531msgstr ""
    3632
    37 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:44
    38 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:82
     33#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:50
     34#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:88
    3935msgid "Add New Button"
    4036msgstr ""
    4137
    42 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:45
     38#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:51
    4339msgid "Add New"
    4440msgstr ""
    4541
    46 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:53
    47 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:54
    48 #: includes/payment-button/class-anka-commerce-payment-button.php:206
     42#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:59
     43#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:60
     44#: includes/payment-button/class-anka-commerce-payment-button.php:204
    4945msgid "Settings"
    5046msgstr ""
    5147
    52 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
    53 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:150
     48#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
     49#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:156
    5450msgid "Title"
    5551msgstr ""
    5652
    57 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
    58 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:152
     53#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
     54#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:158
    5955msgid "Amount"
    6056msgstr ""
    6157
    62 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
    63 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:153
     58#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
     59#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:159
    6460msgid "Currency"
    6561msgstr ""
    6662
    67 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
     63#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
    6864msgid "Shortcode"
    6965msgstr ""
    7066
    71 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
     67#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
    7268msgid "Payment link"
    7369msgstr ""
    7470
    75 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:84
     71#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:90
    7672msgid "Actions"
    7773msgstr ""
    7874
    79 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:93
     75#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:99
    8076msgid "View"
    8177msgstr ""
    8278
    83 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:95
     79#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:101
    8480msgid "Edit"
    8581msgstr ""
    8682
    87 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:96
     83#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:102
    8884msgid "Delete"
    8985msgstr ""
    9086
    91 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:118
     87#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:124
    9288msgid "Please set your API token in the settings before creating a payment button."
    9389msgstr ""
    9490
    95 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:119
     91#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:125
    9692msgid "Go to Settings"
    9793msgstr ""
    9894
    99 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:145
     95#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:151
    10096msgid "Edit Payment Button"
    10197msgstr ""
    10298
    103 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:145
     99#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:151
    104100msgid "Add New Payment Button"
    105101msgstr ""
    106102
    107 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:151
     103#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:157
    108104#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:70
    109105msgid "Description"
    110106msgstr ""
    111107
    112 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:154
     108#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:160
    113109msgid "Button Text"
    114110msgstr ""
    115111
    116 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:154
    117 #: includes/payment-button/class-anka-commerce-payment-button.php:81
     112#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:160
     113#: includes/payment-button/class-anka-commerce-payment-button.php:79
    118114msgid "Pay Now"
    119115msgstr ""
    120116
    121 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:157
     117#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:163
    122118msgid "Update Button"
    123119msgstr ""
    124120
    125 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:157
     121#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:163
    126122msgid "Create Button"
    127123msgstr ""
    128124
    129 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:176
     125#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:182
    130126msgid "Settings saved."
    131127msgstr ""
    132128
    133 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:185
     129#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:192
    134130msgid "ANKA Payment Button Settings"
    135131msgstr ""
    136132
    137 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:190
     133#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:197
    138134#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:61
    139135msgid "API Token"
     
    141137
    142138#. translators: %s: URL to ANKA Pay API settings
    143 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:198
     139#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:205
    144140#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:64
    145141msgid "Find your API Token in your API and Webhook Settings <a href=\"%s\" target=\"_blank\">here</a>."
    146142msgstr ""
    147143
    148 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:213
     144#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:220
    149145msgid "Button Color"
    150146msgstr ""
    151147
    152 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:217
     148#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:224
    153149msgid "Success Page"
    154150msgstr ""
    155151
    156 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:223
     152#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:230
    157153msgid "Select a page"
    158154msgstr ""
    159155
    160 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:230
     156#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:237
    161157msgid "Save Changes"
    162158msgstr ""
    163159
    164 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:272
     160#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:279
    165161msgid "Failed to create payment link."
    166162msgstr ""
    167163
    168 #: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:329
     164#: includes/payment-button/class-anka-commerce-payment-button-admin-setting.php:336
    169165msgid "Button not found or could not be deleted."
    170166msgstr ""
    171167
    172 #: includes/payment-button/class-anka-commerce-payment-button.php:124
     168#: includes/payment-button/class-anka-commerce-payment-button.php:122
    173169msgid "Payment Success"
    174170msgstr ""
    175171
    176 #: includes/payment-button/class-anka-commerce-payment-button.php:125
     172#: includes/payment-button/class-anka-commerce-payment-button.php:123
    177173msgid "Thank you for your payment! Your transaction was successful."
    178174msgstr ""
    179175
    180176#: includes/webhook/class-anka-pay-webhook-handler.php:121
    181 #: includes/woocommerce/class-anka-commerce-woocommerce.php:145
     177#: includes/woocommerce/class-anka-commerce-woocommerce.php:146
    182178msgid "Awaiting ANKA Pay payment"
    183179msgstr ""
     
    218214msgstr ""
    219215
    220 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:128
    221 #: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:131
     216#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:129
    222217msgid "Payment error: Unable to create payment link with ANKA Pay."
    223218msgstr ""
     
    225220#. translators: %s: error message
    226221#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:137
    227 #: includes/woocommerce/class-anka-commerce-woocommerce.php:117
     222#: includes/woocommerce/class-anka-commerce-woocommerce.php:118
    228223msgid "ANKA Pay API Error: %s"
    229224msgstr ""
     
    235230
    236231#: includes/woocommerce/class-anka-commerce-woocommerce-gateway-anka-pay.php:182
    237 #: includes/woocommerce/class-anka-commerce-woocommerce.php:202
     232#: includes/woocommerce/class-anka-commerce-woocommerce.php:203
    238233msgid "WooCommerce settings"
    239234msgstr ""
    240235
    241 #: includes/woocommerce/class-anka-commerce-woocommerce.php:90
     236#: includes/woocommerce/class-anka-commerce-woocommerce.php:93
    242237msgid "Your cart is empty."
    243238msgstr ""
    244239
    245 #: includes/woocommerce/class-anka-commerce-woocommerce.php:97
     240#: includes/woocommerce/class-anka-commerce-woocommerce.php:100
    246241msgid "Unable to create order."
    247242msgstr ""
    248243
    249 #: includes/woocommerce/class-anka-commerce-woocommerce.php:108
    250 msgid "Unable to create payment link with ANKA Pay."
    251 msgstr ""
    252 
    253 #: includes/woocommerce/class-anka-commerce-woocommerce.php:111
     244#: includes/woocommerce/class-anka-commerce-woocommerce.php:112
    254245msgid "ANKA Pay payment link creation failed"
    255246msgstr ""
  • anka-commerce/trunk/package-lock.json

    r3142405 r3336161  
    11{
    22  "name": "anka-commerce",
    3   "version": "1.0.0",
     3  "version": "1.1.4",
    44  "lockfileVersion": 3,
    55  "requires": true,
     
    77    "": {
    88      "name": "anka-commerce",
    9       "version": "1.0.0",
     9      "version": "1.1.4",
    1010      "license": "ISC",
    1111      "devDependencies": {
  • anka-commerce/trunk/package.json

    r3142405 r3336161  
    22  "name": "anka-commerce",
    33  "title": "ANKA Commerce",
    4   "version": "1.0.0",
     4  "version": "1.1.4",
    55  "license": "ISC",
    66  "keywords": [],
  • anka-commerce/trunk/readme.txt

    r3262160 r3336161  
    66Tested up to: 6.7
    77Requires PHP: 7.2
    8 Stable tag: 1.1.3
     8Stable tag: 1.1.4
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    119119
    120120== Changelog ==
     121= 1.1.4 =
     122* Simplify WooCommerce error management to make the error message better understandable.
     123
    121124= 1.1.3 =
    122125* Improved WordPress checkout experience by displaying detailed error messages when payment initiation fails. This helps buyers better understand and resolve issues during checkout.
     
    139142
    140143== Upgrade Notice ==
    141 Upgrade to version 1.1.3 for improved error handling during checkout.
     144Upgrade to version 1.1.4 for simplified error message handling and improved user experience.
Note: See TracChangeset for help on using the changeset viewer.