Changeset 3239955
- Timestamp:
- 02/13/2025 09:32:08 AM (14 months ago)
- Location:
- ecommpay-payments/trunk
- Files:
-
- 8 edited
-
common/EcpCore.php (modified) (1 diff)
-
common/gateways/EcpDirectDebitBACS.php (modified) (1 diff)
-
common/gateways/EcpDirectDebitSEPA.php (modified) (1 diff)
-
common/settings/EcpSettings.php (modified) (1 diff)
-
common/settings/EcpSettingsGeneral.php (modified) (1 diff)
-
common/settings/forms/EcpForm.php (modified) (2 diffs)
-
gateway-ecommpay.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ecommpay-payments/trunk/common/EcpCore.php
r3227972 r3239955 63 63 * @since 2.0.0 64 64 */ 65 public const WC_ECP_VERSION = '4.0. 2';65 public const WC_ECP_VERSION = '4.0.3'; 66 66 67 67 public const ECOMMPAY_PAYMENT_METHOD = 'ecommpay'; -
ecommpay-payments/trunk/common/gateways/EcpDirectDebitBACS.php
r3218798 r3239955 135 135 136 136 public function is_available(): bool { 137 return $this->is_gateway_with_subscription_only();137 return parent::is_available() && $this->is_gateway_with_subscription_only(); 138 138 } 139 139 } -
ecommpay-payments/trunk/common/gateways/EcpDirectDebitSEPA.php
r3218798 r3239955 135 135 136 136 public function is_available(): bool { 137 return $this->is_gateway_with_subscription_only();137 return parent::is_available() && $this->is_gateway_with_subscription_only(); 138 138 } 139 139 } -
ecommpay-payments/trunk/common/settings/EcpSettings.php
r3227972 r3239955 43 43 const FIELD_DESC = 'desc'; 44 44 const FIELD_DEFAULT = 'default'; 45 const FIELD_GENERATE_VALUE = 'generate'; 45 46 const FIELD_TIP = 'desc_tip'; 46 47 const FIELD_OPTIONS = 'options'; -
ecommpay-payments/trunk/common/settings/EcpSettingsGeneral.php
r3218798 r3239955 95 95 self::FIELD_TITLE => _x( 'Merchant callback URL', 'Settings integration', 'woo-ecommpay' ), 96 96 self::FIELD_TYPE => self::TYPE_TEXT, 97 self::FIELD_ DEFAULT => ecp_callback_url(),97 self::FIELD_GENERATE_VALUE => 'ecp_callback_url', 98 98 self::FIELD_CUSTOM => [ 99 99 'readonly' => 'readonly', -
ecommpay-payments/trunk/common/settings/forms/EcpForm.php
r3227972 r3239955 125 125 'tooltip' => $this->get_tooltip( $value ), 126 126 'css' => $value[ EcpSettings::FIELD_STYLE ], 127 'option_value' => $this->get_option ( $value, $gateway ),127 'option_value' => $this->get_option_value( $value, $gateway ), 128 128 'options' => $value[ EcpSettings::FIELD_OPTIONS ], 129 129 'class' => $value[ EcpSettings::FIELD_CLASS ], … … 154 154 155 155 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 ); 156 166 } 157 167 -
ecommpay-payments/trunk/gateway-ecommpay.php
r3227972 r3239955 5 5 * GitHub Plugin URI: 6 6 * Description: Easy payment from WooCommerce by different methods in single Payment Page. 7 * Version: 4.0. 27 * Version: 4.0.3 8 8 * License: GPL2 9 9 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
ecommpay-payments/trunk/readme.txt
r3227972 r3239955 3 3 Tags: card payments, apple pay, google pay, open banking, subscriptions, paypal, sofort, ideal, klarna, giropay, payment gateway, woocommerce 4 4 Requires at least: 6.2 5 Tested up to: 6. 66 Stable tag: 4.0. 25 Tested up to: 6.7 6 Stable tag: 4.0.3 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.