Plugin Directory

Changeset 3264476


Ignore:
Timestamp:
03/31/2025 01:25:30 PM (10 months ago)
Author:
cartasi
Message:

v 7.6.1

Location:
cartasi-x-pay
Files:
376 added
1 deleted
14 edited

Legend:

Unmodified
Added
Removed
  • cartasi-x-pay/trunk/README.md

    r3264289 r3264476  
    88WC Requires at least: 2.7.0
    99WC Tested up to: 9.7.1
    10 Stable tag: 7.6.0
     10Stable tag: 7.6.1
    1111License: GNU General Public License v3.0
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    290290 * Added - Compatibility with WooCommerce Block Checkout
    291291 * Added - Compatibility with WooCommerce High-Performance Order Storage (HPOS)
     292 
     293= 7.6.1 =
     294 * Fixed - Minor issues
  • cartasi-x-pay/trunk/src/classes/Nexi/BlockSupport/WC_Gateway_NPG_APM_Blocks_Support.php

    r3264289 r3264476  
    2424        $apmLabel,
    2525        $apmDescription,
    26         $isBuild = false,
     26        $isBuild = false
    2727    ) {
    2828        parent::__construct($apmCode, $isBuild);
  • cartasi-x-pay/trunk/src/classes/Nexi/BlockSupport/WC_Gateway_NPG_Blocks_Support.php

    r3264289 r3264476  
    1919    public function __construct(
    2020        $apm = '',
    21         $isBuild = false,
     21        $isBuild = false
    2222    ) {
    2323        if ($apm !== null && !empty($apm)) {
  • cartasi-x-pay/trunk/src/classes/Nexi/BlockSupport/WC_Gateway_XPay_APM_Blocks_Support.php

    r3264289 r3264476  
    2323        $apmCode,
    2424        $apmLabel,
    25         $isBuild = false,
     25        $isBuild = false
    2626    ) {
    2727        parent::__construct($apmCode, $isBuild);
  • cartasi-x-pay/trunk/src/classes/Nexi/BlockSupport/WC_Gateway_Xpay_Blocks_Support.php

    r3264289 r3264476  
    1919    public function __construct(
    2020        $apm = '',
    21         $isBuild = false,
     21        $isBuild = false
    2222    ) {
    2323        if ($apm !== null && !empty($apm)) {
  • cartasi-x-pay/trunk/src/classes/Nexi/WC_Build_Token.php

    r2975087 r3264476  
    4444
    4545        foreach ($tokens as $token) {
    46             if ($token->get_card_type() == $brand && $token->get_last4() == $last4 &&
    47                     $token->get_expiry_month() == $exp_month && $token->get_expiry_year() == $exp_year) {
     46            if (
     47                $token->get_card_type() == $brand && $token->get_last4() == $last4 &&
     48                $token->get_expiry_month() == $exp_month && $token->get_expiry_year() == $exp_year
     49            ) {
    4850                return true;
    4951            }
  • cartasi-x-pay/trunk/src/classes/Nexi/WC_Gateway_Admin.php

    r3209322 r3264476  
    167167                ),
    168168                'description' => '- ' . __('Select "Alias and MAC Key" option if you received the credentials of the production environment in the Welcome Mail received from Nexi during the activation of the service', 'woocommerce-gateway-nexi-xpay') . '<br />'
    169                 . '- ' . __('Select "APIKey" option if you use the API Key as the credential of the production environment generated from the Back Office XPay. Follow the directions in the developer portal for the correct generation process.', 'woocommerce-gateway-nexi-xpay'),
     169                    . '- ' . __('Select "APIKey" option if you use the API Key as the credential of the production environment generated from the Back Office XPay. Follow the directions in the developer portal for the correct generation process.', 'woocommerce-gateway-nexi-xpay'),
    170170                'class' => 'gateway-input'
    171171            )
     
    453453
    454454                    <div>
    455                         <button class="button" id="add-ranges-variation"><?php echo __('Add rule', 'woocommerce-gateway-nexi-xpay'); ?></button>
     455                        <button class="button"
     456                            id="add-ranges-variation"><?php echo __('Add rule', 'woocommerce-gateway-nexi-xpay'); ?></button>
    456457                    </div>
    457                    
    458                     <input type="hidden" id="ranges-delete-label" value="<?php echo __('Delete', 'woocommerce-gateway-nexi-xpay'); ?>" />
    459 
    460                     <input type="hidden" id="<?php echo esc_attr($key); ?>" name="<?php echo esc_attr($field); ?>" value="<?php echo esc_attr($value); ?>" />
     458
     459                    <input type="hidden" id="ranges-delete-label"
     460                        value="<?php echo __('Delete', 'woocommerce-gateway-nexi-xpay'); ?>" />
     461
     462                    <input type="hidden" id="<?php echo esc_attr($key); ?>" name="<?php echo esc_attr($field); ?>"
     463                        value="<?php echo esc_attr($value); ?>" />
    461464                </fieldset>
    462465
     
    543546            <td class="forminp">
    544547                <fieldset>
    545                     <label for="<?php echo esc_attr($field); ?>" class="<?php echo wp_kses_post($data['class']); ?>"><?php echo wp_kses_post($data['label']); ?></label>
     548                    <label for="<?php echo esc_attr($field); ?>"
     549                        class="<?php echo wp_kses_post($data['class']); ?>"><?php echo wp_kses_post($data['label']); ?></label>
    546550
    547551                    <?php echo $this->get_description_html($data); ?>
  • cartasi-x-pay/trunk/src/classes/Nexi/WC_Gateway_NPG_APM.php

    r3264289 r3264476  
    5252        }
    5353
    54          $resultArray = [
     54        $resultArray = [
    5555            'result' => $result,
    5656            'redirect' => $redirectLink,
  • cartasi-x-pay/trunk/src/classes/Nexi/WC_Gateway_NPG_Cards.php

    r3264289 r3264476  
    2929        $this->description = $this->get_sorted_cards_images() . __("Pay securely by credit, debit and prepaid card. Powered by Nexi.", 'woocommerce-gateway-nexi-xpay');
    3030
    31         add_filter( 'woocommerce_saved_payment_methods_list', [ $this, 'filter_saved_payment_methods_list' ], 10, 2 );
    32     }
    33 
    34     public function filter_saved_payment_methods_list( $list, $customer_id ) {
     31        add_filter('woocommerce_saved_payment_methods_list', [$this, 'filter_saved_payment_methods_list'], 10, 2);
     32    }
     33
     34    public function filter_saved_payment_methods_list($list, $customer_id)
     35    {
    3536        $gatewaySettings = \WC_Admin_Settings::get_option('woocommerce_xpay_settings') ?? [];
    3637        if (empty($gatewaySettings) || ($gatewaySettings['nexi_xpay_oneclick_enabled'] ?? '') !== 'yes' || \Nexi\WC_Nexi_Helper::cart_contains_subscription()) {
    3738            return [];
    3839        }
    39         return $list;
    40     }
     40        return $list;
     41    }
    4142
    4243    public function process_payment($order_id)
  • cartasi-x-pay/trunk/src/classes/Nexi/WC_Gateway_NPG_Process_Completion.php

    r3264289 r3264476  
    273273
    274274            case NPG_OR_PENDING: // if operationResult is pending, the final operation status isn't sure and the order is set in pending
    275                 Log::actionWarning(message: __FUNCTION__ . ': operation not in a final status');
     275                Log::actionWarning(__FUNCTION__ . ': operation not in a final status');
    276276
    277277                if ($order->get_status() != 'pending') {
     
    294294                }
    295295
    296                 Log::actionWarning(message: __FUNCTION__ . ': payment error');
     296                Log::actionWarning(__FUNCTION__ . ': payment error');
    297297
    298298                $error = $operation['operationResult'];
  • cartasi-x-pay/trunk/src/classes/Nexi/WC_Gateway_Nexi_Register_Available.php

    r3264289 r3264476  
    156156            $this->currency = get_woocommerce_currency();
    157157
    158             if (WC_Nexi_Helper::nexi_array_key_exists_and_equals($currentConfig, 'enabled', value: 'yes')) {
     158            if (WC_Nexi_Helper::nexi_array_key_exists_and_equals($currentConfig, 'enabled', 'yes')) {
    159159                if (WC_Nexi_Helper::nexi_array_key_exists_and_equals($currentConfig, 'nexi_gateway', GATEWAY_NPG)) {
    160160                    if (is_admin() || static::is_currency_valid_for_apm($this->currency, 'CARDS')) {
  • cartasi-x-pay/trunk/src/classes/Nexi/WC_Gateway_XPay_Cards_Build.php

    r3264289 r3264476  
    7070    }
    7171
    72     public function filter_saved_payment_methods_list( $list, $customer_id ) {
     72    public function filter_saved_payment_methods_list($list, $customer_id)
     73    {
    7374        $gatewaySettings = \WC_Admin_Settings::get_option('woocommerce_xpay_build_settings') ?? [];
    7475        if (empty($gatewaySettings) || ($gatewaySettings['nexi_xpay_oneclick_enabled'] ?? '') !== 'yes' || \Nexi\WC_Nexi_Helper::cart_contains_subscription()) {
    7576            return [];
    7677        }
    77         return $list;
    78     }
     78        return $list;
     79    }
    7980
    8081    public function getBuildStyle()
  • cartasi-x-pay/trunk/src/classes/Nexi/WC_Pagodil_Configuration.php

    r3017100 r3264476  
    147147    /**
    148148     * List of checkout fields to choose fiscal code field, shown in configuration
    149      * 
     149     *
    150150     * @return array
    151151     */
     
    185185    /**
    186186     * List of categories to be made payable in installments, shown in configuration
    187      * 
     187     *
    188188     * @return array
    189189     */
     
    247247    /**
    248248     * List of logo types available in the widget, shown in configuration
    249      * 
     249     *
    250250     * @return array
    251251     */
  • cartasi-x-pay/trunk/woocommerce-gateway-nexi-xpay.php

    r3264289 r3264476  
    77 * Plugin URI:
    88 * Description: Payment plugin for payment cards and alternative methods. Powered by Nexi.
    9  * Version: 7.6.0
     9 * Version: 7.6.1
    1010 * Author: Nexi SpA
    1111 * Author URI: https://www.nexi.it
     
    2929{
    3030    if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins'))) || is_plugin_active_for_network('woocommerce/woocommerce.php')) {
    31         define("WC_GATEWAY_XPAY_VERSION", "7.6.0");
     31        define("WC_GATEWAY_XPAY_VERSION", "7.6.1");
    3232
    3333        define("GATEWAY_XPAY", "xpay");
Note: See TracChangeset for help on using the changeset viewer.