Plugin Directory

Changeset 3459640


Ignore:
Timestamp:
02/12/2026 08:15:04 AM (7 weeks ago)
Author:
ecommpay
Message:

new version 4.2.3

Location:
ecommpay-payments/trunk
Files:
4 edited

Legend:

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

    r3449399 r3459640  
    6161     * @since 2.0.0
    6262     */
    63     public const WC_ECP_VERSION = '4.2.2';
     63    public const WC_ECP_VERSION = '4.2.3';
    6464
    6565    public const ECOMMPAY_PAYMENT_METHOD = 'ecommpay';
  • ecommpay-payments/trunk/common/includes/EcpCallbacksHandler.php

    r3449399 r3459640  
    66use common\helpers\EcpGatewayOperationStatus;
    77use common\helpers\EcpGatewayOperationType;
     8use common\helpers\WCOrderStatus;
    89use common\includes\callbackOperations\EcpAuthOperationHandler;
    910use common\includes\callbackOperations\EcpCancelOperationHandler;
     
    299300            case EcpGatewayOperationStatus::INTERNAL_ERROR:
    300301            case EcpGatewayOperationStatus::EXTERNAL_ERROR:
    301             $this->order_manager->decline_order( $callback, $order );
     302
     303                // Prevents rewrite of the order status to Decline if the order is already paid by other payment method and has status Processing, Completed or On Hold.
     304                if ( in_array( $order->get_status(), [ WCOrderStatus::ON_HOLD, WCOrderStatus::PROCESSING, WCOrderStatus::COMPLETED ], true ) ) {
     305                    $order->add_order_note( __( 'The payment has failed, but the order has already been paid by other payment method.', 'woo-ecommpay' ) );
     306                    $this->order_manager->append_order_errors( $callback, $order );
     307                    return;
     308                }
     309
     310                $this->order_manager->decline_order( $callback, $order );
    302311                break;
    303312        }
  • ecommpay-payments/trunk/gateway-ecommpay.php

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

    r3449399 r3459640  
    44Requires at least: 6.2
    55Tested up to: 6.9
    6 Stable tag: 4.2.2
     6Stable tag: 4.2.3
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.