Changeset 3478120
- Timestamp:
- 03/09/2026 12:47:39 PM (3 weeks ago)
- Location:
- ecommpay-payments/trunk
- Files:
-
- 6 edited
-
common/EcpCore.php (modified) (1 diff)
-
common/includes/EcpCallbacksHandler.php (modified) (1 diff)
-
common/includes/EcpGatewayFormHandler.php (modified) (1 diff)
-
common/includes/EcpGatewayOrderExtension.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
r3471053 r3478120 61 61 * @since 2.0.0 62 62 */ 63 public const WC_ECP_VERSION = '4.2. 4';63 public const WC_ECP_VERSION = '4.2.5'; 64 64 65 65 public const ECOMMPAY_PAYMENT_METHOD = 'ecommpay'; -
ecommpay-payments/trunk/common/includes/EcpCallbacksHandler.php
r3459640 r3478120 168 168 } 169 169 170 if ( ! $order->is_ecp() ) { 171 $message = 'Ecommpay callback ignored — order payment gateway has changed.'; 172 $order->add_order_note( $message ); 173 ecp_get_log()->info( $message ); 174 http_response_code( 200 ); 175 die ( $message ); 176 } 177 170 178 return $order; 171 179 } -
ecommpay-payments/trunk/common/includes/EcpGatewayFormHandler.php
r3218798 r3478120 78 78 // Update meta 79 79 $order->set_payment_method( $payment_method ); 80 $order->set_ecp_meta( '_payment_method', $payment_method_id );81 80 $order->set_ecp_meta( '_payment_method_title', $payment_method->get_title() ); 82 81 $order->save(); -
ecommpay-payments/trunk/common/includes/EcpGatewayOrderExtension.php
r3267715 r3478120 4 4 5 5 use common\EcpCore; 6 use WC_Meta_Data; 6 7 7 8 trait EcpGatewayOrderExtension { … … 233 234 */ 234 235 public function is_ecp(): bool { 235 $pm = $this->get_ecp_meta( '_payment_method' ); 236 237 if ( array_key_exists( $pm, ecp_payment_methods() ) ) { 238 return true; 239 } 240 241 return $pm === EcpCore::ECOMMPAY_PAYMENT_METHOD; 236 return strpos( $this->get_payment_method(), EcpCore::ECOMMPAY_PAYMENT_METHOD ) === 0; 242 237 } 243 238 -
ecommpay-payments/trunk/gateway-ecommpay.php
r3471053 r3478120 5 5 * GitHub Plugin URI: 6 6 * Description: Easy payment from WooCommerce by different methods in single Payment Page. 7 * Version: 4.2. 47 * Version: 4.2.5 8 8 * License: GPL2 9 9 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
ecommpay-payments/trunk/readme.txt
r3471053 r3478120 4 4 Requires at least: 6.2 5 5 Tested up to: 6.9 6 Stable tag: 4.2. 46 Stable tag: 4.2.5 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.