Plugin Directory

Changeset 3174607


Ignore:
Timestamp:
10/23/2024 08:44:59 PM (18 months ago)
Author:
weeconnectpay
Message:

Deploying version 3.11.3 from pipeline

Location:
weeconnectpay
Files:
608 added
13 edited

Legend:

Unmodified
Added
Removed
  • weeconnectpay/trunk/README.txt

    r3133358 r3174607  
    66Author: WeeConnectPay
    77Contributors: weeconnectpay
    8 Stable Tag: 3.11.0
     8Stable Tag: 3.11.3
    99Requires at least: 5.6
    10 Tested Up To: 6.6.1
     10Tested Up To: 6.6.2
    1111Requires PHP: 7.2
    1212Text Domain: weeconnectpay
     
    1616Requires Plugins: woocommerce
    1717WC requires at least: 3.0.4
    18 WC tested up to: 9.1.4
     18WC tested up to: 9.3.3
    1919
    2020Accept payments easily and quickly with the Clover online Payment gateway by WeeConnectPay.
     
    5353WP Memory limit of 64 MB or greater (128 MB or higher is preferred)
    5454
     55<strong>Additional Plugin Requirements</strong>
     56WordPress database table prefix must be properly set and not left empty
     57
    5558In addition, you need an approved business account with Clover.
    5659You can submit a request through WeeConnectPay.
     
    125128
    126129== Changelog ==
     130= 3.11.3 =
     131* Updated Clover SDK initialisation for WooCommerce Blocks - This should fix iframe placeholder translation issues
     132
     133= 3.11.1 =
     134* Added the following requirements: WordPress database must be properly set and not empty
     135
    127136= 3.11.0 =
    128137* Updated plugin to log the merchant out if the WeeConnectPay API key is invalidated or expired -- We now email your Clover Employee (Also to the Clover Merchant Owner If they are not the same) to notify you and give you a link to reconnect
  • weeconnectpay/trunk/includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php

    r3133358 r3174607  
    197197        add_action( 'woocommerce_checkout_process', array( $this, 'maybe_add_wc_notice' ), 10, 2 );
    198198
     199        // Runs when trying to login with Clover.
     200        add_action( 'woocommerce_sections_checkout',  array( $this, 'display_clover_login_notice' ) );
    199201    }
    200202
     
    386388    }
    387389
     390    /**
     391     * Displays a confirmation or error message while trying to connect to the Clover API.
     392     *
     393     * @since 3.11.1
     394     * @access public
     395     *
     396     * @return void
     397     */
     398    public function display_clover_login_notice() {
     399        // Bails out if it's not the right context.
     400        if ( ! isset( $_GET['section'], $_GET['weeconnectpay_status'] ) || 'weeconnectpay' !== $_GET['section'] ) {
     401            return;
     402        }
     403
     404        // Defines specific status messages based on the value returned by the 'weeconnectpay_status' parameter.
     405        $status_messages = array(
     406            'connected' => __( 'The connection with Clover has been successfully established!', 'weeconnectpay' ),
     407            'error'     => __( 'An error occurred while trying to establish a connection with Clover, please try again in a few minutes.', 'weeconnectpay' ),
     408        );
     409
     410        $notice_class   = in_array( $_GET['weeconnectpay_status'], array( 'connected' ) ) ? 'notice-success' : 'notice-error';
     411        $notice_message = $status_messages[ $_GET['weeconnectpay_status'] ] ?? $status_messages['error']; // Defaults to 'error' if the status message can't be found.
     412        echo '<div class="notice is-dismissible ' . sanitize_html_class( $notice_class ) . '"><p>' . esc_html( $notice_message ) . '</p></div>';
     413    }
    388414
    389415    /**
  • weeconnectpay/trunk/includes/integrations/woocommerce/WeeConnectPayMethod.php

    r3090415 r3174607  
    7575                    'clover'          => [
    7676                        'pakms'         => $integrationSettings->getPublicAccessKey(),
    77                         'websiteLocale' => WeeConnectPayUtilities::getLocale()
     77                        'locale' => WeeConnectPayUtilities::getLocale(),
     78                        'merchantId' => $integrationSettings->getCloverMerchant()->getUuid()
    7879                    ],
    7980                    'woocommerce'     => [
  • weeconnectpay/trunk/includes/modules/WeeConnectPay/Dependency.php

    r2935265 r3174607  
    1515    public const PERMALINK = 'Permalink URL structure';
    1616    public const PHP_INTL = 'PHP INTL Extension';
     17    public const WPDB_PREFIX = 'WordPress database prefix';
    1718
    1819    /**
     
    121122                    return [];
    122123                }
     124            case self::WPDB_PREFIX:
     125                try {
     126                    global $wpdb;
     127                    if ( !empty($wpdb->prefix) ) {
     128                        return [0,0,0];
     129                    } else {
     130                        return [];
     131                    }
     132                } catch ( \Throwable $e ) {
     133                    return [];
     134                }
    123135            default:
    124136                return [];
  • weeconnectpay/trunk/includes/modules/WeeConnectPay/Integration/DependencyChecker.php

    r3117258 r3174607  
    2727        Dependency::PERMALINK   => [ 0, 0, 0 ], // Quick fix for dependencies without a version to respect type safety
    2828        Dependency::PHP_INTL    => [ 0, 0, 0 ], // Quick fix for dependencies without a version to respect type safety
     29        Dependency::WPDB_PREFIX => [ 0, 0, 0 ], // Quick fix for dependencies without a version to respect type safety
    2930    ];
    3031
     
    5859            ),
    5960            'br' => array(),
     61            'code' => array(),
     62            'strong' => array(),
     63            'p' => array()
    6064        );
    6165
  • weeconnectpay/trunk/includes/modules/WeeConnectPay/Validators/DependencyValidator.php

    r3133358 r3174607  
    2929
    3030    /**
     31     * @updated 3.11.1
    3132     * @param array $versionToValidate
    3233     *
     
    6667            }
    6768
     69            if ($this->dependency->name === Dependency::WPDB_PREFIX) {
     70                $dependencyMissingErrorMessage = __('It appears that your WordPress database prefix is either not set or is set to an empty string. This is against WordPress security standards, and as a result, WeeConnectPay has been disabled.', 'weeconnectpay');
     71                $extraInstructions .= __('To resolve this issue, please set a valid prefix in your WordPress database configuration. In a standard WordPress installation, this is done by defining the <code>$table_prefix</code> variable in the <code>wp-config.php</code> file. Having an empty or missing prefix can lead to security vulnerabilities, so it’s crucial to ensure this is configured correctly. <p><strong>Warning:</strong> Changing the <code>$table_prefix</code> value may trigger the WordPress installation wizard. This can give the appearance that your site’s data is missing, but your content is still safe in the database tables without the prefix. We strongly recommend consulting with your web developer before making this change to avoid any confusion or potential issues.</p>', 'weeconnectpay');
     72
     73                throw new MissingDependencyException(
     74                    sprintf(
     75                        $dependencyMissingErrorMessage,
     76                        $extraInstructions
     77                    ),
     78                    ExceptionCode::MISSING_DEPENDENCY,
     79                    null,
     80                    $extraInstructions
     81                );
     82            }
     83
     84
    6885            throw new MissingDependencyException(
    6986                sprintf(
    70                     __( '%1$s does not seem to be active, which is required for this integration to work properly. Integration disabled.', 'weeconnectpay' ),
     87                    __( '%1$s does not seem to be active, which is required for this integration to work properly. Integration disabled.', 'weeconnectpay' ),
    7188                    $this->dependency->name,
    7289                    $extraInstructions
  • weeconnectpay/trunk/languages/weeconnectpay-fr_CA.po

    r3117258 r3174607  
    22msgstr ""
    33"Project-Id-Version: WeeConnectPay\n"
    4 "POT-Creation-Date: 2024-07-12 14:48-0400\n"
    5 "PO-Revision-Date: 2024-07-12 14:49-0400\n"
     4"POT-Creation-Date: 2024-08-15 16:53-0400\n"
     5"PO-Revision-Date: 2024-08-15 16:57-0400\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    3434
    3535#: admin/WeeConnectPayAdmin.php:251
    36 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:854
    37 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:907
     36#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:874
     37#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:927
    3838msgid "Card Brand"
    3939msgstr "Marque de la Carte"
     
    108108"applications Clover pour résoudre ce problème."
    109109
    110 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:129
     110#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:130
    111111msgid "Clover Integration"
    112112msgstr "Intégration de Clover"
    113113
    114 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:131
     114#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:132
    115115msgid ""
    116116"Simplify online payments by adding the Clover payment option to your shopping "
     
    121121"portail Web Clover."
    122122
    123 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:337
     123#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:343
    124124msgid "Please enter your payment information."
    125125msgstr "Veuillez saisir vos informations de paiement."
    126126
    127 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:343
    128 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:347
     127#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:349
     128#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:353
    129129msgid "Please enter a valid credit card number."
    130130msgstr "Veuillez saisir un numéro de carte de crédit valide."
    131131
    132 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:353
    133 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:357
     132#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:359
     133#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:363
    134134msgid "Please enter a valid credit card expiry date."
    135135msgstr "Veuillez saisir une date d’expiration de carte de crédit valide."
    136136
    137 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:363
    138 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:367
     137#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:369
     138#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:373
    139139msgid "Please enter a valid credit card CVV number."
    140140msgstr "Veuillez saisir un numéro CVV de carte de crédit valide."
    141141
    142 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:373
    143 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:377
     142#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:379
     143#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:383
    144144msgid "Please enter a valid credit card postal code."
    145145msgstr "Veuillez saisir un code postal de carte de crédit valide."
    146146
    147 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:400
     147#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:406
    148148msgid "Enable"
    149149msgstr "Activer"
    150150
    151 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:401
     151#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:407
    152152msgid "Enable payment gateway"
    153153msgstr "Activer la passerelle de paiement"
    154154
    155 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:407
     155#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:413
    156156msgid "Authorize Plugin"
    157157msgstr "Autoriser plugin"
    158158
    159 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:411
     159#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:417
    160160msgid "Title"
    161161msgstr "Titre"
    162162
    163 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:413
     163#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:419
    164164msgid "This controls the title which the user sees during checkout."
    165165msgstr "Détermine le titre que les utilisateurs verront durant la commande."
    166166
    167 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:415
     167#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:421
    168168msgid "Payment by Credit Card"
    169169msgstr "Paiement par carte de crédit"
    170170
    171 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:418
     171#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:424
    172172msgid "Fraud Analysis"
    173173msgstr "Analyse de la fraude"
    174174
    175 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:420
     175#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:426
    176176msgid "Post Tokenization Verification"
    177177msgstr "Vérification post-tokenisation"
    178178
    179 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:421
     179#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:427
    180180msgid "Enable post-tokenization verification"
    181181msgstr "Activer la vérification post-tokenisation"
    182182
    183 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:426
     183#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:432
    184184msgid "Google reCAPTCHA"
    185185msgstr "Google reCAPTCHA"
    186186
    187 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:428
     187#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:434
    188188msgid "Enable Google reCAPTCHA"
    189189msgstr "Activer Google reCAPTCHA"
    190190
    191 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:429
     191#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:435
    192192msgid ""
    193193"Enable Google reCAPTCHA v3 for extra security. This new reCAPTCHA is "
     
    200200"chaque tentative de paiement."
    201201
    202 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:435
     202#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:441
    203203msgid "Google reCAPTCHA Site Key"
    204204msgstr "Clé du site Google reCAPTCHA"
    205205
    206 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:436
     206#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:442
    207207msgid ""
    208208"Don't have a site key and private key for this domain? <a href=\"https://www."
     
    214214"\">Cliquez ici</a> pour le configurer."
    215215
    216 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:441
     216#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:447
    217217msgid "Google reCAPTCHA Secret Key"
    218218msgstr "Clé secrète Google reCAPTCHA"
    219219
    220 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:445
     220#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:451
    221221msgid "Google reCAPTCHA Minimum Human Score Threshold"
    222222msgstr "Seuil minimum de score humain de Google reCAPTCHA"
    223223
    224 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:447
     224#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:453
    225225msgid ""
    226226"Enhance order security: Set a reCAPTCHA score threshold. The recommended "
     
    235235"commande ne sera créée dans votre compte Clover."
    236236
    237 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:457
     237#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:463
    238238msgid "Honeypot Fields"
    239239msgstr "Champs Honeypot"
    240240
    241 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:459
     241#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:465
    242242msgid "Enable Honeypot Fields"
    243243msgstr "Activer les champs Honeypot"
    244244
    245 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:460
     245#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:466
    246246msgid ""
    247247"As an additional bot detection step, hidden fields that are sometimes filled "
     
    254254# Merchant ID:
    255255# Sont ce qu'on voit dans le haut des settings WooCommerce, les 2 sont 1 a coter de l'autre et devrais avoir la meme terminologie pour "Merchant".
    256 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:488
     256#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:494
    257257msgid "Merchant Name: "
    258258msgstr "Nom du commerçant : "
     
    261261# Merchant ID:
    262262# Sont ce qu'on voit dans le haut des settings WooCommerce, les 2 sont 1 a coter de l'autre et devrais avoir la meme terminologie pour "Merchant".
    263 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:493
     263#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:499
    264264msgid "Merchant ID: "
    265265msgstr "Identifiant du commerçant : "
    266266
    267 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:507
     267#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:513
    268268msgid "Log in as another Clover merchant or employee"
    269269msgstr "Connectez-vous en tant qu’un autre commerçant ou employé de Clover"
    270270
    271 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:580
     271#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:586
    272272msgid ""
    273273"The hidden honeypot field was filled out. This field is hidden an can only be "
     
    280280"champ : "
    281281
    282 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:611
     282#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:617
    283283msgid ""
    284284"<b>Google reCAPTCHA API.js (front-end/customer-facing) has encountered an "
     
    290290"Voici le message d’erreur: "
    291291
    292 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:626
     292#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:632
    293293msgid "Google reCAPTCHA: "
    294294msgstr "Google reCAPTCHA: "
    295295
    296 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:627
     296#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:633
    297297msgid "Google reCAPTCHA score: "
    298298msgstr "Score Google reCAPTCHA : "
    299299
    300 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:628
     300#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:634
    301301msgid "Minimum human score setting: "
    302302msgstr "Paramètre de score humain minimum : "
    303303
    304 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:631
     304#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:637
    305305msgid ""
    306306"According to your plugin settings for Google reCAPTCHA, the customer who paid "
     
    310310"payé la commande est probablement un être humain."
    311311
    312 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:633
     312#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:639
    313313msgid ""
    314314"According to your plugin settings for Google reCAPTCHA, the customer who paid "
     
    323323"passerelle."
    324324
    325 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:653
     325#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:659
    326326msgid ""
    327327"The request to Google contains was successful but is missing the score "
     
    333333"réponse complète : "
    334334
    335 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:660
     335#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:666
    336336msgid ""
    337337"The request to Google reCAPTCHA triggered an exception. See exception "
     
    341341"message d’exception : "
    342342
    343 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:663
     343#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:669
    344344msgid "The response from Google reCAPTCHA contains errors. See error codes: "
    345345msgstr ""
     
    347347"d’erreur : "
    348348
    349 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:666
     349#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:672
    350350msgid ""
    351351"The response from Google reCAPTCHA contains unexpected errors. See the full "
     
    355355"réponse complète : "
    356356
    357 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:749
     357#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:755
    358358msgid ""
    359359"ERROR: The merchant's Clover API key needs to be refreshed by the merchant to "
     
    366366"pour réactiver la passerelle de paiement."
    367367
    368 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:808
     368#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:766
     369msgid ""
     370"ERROR: The merchant's WeeConnectPay API key needs to be refreshed by the "
     371"merchant to keep taking payments with this gateway. Please advise the "
     372"merchant to re-authenticate in the integration to re-enable the payment "
     373"gateway."
     374msgstr ""
     375"ERREUR: La clé API WeeConnectPay du commerçant doit être actualisée par le "
     376"commerçant pour continuer à prendre des paiements avec cette passerelle. "
     377"Veuillez conseiller au commerçant de se ré-authentifier dans l’intégration "
     378"pour réactiver la passerelle de paiement."
     379
     380#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:826
    369381msgid "Clover order created."
    370382msgstr "La commande Clover a été créé."
     
    375387# Used in the order notes in bold before a 13 character alphanumerical ID from Clover.
    376388# All the order notes that contain "ID" should be described the same way across the different "ID" notes in every language.
    377 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:809
     389#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:827
    378390msgid "Order ID: "
    379391msgstr "ID de commande : "
    380392
    381 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:827
     393#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:845
    382394msgid "No payment required: Order total is 0 or under."
    383395msgstr "Aucun paiement requis: Le total de la commande est de 0 ou moins."
    384396
    385 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:851
     397#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:871
    386398msgid "Clover payment successful!"
    387399msgstr "Paiement Clover réussi!"
     
    392404# Used in the order notes in bold before a 13 character alphanumerical ID from Clover.
    393405# All the order notes that contain "ID" should be described the same way across the different "ID" notes in every language.
    394 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:852
    395 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:905
     406#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:872
     407#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:925
    396408msgid "Payment ID: "
    397409msgstr "ID du paiement : "
    398410
    399 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:866
     411#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:886
    400412#, php-format
    401413msgid ""
     
    406418"postal de facturation « %s » sont différents."
    407419
    408 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:871
     420#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:891
    409421#, php-format
    410422msgid ""
     
    416428"devraient être les mêmes."
    417429
    418 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:887
    419 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:910
    420 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:924
     430#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:907
     431#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:930
     432#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:944
    421433msgid "Clover error message: "
    422434msgstr "Message d’erreur Clover : "
    423435
    424 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:889
     436#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:909
    425437msgid ""
    426438"Please check the order in the Clover dashboard for the full payment "
     
    430442"informations de paiement complètes."
    431443
    432 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:904
    433 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:915
     444#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:924
     445#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:935
    434446msgid "Payment failed."
    435447msgstr "Échec de paiement."
    436448
    437 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:918
     449#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:938
    438450msgid "Clover response message: "
    439451msgstr "Réponse de Clover : "
    440452
    441 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:921
     453#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:941
    442454msgid "Clover error code: "
    443455msgstr "Code d’erreur Clover : "
    444456
    445 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:929
     457#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:949
    446458msgid "Payment failed - Unhandled context, see response payload: "
    447459msgstr "Échec du paiement - Contexte non géré, voir la réponse Clover : "
    448460
    449 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:996
     461#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1016
    450462msgid "Provided ID is not a WC Order"
    451463msgstr "L’ID fourni n’est pas une commande de WC"
    452464
    453 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1004
     465#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1024
    454466msgid "No WC Order Refund found"
    455467msgstr "Aucun remboursement de commande WC trouvé"
    456468
    457 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1010
     469#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1030
    458470msgid "Refund amount must be higher than 0."
    459471msgstr "Le montant du remboursement doit être supérieur à 0."
    460472
    461 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1015
     473#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1035
    462474msgid "Last created refund is not a WC Order Refund"
    463475msgstr "Le dernier remboursement créé n’est pas un remboursement de commande WC"
    464476
    465 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1020
    466 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1375
     477#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1040
     478#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1395
    467479msgid "Order has been already refunded"
    468480msgstr "La commande a déjà été remboursée"
    469481
    470 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1028
     482#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1048
    471483msgid ""
    472484"Due to an undocumented breaking change in the Clover API, we have temporarily "
     
    476488"temporairement désactivé les remboursements partiels.\n"
    477489
    478 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1029
     490#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1049
    479491msgid ""
    480492"This request to refund will not be processed. Should you want to do a partial "
     
    485497"bord Web Clover."
    486498
    487 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1047
     499#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1067
    488500#, php-format
    489501msgid ""
     
    494506"doit être la quantité totale de l'item (%s)"
    495507
    496 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1059
     508#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1079
    497509#, php-format
    498510msgid ""
     
    503515"(actuellement %s $) doit être le montant total avant taxes de l'item (%s $)"
    504516
    505 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1071
     517#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1091
    506518#, php-format
    507519msgid ""
     
    512524"être la taxe totale de l'item (%s $)"
    513525
    514 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1132
     526#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1152
    515527#, php-format
    516528msgid ""
     
    521533"Veuillez contacter support@weeconnectpay.com si vous voyez ce message."
    522534
    523 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1147
     535#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1167
    524536#, php-format
    525537msgid ""
     
    530542"doit être la quantité totale du frais (%s)"
    531543
    532 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1160
     544#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1180
    533545#, php-format
    534546msgid ""
     
    539551"(actuellement %s $) doit être le montant total avant taxes du frais (%s $)"
    540552
    541 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1172
     553#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1192
    542554#, php-format
    543555msgid ""
     
    548560"être la taxe totale du frais (%s $)"
    549561
    550 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1233
     562#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1253
    551563#, php-format
    552564msgid ""
     
    558570"livraison avant taxes (%s $)"
    559571
    560 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1245
     572#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1265
    561573#, php-format
    562574msgid ""
     
    568580"(%s $)"
    569581
    570 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1310
    571 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1337
     582#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1330
     583#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1357
    572584msgid "Refunded: "
    573585msgstr "Remboursé : "
    574586
    575 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1312
    576 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1339
     587#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1332
     588#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1359
    577589#, php-format
    578590msgid "%1$s %2$s"
     
    584596# Used in the order notes in bold before a 13 character alphanumerical ID from Clover.
    585597# All the order notes that contain "ID" should be described the same way across the different "ID" notes in every language.
    586 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1316
    587 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1343
     598#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1336
     599#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1363
    588600msgid "Refund ID: "
    589601msgstr "ID du remboursement : "
    590602
    591 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1317
     603#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1337
    592604msgid "Charge refunded: "
    593605msgstr "Frais remboursés : "
    594606
    595 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1320
    596 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1346
     607#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1340
     608#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1366
    597609msgid "Reason: "
    598610msgstr "Raison: "
     
    603615# Used in the order notes in bold before a 13 character alphanumerical ID from Clover.
    604616# All the order notes that contain "ID" should be described the same way across the different "ID" notes in every language.
    605 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1359
     617#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1379
    606618msgid "Returned clover item ID: "
    607619msgstr "ID d’article Clover retourné : "
    608620
    609 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1361
     621#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1381
    610622#, php-format
    611623msgid "%1$s(%2$s %3$s) - %4$s"
    612624msgstr "%1$s (%2$s %3$s) - %4$s"
    613625
    614 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:211
     626#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:212
    615627msgid ""
    616628"Failed to update the WooCommerce WeeConnectPay gateway enabled status in the "
     
    621633"être trouvées."
    622634
    623 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:224
     635#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:225
    624636msgid "Failed to update the WooCommerce integration status in the database."
    625637msgstr ""
     
    627639"base de données."
    628640
    629 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:258
     641#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:259
    630642msgid ""
    631643"Failed to update the WooCommerce integration title in the database. The "
     
    635647"de données. Les options de passerelle n’ont pas pu être trouvées."
    636648
    637 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:271
     649#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:272
    638650msgid "Failed to update the WooCommerce integration title in the database."
    639651msgstr ""
     
    641653"de données."
    642654
    643 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:644
     655#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:645
    644656#, php-format
    645657msgid ""
     
    651663"correctement. Intégration désactivée. "
    652664
    653 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:652
     665#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:653
    654666msgid "Dependencies are ok!"
    655667msgstr "Les dépendances sont acceptables!"
    656668
    657 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:659
     669#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:660
    658670msgid ""
    659671"Something went wrong while validating one of the requirements for this "
     
    671683"désolés pour le désagrément."
    672684
     685#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:44
     686#, php-format
     687msgid ""
     688"%1$s constant does not seem to be set, which is required for this integration "
     689"to work properly when using GitPod. Integration disabled."
     690msgstr ""
     691"La constante %1$s ne semble pas être définie, ce qui est nécessaire pour que "
     692"cette intégration fonctionne correctement dans un environnement GitPod. "
     693"Intégration désactivée."
     694
    673695# Ce string est pour la valeur du setting permalien a eviter, et utilise un terme specifique;  voir le premier choix dans /wp-admin/options-permalink.php
    674 #: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:43
     696#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:58
    675697msgid "Plain"
    676698msgstr "Simple"
    677699
    678 #: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:44
     700#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:59
    679701msgid "the permalinks page"
    680702msgstr "la page des permaliens"
    681703
    682 #: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:47
     704#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:62
    683705#, php-format
    684706msgid ""
     
    689711"WordPress à quelque chose d’autre que « %1$s » sur %2$s."
    690712
    691 #: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:54
     713#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:69
     714msgid ""
     715"It appears that your WordPress database prefix is either not set or is set to "
     716"an empty string. This is against WordPress security standards, and as a "
     717"result, WeeConnectPay has been disabled."
     718msgstr ""
     719"Il semble que le préfixe de votre base de données WordPress ne soit pas "
     720"défini ou soit vide. Cela va à l'encontre des normes de sécurité de WordPress "
     721"et, par conséquent, WeeConnectPay a été désactivé."
     722
     723#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:70
     724msgid ""
     725"To resolve this issue, please set a valid prefix in your WordPress database "
     726"configuration. In a standard WordPress installation, this is done by defining "
     727"the <code>$table_prefix</code> variable in the <code>wp-config.php</code> "
     728"file. Having an empty or missing prefix can lead to security vulnerabilities, "
     729"so it’s crucial to ensure this is configured correctly. <p><strong>Warning:</"
     730"strong> Changing the <code>$table_prefix</code> value may trigger the "
     731"WordPress installation wizard. This can give the appearance that your site’s "
     732"data is missing, but your content is still safe in the database tables "
     733"without the prefix. We strongly recommend consulting with your web developer "
     734"before making this change to avoid any confusion or potential issues.</p>"
     735msgstr ""
     736"Pour résoudre ce problème, veuillez définir un préfixe valide dans la "
     737"configuration de la base de données WordPress. Dans une installation standard "
     738"de WordPress, cela se fait en définissant la variable <code>$table_prefix</"
     739"code> dans le fichier <code>wp-config.php</code>. Un préfixe vide ou manquant "
     740"peut entraîner des vulnérabilités de sécurité, il est donc essentiel de le "
     741"configurer correctement. <p><strong>Attention :</strong> Modifier la valeur "
     742"de <code>$table_prefix</code> peut déclencher l'assistant d'installation de "
     743"WordPress. Cela peut donner l'impression que les données de votre site ont "
     744"disparu, mais elles sont toujours présentes dans les tables de la base de "
     745"données sans le préfixe. Nous vous recommandons vivement de consulter votre "
     746"développeur web avant d’effectuer ce changement afin d’éviter toute confusion "
     747"ou tout problème potentiel.</p>"
     748
     749#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:86
    692750#, php-format
    693751msgid ""
     
    698756"intégration fonctionne correctement. Intégration désactivée."
    699757
    700 #: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:70
     758#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:102
    701759#, php-format
    702760msgid ""
  • weeconnectpay/trunk/languages/weeconnectpay.pot

    r3088710 r3174607  
    33msgstr ""
    44"Project-Id-Version: WeeConnectPay\n"
    5 "POT-Creation-Date: 2024-05-16 19:35-0400\n"
     5"POT-Creation-Date: 2024-08-15 16:58-0400\n"
    66"PO-Revision-Date: 2023-09-20 11:23-0400\n"
    77"Last-Translator: \n"
     
    2626"X-Poedit-SearchPathExcluded-4: payment-fields-blocks/node_modules\n"
    2727
    28 #: admin/WeeConnectPayAdmin.php:176
     28#: admin/WeeConnectPayAdmin.php:177
    2929msgid "WooCommerce Settings"
     30msgstr ""
     31
     32#: admin/WeeConnectPayAdmin.php:251
     33#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:874
     34#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:927
     35msgid "Card Brand"
    3036msgstr ""
    3137
     
    7076msgstr ""
    7177
    72 #: includes/WeeConnectPayAPI.php:385
     78#: includes/WeeConnectPayAPI.php:391
    7379msgid ""
    7480"A shipping address state, county or province is required for this gateway."
     
    9298msgstr ""
    9399
    94 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:129
     100#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:130
    95101msgid "Clover Integration"
    96102msgstr ""
    97103
    98 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:131
     104#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:132
    99105msgid ""
    100106"Simplify online payments by adding the Clover payment option to your shopping "
     
    102108msgstr ""
    103109
    104 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:337
     110#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:343
    105111msgid "Please enter your payment information."
    106112msgstr ""
    107113
    108 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:343
    109 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:347
     114#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:349
     115#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:353
    110116msgid "Please enter a valid credit card number."
    111117msgstr ""
    112118
    113 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:353
    114 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:357
     119#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:359
     120#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:363
    115121msgid "Please enter a valid credit card expiry date."
    116122msgstr ""
    117123
    118 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:363
    119 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:367
     124#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:369
     125#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:373
    120126msgid "Please enter a valid credit card CVV number."
    121127msgstr ""
    122128
    123 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:373
    124 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:377
     129#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:379
     130#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:383
    125131msgid "Please enter a valid credit card postal code."
    126132msgstr ""
    127133
    128 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:400
     134#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:406
    129135msgid "Enable"
    130136msgstr ""
    131137
    132 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:401
     138#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:407
    133139msgid "Enable payment gateway"
    134140msgstr ""
    135141
    136 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:407
     142#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:413
    137143msgid "Authorize Plugin"
    138144msgstr ""
    139145
    140 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:411
     146#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:417
    141147msgid "Title"
    142148msgstr ""
    143149
    144 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:413
     150#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:419
    145151msgid "This controls the title which the user sees during checkout."
    146152msgstr ""
    147153
    148 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:415
     154#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:421
    149155msgid "Payment by Credit Card"
    150156msgstr ""
    151157
    152 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:418
     158#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:424
    153159msgid "Fraud Analysis"
    154160msgstr ""
    155161
    156 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:420
     162#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:426
    157163msgid "Post Tokenization Verification"
    158164msgstr ""
    159165
    160 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:421
     166#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:427
    161167msgid "Enable post-tokenization verification"
    162168msgstr ""
    163169
    164 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:426
     170#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:432
    165171msgid "Google reCAPTCHA"
    166172msgstr ""
    167173
    168 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:428
     174#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:434
    169175msgid "Enable Google reCAPTCHA"
    170176msgstr ""
    171177
    172 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:429
     178#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:435
    173179msgid ""
    174180"Enable Google reCAPTCHA v3 for extra security. This new reCAPTCHA is "
     
    177183msgstr ""
    178184
    179 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:435
     185#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:441
    180186msgid "Google reCAPTCHA Site Key"
    181187msgstr ""
    182188
    183 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:436
     189#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:442
    184190msgid ""
    185191"Don't have a site key and private key for this domain? <a href=\"https://www."
     
    188194msgstr ""
    189195
    190 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:441
     196#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:447
    191197msgid "Google reCAPTCHA Secret Key"
    192198msgstr ""
    193199
    194 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:445
     200#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:451
    195201msgid "Google reCAPTCHA Minimum Human Score Threshold"
    196202msgstr ""
    197203
    198 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:447
     204#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:453
    199205msgid ""
    200206"Enhance order security: Set a reCAPTCHA score threshold. The recommended "
     
    204210msgstr ""
    205211
    206 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:457
     212#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:463
    207213msgid "Honeypot Fields"
    208214msgstr ""
    209215
    210 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:459
     216#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:465
    211217msgid "Enable Honeypot Fields"
    212218msgstr ""
    213219
    214 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:460
     220#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:466
    215221msgid ""
    216222"As an additional bot detection step, hidden fields that are sometimes filled "
     
    218224msgstr ""
    219225
    220 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:488
     226#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:494
    221227msgid "Merchant Name: "
    222228msgstr ""
    223229
    224 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:493
     230#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:499
    225231msgid "Merchant ID: "
    226232msgstr ""
    227233
    228 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:507
     234#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:513
    229235msgid "Log in as another Clover merchant or employee"
    230236msgstr ""
    231237
    232 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:581
     238#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:586
    233239msgid ""
    234240"The hidden honeypot field was filled out. This field is hidden an can only be "
     
    237243msgstr ""
    238244
    239 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:612
     245#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:617
    240246msgid ""
    241247"<b>Google reCAPTCHA API.js (front-end/customer-facing) has encountered an "
     
    244250msgstr ""
    245251
    246 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:627
     252#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:632
    247253msgid "Google reCAPTCHA: "
    248254msgstr ""
    249255
    250 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:628
     256#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:633
    251257msgid "Google reCAPTCHA score: "
    252258msgstr ""
    253259
    254 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:629
     260#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:634
    255261msgid "Minimum human score setting: "
    256262msgstr ""
    257263
    258 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:632
     264#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:637
    259265msgid ""
    260266"According to your plugin settings for Google reCAPTCHA, the customer who paid "
     
    262268msgstr ""
    263269
    264 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:634
     270#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:639
    265271msgid ""
    266272"According to your plugin settings for Google reCAPTCHA, the customer who paid "
     
    270276msgstr ""
    271277
    272 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:654
     278#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:659
    273279msgid ""
    274280"The request to Google contains was successful but is missing the score "
     
    277283msgstr ""
    278284
    279 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:661
     285#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:666
    280286msgid ""
    281287"The request to Google reCAPTCHA triggered an exception. See exception "
     
    283289msgstr ""
    284290
    285 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:664
     291#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:669
    286292msgid "The response from Google reCAPTCHA contains errors. See error codes: "
    287293msgstr ""
    288294
    289 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:667
     295#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:672
    290296msgid ""
    291297"The response from Google reCAPTCHA contains unexpected errors. See the full "
     
    293299msgstr ""
    294300
    295 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:743
     301#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:755
    296302msgid ""
    297303"ERROR: The merchant's Clover API key needs to be refreshed by the merchant to "
     
    300306msgstr ""
    301307
    302 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:802
     308#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:766
     309msgid ""
     310"ERROR: The merchant's WeeConnectPay API key needs to be refreshed by the "
     311"merchant to keep taking payments with this gateway. Please advise the "
     312"merchant to re-authenticate in the integration to re-enable the payment "
     313"gateway."
     314msgstr ""
     315
     316#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:826
    303317msgid "Clover order created."
    304318msgstr ""
    305319
    306 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:803
     320#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:827
    307321msgid "Order ID: "
    308322msgstr ""
    309323
    310 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:821
     324#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:845
    311325msgid "No payment required: Order total is 0 or under."
    312326msgstr ""
    313327
    314 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:839
     328#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:871
    315329msgid "Clover payment successful!"
    316330msgstr ""
    317331
    318 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:840
    319 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:890
     332#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:872
     333#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:925
    320334msgid "Payment ID: "
    321335msgstr ""
    322336
    323 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:851
     337#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:886
    324338#, php-format
    325339msgid ""
     
    328342msgstr ""
    329343
    330 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:856
     344#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:891
    331345#, php-format
    332346msgid ""
     
    335349msgstr ""
    336350
    337 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:872
    338 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:892
    339 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:906
     351#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:907
     352#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:930
     353#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:944
    340354msgid "Clover error message: "
    341355msgstr ""
    342356
    343 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:874
     357#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:909
    344358msgid ""
    345359"Please check the order in the Clover dashboard for the full payment "
     
    347361msgstr ""
    348362
    349 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:889
    350 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:897
     363#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:924
     364#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:935
    351365msgid "Payment failed."
    352366msgstr ""
    353367
    354 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:900
     368#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:938
    355369msgid "Clover response message: "
    356370msgstr ""
    357371
    358 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:903
     372#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:941
    359373msgid "Clover error code: "
    360374msgstr ""
    361375
    362 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:911
     376#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:949
    363377msgid "Payment failed - Unhandled context, see response payload: "
    364378msgstr ""
    365379
    366 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:978
     380#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1016
    367381msgid "Provided ID is not a WC Order"
    368382msgstr ""
    369383
    370 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:986
     384#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1024
    371385msgid "No WC Order Refund found"
    372386msgstr ""
    373387
    374 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:992
     388#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1030
    375389msgid "Refund amount must be higher than 0."
    376390msgstr ""
    377391
    378 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:997
     392#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1035
    379393msgid "Last created refund is not a WC Order Refund"
    380394msgstr ""
    381395
    382 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1002
    383 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1260
     396#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1040
     397#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1395
    384398msgid "Order has been already refunded"
    385399msgstr ""
    386400
    387 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1010
     401#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1048
    388402msgid ""
    389403"Due to an undocumented breaking change in the Clover API, we have temporarily "
     
    391405msgstr ""
    392406
    393 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1011
     407#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1049
    394408msgid ""
    395409"This request to refund will not be processed. Should you want to do a partial "
     
    397411msgstr ""
    398412
    399 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1029
     413#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1067
    400414#, php-format
    401415msgid ""
     
    404418msgstr ""
    405419
    406 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1041
     420#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1079
    407421#, php-format
    408422msgid ""
     
    411425msgstr ""
    412426
    413 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1053
     427#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1091
    414428#, php-format
    415429msgid ""
     
    418432msgstr ""
    419433
    420 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1118
     434#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1152
     435#, php-format
     436msgid ""
     437"Could not find the fee to refund (%s) within the original order. Please "
     438"contact support@weeconnectpay.com if you are seeing this message."
     439msgstr ""
     440
     441#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1167
     442#, php-format
     443msgid ""
     444"To refund this fee (%s), the quantity to refund (currently %s) must be the "
     445"total fee quantity (%s)"
     446msgstr ""
     447
     448#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1180
     449#, php-format
     450msgid ""
     451"To refund this fee (%s), the amount before tax to refund (currently $%s) must "
     452"be the fee total amount before tax ($%s)"
     453msgstr ""
     454
     455#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1192
     456#, php-format
     457msgid ""
     458"To refund this fee (%s), the tax to refund (currently $%s) must be the fee "
     459"total tax ($%s)"
     460msgstr ""
     461
     462#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1253
    421463#, php-format
    422464msgid ""
     
    425467msgstr ""
    426468
    427 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1130
    428 #, php-format
    429 msgid ""
    430 "To refund this shipping item (%s), the tax to refund (currently $%s) must be "
    431 "the shipping item total tax ($%s)"
    432 msgstr ""
    433 
    434 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1195
    435 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1222
     469#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1265
     470#, php-format
     471msgid ""
     472"To refund this shipping item (%s), the shipping tax to refund (currently $%s) "
     473"must be the shipping item total tax ($%s)"
     474msgstr ""
     475
     476#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1330
     477#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1357
    436478msgid "Refunded: "
    437479msgstr ""
    438480
    439 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1197
    440 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1224
     481#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1332
     482#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1359
    441483#, php-format
    442484msgid "%1$s %2$s"
    443485msgstr ""
    444486
    445 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1201
    446 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1228
     487#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1336
     488#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1363
    447489msgid "Refund ID: "
    448490msgstr ""
    449491
    450 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1202
     492#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1337
    451493msgid "Charge refunded: "
    452494msgstr ""
    453495
    454 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1205
    455 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1231
     496#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1340
     497#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1366
    456498msgid "Reason: "
    457499msgstr ""
    458500
    459 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1244
     501#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1379
    460502msgid "Returned clover item ID: "
    461503msgstr ""
    462504
    463 #: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1246
     505#: includes/integrations/woocommerce/WC_Gateway_Weeconnectpay.php:1381
    464506#, php-format
    465507msgid "%1$s(%2$s %3$s) - %4$s"
    466508msgstr ""
    467509
    468 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:211
     510#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:212
    469511msgid ""
    470512"Failed to update the WooCommerce WeeConnectPay gateway enabled status in the "
     
    472514msgstr ""
    473515
    474 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:224
     516#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:225
    475517msgid "Failed to update the WooCommerce integration status in the database."
    476518msgstr ""
    477519
    478 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:258
     520#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:259
    479521msgid ""
    480522"Failed to update the WooCommerce integration title in the database. The "
     
    482524msgstr ""
    483525
    484 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:271
     526#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:272
    485527msgid "Failed to update the WooCommerce integration title in the database."
    486528msgstr ""
    487529
    488 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:644
     530#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:645
    489531#, php-format
    490532msgid ""
     
    493535msgstr ""
    494536
    495 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:652
     537#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:653
    496538msgid "Dependencies are ok!"
    497539msgstr ""
    498540
    499 #: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:659
     541#: includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:660
    500542msgid ""
    501543"Something went wrong while validating one of the requirements for this "
     
    509551msgstr ""
    510552
    511 #: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:41
     553#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:44
     554#, php-format
     555msgid ""
     556"%1$s constant does not seem to be set, which is required for this integration "
     557"to work properly when using GitPod. Integration disabled."
     558msgstr ""
     559
     560#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:58
     561msgid "Plain"
     562msgstr ""
     563
     564#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:59
     565msgid "the permalinks page"
     566msgstr ""
     567
     568#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:62
     569#, php-format
     570msgid ""
     571"You can resolve this issue by changing your WordPress permalinks settings to "
     572"something other than \"%1$s\" on %2$s."
     573msgstr ""
     574
     575#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:69
     576msgid ""
     577"It appears that your WordPress database prefix is either not set or is set to "
     578"an empty string. This is against WordPress security standards, and as a "
     579"result, WeeConnectPay has been disabled."
     580msgstr ""
     581
     582#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:70
     583msgid ""
     584"To resolve this issue, please set a valid prefix in your WordPress database "
     585"configuration. In a standard WordPress installation, this is done by defining "
     586"the <code>$table_prefix</code> variable in the <code>wp-config.php</code> "
     587"file. Having an empty or missing prefix can lead to security vulnerabilities, "
     588"so it’s crucial to ensure this is configured correctly. <p><strong>Warning:</"
     589"strong> Changing the <code>$table_prefix</code> value may trigger the "
     590"WordPress installation wizard. This can give the appearance that your site’s "
     591"data is missing, but your content is still safe in the database tables "
     592"without the prefix. We strongly recommend consulting with your web developer "
     593"before making this change to avoid any confusion or potential issues.</p>"
     594msgstr ""
     595
     596#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:86
    512597#, php-format
    513598msgid ""
     
    516601msgstr ""
    517602
    518 #: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:54
     603#: includes/modules/WeeConnectPay/Validators/DependencyValidator.php:102
    519604#, php-format
    520605msgid ""
     
    554639msgstr ""
    555640
    556 #: site/WeeConnectPayPublic.php:155
    557 msgid ""
    558 "Note: When editing the Block-based checkout page, it may show that the "
    559 "gateway is not compatible. This bug only affects the edit page; your "
    560 "customers can use the gateway without issues. We are working on a solution "
    561 "with WooCommerce developers for an upcoming update."
    562 msgstr ""
    563 
    564641#. Plugin Name of the plugin/theme
    565642#. Author of the plugin/theme
  • weeconnectpay/trunk/payment-fields-blocks/assets/js/frontend/blocks.asset.php

    r3105409 r3174607  
    1 <?php return array('dependencies' => array('react', 'wc-blocks-registry', 'wc-settings', 'wp-html-entities', 'wp-i18n'), 'version' => 'fdd9461ce865bbc2d8d4');
     1<?php return array('dependencies' => array('react', 'wc-blocks-registry', 'wc-settings', 'wp-html-entities', 'wp-i18n'), 'version' => '88dcd77fe713f1116edf');
  • weeconnectpay/trunk/payment-fields-blocks/assets/js/frontend/blocks.js

    r3105409 r3174607  
    1 !function(){"use strict";var e={20:function(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,c={key:!0,ref:!0,__self:!0,__source:!0};function i(e,t,r){var o,i={},l=null,d=null;for(o in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,o)&&!c.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:n,type:e,key:l,ref:d,props:i,_owner:s.current}}t.jsx=i,t.jsxs=i},848:function(e,t,r){e.exports=r(20)},609:function(e){e.exports=window.React}},t={};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}var o,n,a,s=r(848);!function(e){e.CARD="CARD",e.CVV="CARD_CVV",e.DATE="CARD_DATE",e.NUMBER="CARD_NUMBER",e.POSTAL_CODE="CARD_POSTAL_CODE",e.STREET_ADDRESS="CARD_STREET_ADDRESS",e.PAYMENT_REQUEST_BUTTON="PAYMENT_REQUEST_BUTTON"}(o||(o={})),function(e){e.NUMBER="weeconnectpay-card-number",e.DATE="weeconnectpay-card-date",e.CVV="weeconnectpay-card-cvv",e.ZIP="weeconnectpay-card-postal-code",e.PAYMENT_REQUEST_BUTTON="weeconnectpay-payment-request-button"}(n||(n={})),function(e){e.NUMBER="weeconnectpay-card-number-errors",e.DATE="weeconnectpay-card-date-errors",e.CVV="weeconnectpay-card-cvv-errors",e.ZIP="weeconnectpay-card-postal-code-errors",e.PAYMENT_REQUEST_BUTTON="weeconnectpay-payment-request-button-errors"}(a||(a={}));var c=r(609),i=window.wc.wcSettings,l=window.wc.wcBlocksRegistry,d=window.wp.htmlEntities,p=window.wp.i18n;class u{constructor(e){this.getLocalizedCvvPlaceholderStyles=e=>{let t={};if("fr-CA"===e){const e=document.getElementById(n.CVV);e?t=e.offsetWidth>=106||0===e.offsetWidth?{whiteSpace:"pre-line",position:"relative"}:{whiteSpace:"pre-line",position:"relative",top:"-7px"}:console.warn("WeeConnectPay could not detect the CVV element during Styles creation. CVV Element placeholder may look off-center depending on your locale.")}else t={};return t},this.cloverConfig=e,this.verifyCloverSdkIsLoaded(),this.getPakmsOrFail(e.pakms),this.cloverInstance=this.createCloverInstance(e.pakms)}static getInstance(e){if(!this.instance){if(!e)throw console.error("Clover settings must be provided for initialization."),new Error("Clover settings must be provided for initialization.");this.instance=new u(e)}return this.instance}createCloverInstance(e){try{return new Clover(e)}catch(e){const t=`WeeConnectPay failed to initialize Clover instance: ${e.message}`;throw console.error(t),new Error(t)}}getCloverInstance(){return this.cloverInstance}verifyCloverSdkIsLoaded(){if("undefined"==typeof Clover)throw new Error("Clover SDK is not loaded.")}getPakmsOrFail(e){if(!e||""===e.trim()){const e="WeeConnectPay Gateway for WooCommerce Blocks cannot load the Clover iframes. Reason: Missing Clover public merchant (pakms) key, is the merchant authenticated?";throw console.error(e),new Error(e)}return e}static getWrapperId(e){switch(e){case o.NUMBER:return n.NUMBER;case o.DATE:return n.DATE;case o.CVV:return n.CVV;case o.POSTAL_CODE:return n.ZIP;case o.PAYMENT_REQUEST_BUTTON:return n.PAYMENT_REQUEST_BUTTON;default:return}}static getErrorDisplayId(e){switch(e){case o.NUMBER:return a.NUMBER;case o.DATE:return a.DATE;case o.CVV:return a.CVV;case o.POSTAL_CODE:return a.ZIP;case o.PAYMENT_REQUEST_BUTTON:return a.PAYMENT_REQUEST_BUTTON;default:return}}getDefaultStyles(){const e=this.getLocalizedCvvPlaceholderStyles(this.cloverConfig.websiteLocale);return{input:{padding:"0px",margin:"0px",height:"3.4em",width:"100%",border:"1px #C8C8C8 solid",borderRadius:"3px",textAlign:"center"},"::-webkit-input-placeholder":{textAlign:"center"},"::-moz-placeholder":{textAlign:"center"},":-ms-input-placeholder":{textAlign:"center"},":-moz-placeholder":{textAlign:"center"},"card-cvv input::-webkit-input-placeholder":e,"card-cvv input::-moz-placeholder":e,"card-cvv input:-ms-input-placeholder":e,"card-cvv input:-moz-placeholder":e}}createElements(e){const t=this.cloverInstance.elements(),r={};return e.forEach((([e,o])=>{const n={...this.getDefaultStyles(),...o};try{r[e]=t.create(e,n)}catch(t){console.error(`Error creating element for type ${e}:`,t)}})),r}mountElements(e){Object.entries(e).forEach((([e,t])=>{const r=e,o=u.getWrapperId(r);o&&t.mount&&t.mount("#"+o)}))}static createFinalValidationState(){const e={CARD_NUMBER:{error:"Card number is required",touched:!0},CARD_DATE:{error:"Card expiry is required",touched:!0},CARD_CVV:{error:"Card CVV is required",touched:!0},CARD_POSTAL_CODE:{error:"Card postal code is required",touched:!0}},t=u.getValidationState(),r={};return Object.keys(e).forEach((o=>{const n=o,a=t[n];a&&(a.touched&&!a.error||a.touched&&a.error)?r[n]=a:r[n]=e[n]})),r}attachEventListeners({elements:e,events:t,handler:r}){Object.keys(e).forEach((o=>{const n=e[o];t.forEach((e=>{n.addEventListener(e,r)}))}))}static getValidationState(){return u.validationState}static isFinalEventValid(e){return["CARD_NUMBER","CARD_DATE","CARD_CVV","CARD_POSTAL_CODE"].every((t=>{const r=e[t];return r&&r.touched&&!r.error}))}static isEventElementState(e){return e&&"object"==typeof e&&"touched"in e}static getErrorMessageOrNull(e){const t=["CARD_CVV","CARD_DATE","CARD_NUMBER","CARD_POSTAL_CODE"];let r=!1,n="";return 0===Object.keys(e).length?t.forEach((()=>{r=!0,n+="These fields are required.<br>"})):t.forEach((t=>{const a=e[t];u.isEventElementState(a)&&a.touched?a.error&&(r=!0,n+=`${a.error}<br>`):(r=!0,n+=`${o[t]}: This field is required.<br>`)})),r?n:null}}u.validationState={},u.validationEventHandler=(e,t)=>{"onPaymentSetup"!==t&&(u.validationState={...e}),Object.entries(e).forEach((([e,t])=>{const r=e,o=u.getWrapperId(r),n=u.getErrorDisplayId(r),a=o?document.getElementById(o):null,s=n?document.getElementById(n):null;a&&s?t.error&&t.touched?u.addError(a,s,t.error):t.touched&&u.removeError(a,s):console.error(`WeeConnectPay failed to handle the event for the Clover Iframe element type: ${r}. The wrapperElement or errorDisplayElement were not found. `,{wrapperElement:{id:o,element:a},errorDisplayElement:{id:n,element:s}})}))},u.addError=(e,t,r)=>{t.textContent=r,t.classList.add("error"),e.classList.remove("success"),e.classList.add("error")},u.removeError=(e,t)=>{t.textContent=null,t.classList.remove("error"),e.classList.remove("error"),e.classList.add("success")};var h=u;Error;class E{constructor(e){if(this.googleRecaptchaConfig=e,this.verifyGoogleRecaptchaSdkIsLoaded(),!E.isGoogleRecaptchaEnabled(e.isEnabled))throw console.error("Google Recaptcha is disabled in the settings but is still being constructed."),new Error("Google Recaptcha is disabled in the settings but is still being constructed.");this.getSiteKeyOrFail(e.siteKey)}static getInstance(e){if(!this.instance){if(!e)throw console.error("Clover settings must be provided for initialization."),new Error("Clover settings must be provided for initialization.");this.instance=new E(e)}return this.instance}verifyGoogleRecaptchaSdkIsLoaded(){if("undefined"==typeof grecaptcha)throw console.error("Google Recaptcha SDK is not loaded."),new Error("Google Recaptcha SDK is not loaded.")}static isGoogleRecaptchaEnabled(e){return"1"===e}getSiteKeyOrFail(e){if(!e||""===e.trim()){const e='WeeConnectPay Gateway for WooCommerce Blocks has an error while using Google Recaptcha. Reason: Missing Google Recaptcha "site key". Have you set it up in the plugin settings?';throw console.error(e),new Error(e)}return e}createToken(){return new Promise(((e,t)=>{grecaptcha.ready((()=>{try{grecaptcha.execute(this.googleRecaptchaConfig.siteKey,{action:"submit"}).then((t=>{e(t)}),(e=>{t(e.toString())}))}catch(e){t(e.toString())}}))}))}async getTokenOrExceptionJson(){return await this.createToken()}static getStringifiedErrorForPaymentMethodData(e){const t={exception:e.toString()};return JSON.stringify(t)}}const m="weeconnectpay",v=(0,i.getSetting)("weeconnectpay_data",{}),g=(0,d.decodeEntities)(v.woocommerce?.gateway?.title)||(0,p.__)("Credit Card","weeconnectpay"),f=e=>{const{eventRegistration:t,emitResponse:r}=e,{onPaymentSetup:n}=t;return(0,c.useEffect)((()=>{const e=n((async()=>{const e=h.createFinalValidationState();if(h.validationEventHandler(e,"onPaymentSetup"),!h.isFinalEventValid(e)){const t=h.getErrorMessageOrNull(e);if(null!==t)return{type:r?.responseTypes.ERROR,message:t,messageContext:r?.noticeContexts?.PAYMENTS};{const e="An unexpected validation error has occurred. Please check the console for more details.";return console.error("The final validation before tokenizing the card did not pass validation, but could not generate a proper error message."),{type:r?.responseTypes.ERROR,unhandledValidationErrorMessage:e,messageContext:r?.noticeContexts?.PAYMENTS}}}const t=h.getInstance(v.clover).getCloverInstance();try{var o;let e="";if(E.isGoogleRecaptchaEnabled(v.googleRecaptcha.isEnabled))try{const t=E.getInstance(v.googleRecaptcha);e=await t.getTokenOrExceptionJson()}catch(t){console.error("Error creating Google Recaptcha Token:",t),e=E.getStringifiedErrorForPaymentMethodData(t)}const n=await t.createToken(),a=n.token,s=null!==(o=n.card?.brand)&&void 0!==o?o:"",c=n.card?.address_zip;return{type:r.responseTypes.SUCCESS,meta:{paymentMethodData:{token:a,"card-brand":s,"tokenized-zip":c,"recaptcha-token":e}}}}catch(e){return console.error("Error creating Clover token:",e),{type:r?.responseTypes.ERROR,message:"Error creating Clover token",messageContext:r?.noticeContexts?.PAYMENTS}}}));return()=>e()}),[r.responseTypes.ERROR,r.responseTypes.SUCCESS,n]),(0,c.useEffect)((()=>{!function(){try{const e=h.getInstance(v.clover),t=[[o.NUMBER,{}],[o.DATE,{}],[o.CVV,{}],[o.POSTAL_CODE,{}]],r=e.createElements(t);e.mountElements(r),e.attachEventListeners({elements:r,events:["change","blur"],handler:h.validationEventHandler})}catch(e){console.error("WeeConnectPay failed to setup Clover:",e.message)}}()}),[]),(0,s.jsx)("div",{id:"weeconnectpay-wc-fields",children:(0,s.jsxs)("div",{id:"form-display-no-footer",children:[(0,s.jsx)("div",{className:"top-row-wrapper",children:(0,s.jsxs)("div",{className:"form-row top-row full-width",children:[(0,s.jsx)("div",{id:"weeconnectpay-card-number",className:"field card-number-field"}),(0,s.jsx)("div",{className:"input-errors",id:"weeconnectpay-card-number-errors",role:"alert"})]})}),(0,s.jsxs)("div",{className:"bottom-row-wrapper",children:[(0,s.jsxs)("div",{className:"form-row bottom-row third-width",children:[(0,s.jsx)("div",{id:"weeconnectpay-card-date",className:"field card-date-field"}),(0,s.jsx)("div",{className:"input-errors",id:"weeconnectpay-card-date-errors",role:"alert"})]}),(0,s.jsxs)("div",{className:"form-row bottom-row third-width",children:[(0,s.jsx)("div",{id:"weeconnectpay-card-cvv",className:"field card-cvv-field"}),(0,s.jsx)("div",{className:"input-errors",id:"weeconnectpay-card-cvv-errors",role:"alert"})]}),(0,s.jsxs)("div",{className:"form-row bottom-row third-width",children:[(0,s.jsx)("div",{id:"weeconnectpay-card-postal-code",className:"field card-postal-code-field"}),(0,s.jsx)("div",{className:"input-errors",id:"weeconnectpay-card-postal-code-errors",role:"alert"})]})]}),(0,s.jsx)("div",{id:"card-response",role:"alert"}),(0,s.jsx)("div",{id:"card-errors",role:"alert"}),(0,s.jsx)("div",{className:"clover-footer"})]})})},y={name:m,paymentMethodId:m,label:g,content:(0,s.jsx)(f,{emitResponse:()=>{},eventRegistration:()=>{}}),edit:(0,s.jsx)(f,{emitResponse:()=>{},eventRegistration:()=>{}}),canMakePayment:()=>!0,ariaLabel:g,supports:{features:v.woocommerce?.gateway?.supports?v.woocommerce.gateway.supports:["products"]}};(0,l.registerPaymentMethod)(y)}();
     1!function(){"use strict";var e={20:function(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,c={key:!0,ref:!0,__self:!0,__source:!0};function i(e,t,r){var o,i={},l=null,d=null;for(o in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,o)&&!c.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:n,type:e,key:l,ref:d,props:i,_owner:s.current}}t.jsx=i,t.jsxs=i},848:function(e,t,r){e.exports=r(20)},609:function(e){e.exports=window.React}},t={};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}var o,n,a,s=r(848);!function(e){e.CARD="CARD",e.CVV="CARD_CVV",e.DATE="CARD_DATE",e.NUMBER="CARD_NUMBER",e.POSTAL_CODE="CARD_POSTAL_CODE",e.STREET_ADDRESS="CARD_STREET_ADDRESS",e.PAYMENT_REQUEST_BUTTON="PAYMENT_REQUEST_BUTTON"}(o||(o={})),function(e){e.NUMBER="weeconnectpay-card-number",e.DATE="weeconnectpay-card-date",e.CVV="weeconnectpay-card-cvv",e.ZIP="weeconnectpay-card-postal-code",e.PAYMENT_REQUEST_BUTTON="weeconnectpay-payment-request-button"}(n||(n={})),function(e){e.NUMBER="weeconnectpay-card-number-errors",e.DATE="weeconnectpay-card-date-errors",e.CVV="weeconnectpay-card-cvv-errors",e.ZIP="weeconnectpay-card-postal-code-errors",e.PAYMENT_REQUEST_BUTTON="weeconnectpay-payment-request-button-errors"}(a||(a={}));var c=r(609),i=window.wc.wcSettings,l=window.wc.wcBlocksRegistry,d=window.wp.htmlEntities,p=window.wp.i18n;class u{constructor(e){this.getLocalizedCvvPlaceholderStyles=e=>{let t={};if("fr-CA"===e){const e=document.getElementById(n.CVV);e?t=e.offsetWidth>=106||0===e.offsetWidth?{whiteSpace:"pre-line",position:"relative"}:{whiteSpace:"pre-line",position:"relative",top:"-7px"}:console.warn("WeeConnectPay could not detect the CVV element during Styles creation. CVV Element placeholder may look off-center depending on your locale.")}else t={};return t},this.cloverConfig=e,this.verifyCloverSdkIsLoaded(),this.getPakmsOrFail(e.pakms),this.cloverInstance=this.createCloverInstance(e.pakms,e.locale,e.merchantId)}static getInstance(e){if(!this.instance){if(!e)throw console.error("Clover settings must be provided for initialization."),new Error("Clover settings must be provided for initialization.");this.instance=new u(e)}return this.instance}createCloverInstance(e,t,r){try{return new Clover(e,{locale:t,merchantId:r})}catch(e){const t=`WeeConnectPay failed to initialize Clover instance: ${e.message}`;throw console.error(t),new Error(t)}}getCloverInstance(){return this.cloverInstance}verifyCloverSdkIsLoaded(){if("undefined"==typeof Clover)throw new Error("Clover SDK is not loaded.")}getPakmsOrFail(e){if(!e||""===e.trim()){const e="WeeConnectPay Gateway for WooCommerce Blocks cannot load the Clover iframes. Reason: Missing Clover public merchant (pakms) key, is the merchant authenticated?";throw console.error(e),new Error(e)}return e}static getWrapperId(e){switch(e){case o.NUMBER:return n.NUMBER;case o.DATE:return n.DATE;case o.CVV:return n.CVV;case o.POSTAL_CODE:return n.ZIP;case o.PAYMENT_REQUEST_BUTTON:return n.PAYMENT_REQUEST_BUTTON;default:return}}static getErrorDisplayId(e){switch(e){case o.NUMBER:return a.NUMBER;case o.DATE:return a.DATE;case o.CVV:return a.CVV;case o.POSTAL_CODE:return a.ZIP;case o.PAYMENT_REQUEST_BUTTON:return a.PAYMENT_REQUEST_BUTTON;default:return}}getDefaultStyles(){const e=this.getLocalizedCvvPlaceholderStyles(this.cloverConfig.locale);return{input:{padding:"0px",margin:"0px",height:"3.4em",width:"100%",border:"1px #C8C8C8 solid",borderRadius:"3px",textAlign:"center"},"::-webkit-input-placeholder":{textAlign:"center"},"::-moz-placeholder":{textAlign:"center"},":-ms-input-placeholder":{textAlign:"center"},":-moz-placeholder":{textAlign:"center"},"card-cvv input::-webkit-input-placeholder":e,"card-cvv input::-moz-placeholder":e,"card-cvv input:-ms-input-placeholder":e,"card-cvv input:-moz-placeholder":e}}createElements(e){const t=this.cloverInstance.elements(),r={};return e.forEach((([e,o])=>{const n={...this.getDefaultStyles(),...o};try{r[e]=t.create(e,n)}catch(t){console.error(`Error creating element for type ${e}:`,t)}})),r}mountElements(e){Object.entries(e).forEach((([e,t])=>{const r=e,o=u.getWrapperId(r);o&&t.mount&&t.mount("#"+o)}))}static createFinalValidationState(){const e={CARD_NUMBER:{error:"Card number is required",touched:!0},CARD_DATE:{error:"Card expiry is required",touched:!0},CARD_CVV:{error:"Card CVV is required",touched:!0},CARD_POSTAL_CODE:{error:"Card postal code is required",touched:!0}},t=u.getValidationState(),r={};return Object.keys(e).forEach((o=>{const n=o,a=t[n];a&&(a.touched&&!a.error||a.touched&&a.error)?r[n]=a:r[n]=e[n]})),r}attachEventListeners({elements:e,events:t,handler:r}){Object.keys(e).forEach((o=>{const n=e[o];t.forEach((e=>{n.addEventListener(e,r)}))}))}static getValidationState(){return u.validationState}static isFinalEventValid(e){return["CARD_NUMBER","CARD_DATE","CARD_CVV","CARD_POSTAL_CODE"].every((t=>{const r=e[t];return r&&r.touched&&!r.error}))}static isEventElementState(e){return e&&"object"==typeof e&&"touched"in e}static getErrorMessageOrNull(e){const t=["CARD_CVV","CARD_DATE","CARD_NUMBER","CARD_POSTAL_CODE"];let r=!1,n="";return 0===Object.keys(e).length?t.forEach((()=>{r=!0,n+="These fields are required.<br>"})):t.forEach((t=>{const a=e[t];u.isEventElementState(a)&&a.touched?a.error&&(r=!0,n+=`${a.error}<br>`):(r=!0,n+=`${o[t]}: This field is required.<br>`)})),r?n:null}}u.validationState={},u.validationEventHandler=(e,t)=>{"onPaymentSetup"!==t&&(u.validationState={...e}),Object.entries(e).forEach((([e,t])=>{const r=e,o=u.getWrapperId(r),n=u.getErrorDisplayId(r),a=o?document.getElementById(o):null,s=n?document.getElementById(n):null;a&&s?t.error&&t.touched?u.addError(a,s,t.error):t.touched&&u.removeError(a,s):console.error(`WeeConnectPay failed to handle the event for the Clover Iframe element type: ${r}. The wrapperElement or errorDisplayElement were not found. `,{wrapperElement:{id:o,element:a},errorDisplayElement:{id:n,element:s}})}))},u.addError=(e,t,r)=>{t.textContent=r,t.classList.add("error"),e.classList.remove("success"),e.classList.add("error")},u.removeError=(e,t)=>{t.textContent=null,t.classList.remove("error"),e.classList.remove("error"),e.classList.add("success")};var h=u;Error;class E{constructor(e){if(this.googleRecaptchaConfig=e,this.verifyGoogleRecaptchaSdkIsLoaded(),!E.isGoogleRecaptchaEnabled(e.isEnabled))throw console.error("Google Recaptcha is disabled in the settings but is still being constructed."),new Error("Google Recaptcha is disabled in the settings but is still being constructed.");this.getSiteKeyOrFail(e.siteKey)}static getInstance(e){if(!this.instance){if(!e)throw console.error("Clover settings must be provided for initialization."),new Error("Clover settings must be provided for initialization.");this.instance=new E(e)}return this.instance}verifyGoogleRecaptchaSdkIsLoaded(){if("undefined"==typeof grecaptcha)throw console.error("Google Recaptcha SDK is not loaded."),new Error("Google Recaptcha SDK is not loaded.")}static isGoogleRecaptchaEnabled(e){return"1"===e}getSiteKeyOrFail(e){if(!e||""===e.trim()){const e='WeeConnectPay Gateway for WooCommerce Blocks has an error while using Google Recaptcha. Reason: Missing Google Recaptcha "site key". Have you set it up in the plugin settings?';throw console.error(e),new Error(e)}return e}createToken(){return new Promise(((e,t)=>{grecaptcha.ready((()=>{try{grecaptcha.execute(this.googleRecaptchaConfig.siteKey,{action:"submit"}).then((t=>{e(t)}),(e=>{t(e.toString())}))}catch(e){t(e.toString())}}))}))}async getTokenOrExceptionJson(){return await this.createToken()}static getStringifiedErrorForPaymentMethodData(e){const t={exception:e.toString()};return JSON.stringify(t)}}const m="weeconnectpay",v=(0,i.getSetting)("weeconnectpay_data",{}),g=(0,d.decodeEntities)(v.woocommerce?.gateway?.title)||(0,p.__)("Credit Card","weeconnectpay"),f=e=>{const{eventRegistration:t,emitResponse:r}=e,{onPaymentSetup:n}=t;return(0,c.useEffect)((()=>{const e=n((async()=>{const e=h.createFinalValidationState();if(h.validationEventHandler(e,"onPaymentSetup"),!h.isFinalEventValid(e)){const t=h.getErrorMessageOrNull(e);if(null!==t)return{type:r?.responseTypes.ERROR,message:t,messageContext:r?.noticeContexts?.PAYMENTS};{const e="An unexpected validation error has occurred. Please check the console for more details.";return console.error("The final validation before tokenizing the card did not pass validation, but could not generate a proper error message."),{type:r?.responseTypes.ERROR,unhandledValidationErrorMessage:e,messageContext:r?.noticeContexts?.PAYMENTS}}}const t=h.getInstance(v.clover).getCloverInstance();try{var o;let e="";if(E.isGoogleRecaptchaEnabled(v.googleRecaptcha.isEnabled))try{const t=E.getInstance(v.googleRecaptcha);e=await t.getTokenOrExceptionJson()}catch(t){console.error("Error creating Google Recaptcha Token:",t),e=E.getStringifiedErrorForPaymentMethodData(t)}const n=await t.createToken(),a=n.token,s=null!==(o=n.card?.brand)&&void 0!==o?o:"",c=n.card?.address_zip;return{type:r.responseTypes.SUCCESS,meta:{paymentMethodData:{token:a,"card-brand":s,"tokenized-zip":c,"recaptcha-token":e}}}}catch(e){return console.error("Error creating Clover token:",e),{type:r?.responseTypes.ERROR,message:"Error creating Clover token",messageContext:r?.noticeContexts?.PAYMENTS}}}));return()=>e()}),[r.responseTypes.ERROR,r.responseTypes.SUCCESS,n]),(0,c.useEffect)((()=>{!function(){try{const e=h.getInstance(v.clover),t=[[o.NUMBER,{}],[o.DATE,{}],[o.CVV,{}],[o.POSTAL_CODE,{}]],r=e.createElements(t);e.mountElements(r),e.attachEventListeners({elements:r,events:["change","blur"],handler:h.validationEventHandler})}catch(e){console.error("WeeConnectPay failed to setup Clover:",e.message)}}()}),[]),(0,s.jsx)("div",{id:"weeconnectpay-wc-fields",children:(0,s.jsxs)("div",{id:"form-display-no-footer",children:[(0,s.jsx)("div",{className:"top-row-wrapper",children:(0,s.jsxs)("div",{className:"form-row top-row full-width",children:[(0,s.jsx)("div",{id:"weeconnectpay-card-number",className:"field card-number-field"}),(0,s.jsx)("div",{className:"input-errors",id:"weeconnectpay-card-number-errors",role:"alert"})]})}),(0,s.jsxs)("div",{className:"bottom-row-wrapper",children:[(0,s.jsxs)("div",{className:"form-row bottom-row third-width",children:[(0,s.jsx)("div",{id:"weeconnectpay-card-date",className:"field card-date-field"}),(0,s.jsx)("div",{className:"input-errors",id:"weeconnectpay-card-date-errors",role:"alert"})]}),(0,s.jsxs)("div",{className:"form-row bottom-row third-width",children:[(0,s.jsx)("div",{id:"weeconnectpay-card-cvv",className:"field card-cvv-field"}),(0,s.jsx)("div",{className:"input-errors",id:"weeconnectpay-card-cvv-errors",role:"alert"})]}),(0,s.jsxs)("div",{className:"form-row bottom-row third-width",children:[(0,s.jsx)("div",{id:"weeconnectpay-card-postal-code",className:"field card-postal-code-field"}),(0,s.jsx)("div",{className:"input-errors",id:"weeconnectpay-card-postal-code-errors",role:"alert"})]})]}),(0,s.jsx)("div",{id:"card-response",role:"alert"}),(0,s.jsx)("div",{id:"card-errors",role:"alert"}),(0,s.jsx)("div",{className:"clover-footer"})]})})},y={name:m,paymentMethodId:m,label:g,content:(0,s.jsx)(f,{emitResponse:()=>{},eventRegistration:()=>{}}),edit:(0,s.jsx)(f,{emitResponse:()=>{},eventRegistration:()=>{}}),canMakePayment:()=>!0,ariaLabel:g,supports:{features:v.woocommerce?.gateway?.supports?v.woocommerce.gateway.supports:["products"]}};(0,l.registerPaymentMethod)(y)}();
  • weeconnectpay/trunk/vendor/composer/installed.php

    r3133358 r3174607  
    22    'root' => array(
    33        'name' => '__root__',
    4         'pretty_version' => '3.11.0',
    5         'version' => '3.11.0.0',
    6         'reference' => '0a65ce7b59d7c7f665083abfb9a2e4a931a0791d',
     4        'pretty_version' => '3.11.3',
     5        'version' => '3.11.3.0',
     6        'reference' => 'cbe9b645f05932cfd3bc9ab4297d42bc2f7e6c05',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '__root__' => array(
    14             'pretty_version' => '3.11.0',
    15             'version' => '3.11.0.0',
    16             'reference' => '0a65ce7b59d7c7f665083abfb9a2e4a931a0791d',
     14            'pretty_version' => '3.11.3',
     15            'version' => '3.11.3.0',
     16            'reference' => 'cbe9b645f05932cfd3bc9ab4297d42bc2f7e6c05',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • weeconnectpay/trunk/weeconnectpay.php

    r3133358 r3174607  
    1818 * Description:       Integrate Clover Payments with your WooCommerce online store.
    1919 * Tags:              clover, payments, weeconnect, e-commerce, gateway
    20  * Version:           3.11.0
     20 * Version:           3.11.3
    2121 * Requires at least: 5.6
    22  * Tested Up To:      6.6.1
     22 * Tested Up To:      6.6.2
    2323 * Requires PHP:      7.2
    2424 * Author:            WeeConnectPay
     
    3131 * Requires Plugins:  woocommerce
    3232 * WC requires at least: 3.0.4
    33  * WC tested up to: 9.1.4
     33 * WC tested up to: 9.3.3
    3434 */
    3535
     
    3838    die;
    3939}
    40 const WEECONNECT_VERSION = '3.11.0';
     40const WEECONNECT_VERSION = '3.11.3';
    4141
    4242define( 'WEECONNECTPAY_PLUGIN_URL', plugin_dir_url(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.