Plugin Directory

Changeset 3239955


Ignore:
Timestamp:
02/13/2025 09:32:08 AM (14 months ago)
Author:
ecommpay
Message:

new version 4.0.3

Location:
ecommpay-payments/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • ecommpay-payments/trunk/common/EcpCore.php

    r3227972 r3239955  
    6363     * @since 2.0.0
    6464     */
    65     public const WC_ECP_VERSION = '4.0.2';
     65    public const WC_ECP_VERSION = '4.0.3';
    6666
    6767    public const ECOMMPAY_PAYMENT_METHOD = 'ecommpay';
  • ecommpay-payments/trunk/common/gateways/EcpDirectDebitBACS.php

    r3218798 r3239955  
    135135
    136136    public function is_available(): bool {
    137         return $this->is_gateway_with_subscription_only();
     137        return parent::is_available() && $this->is_gateway_with_subscription_only();
    138138    }
    139139}
  • ecommpay-payments/trunk/common/gateways/EcpDirectDebitSEPA.php

    r3218798 r3239955  
    135135
    136136    public function is_available(): bool {
    137         return $this->is_gateway_with_subscription_only();
     137        return parent::is_available() && $this->is_gateway_with_subscription_only();
    138138    }
    139139}
  • ecommpay-payments/trunk/common/settings/EcpSettings.php

    r3227972 r3239955  
    4343    const FIELD_DESC = 'desc';
    4444    const FIELD_DEFAULT = 'default';
     45    const FIELD_GENERATE_VALUE = 'generate';
    4546    const FIELD_TIP = 'desc_tip';
    4647    const FIELD_OPTIONS = 'options';
  • ecommpay-payments/trunk/common/settings/EcpSettingsGeneral.php

    r3218798 r3239955  
    9595                self::FIELD_TITLE   => _x( 'Merchant callback URL', 'Settings integration', 'woo-ecommpay' ),
    9696                self::FIELD_TYPE    => self::TYPE_TEXT,
    97                 self::FIELD_DEFAULT => ecp_callback_url(),
     97                self::FIELD_GENERATE_VALUE => 'ecp_callback_url',
    9898                self::FIELD_CUSTOM  => [
    9999                    'readonly' => 'readonly',
  • ecommpay-payments/trunk/common/settings/forms/EcpForm.php

    r3227972 r3239955  
    125125            'tooltip'                  => $this->get_tooltip( $value ),
    126126            'css'                      => $value[ EcpSettings::FIELD_STYLE ],
    127             'option_value'             => $this->get_option( $value, $gateway ),
     127            'option_value'             => $this->get_option_value( $value, $gateway ),
    128128            'options'                  => $value[ EcpSettings::FIELD_OPTIONS ],
    129129            'class'                    => $value[ EcpSettings::FIELD_CLASS ],
     
    154154
    155155        return '';
     156    }
     157
     158    private function get_option_value( array $value, string $gateway ) {
     159        if (
     160            $value[ EcpSettings::FIELD_GENERATE_VALUE ] &&
     161            is_callable( $value[ EcpSettings::FIELD_GENERATE_VALUE ] )
     162        ) {
     163            return call_user_func( $value[ EcpSettings::FIELD_GENERATE_VALUE ] );
     164        }
     165        return $this->get_option( $value, $gateway );
    156166    }
    157167
  • ecommpay-payments/trunk/gateway-ecommpay.php

    r3227972 r3239955  
    55 * GitHub Plugin URI:
    66 * Description:       Easy payment from WooCommerce by different methods in single Payment Page.
    7  * Version:           4.0.2
     7 * Version:           4.0.3
    88 * License:           GPL2
    99 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
  • ecommpay-payments/trunk/readme.txt

    r3227972 r3239955  
    33Tags: card payments, apple pay, google pay, open banking, subscriptions, paypal, sofort, ideal, klarna, giropay, payment gateway, woocommerce
    44Requires at least: 6.2
    5 Tested up to: 6.6
    6 Stable tag: 4.0.2
     5Tested up to: 6.7
     6Stable tag: 4.0.3
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.