Plugin Directory

Changeset 2338153


Ignore:
Timestamp:
07/09/2020 03:24:50 PM (6 years ago)
Author:
alonezcount
Message:

improve error message

Location:
ezcount/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ezcount/trunk/EZcount.php

    r2329330 r2338153  
    44 * Plugin URI:
    55 * Description: invoicing, clearing and paypal integration plugin.
    6  * Version: 1.8.1
     6 * Version: 1.8.2
    77 * Author: EZcount
    88 * Author URI:
     
    285285            }
    286286
    287             if(!WC()->session->has_session()){
     287            if ( ! WC()->session->has_session() ) {
    288288                $response = "WC session is not working, the plugin must have an open session to work, please consult your developer";
     289
    289290                return "data:,; $response";
    290291            }
     
    332333
    333334            $secretTransactionId = WC()->session->get( 'transaction_id:' . $_GET['tab_id'] );
    334             // backward competability
    335335            if ( ! $secretTransactionId ) {
    336                 $secretTransactionId = $order->get_transaction_id();
    337             }
    338             if ( ! $secretTransactionId ) {
    339                 $msg = "Order ($order_id) transaction Id is empty, can't validate payment";
     336                $msg = "בעיה באישור הזמנה $order_id, לא הצלחנו לבצע אישור מול חברת האשראי לסליקה, ההזמנה נכנסה לhold אנא בדקו מול חברת האשראי האם הכסף נכנס. \n<br/>
     337                Order ($order_id) transaction Id is empty, can't validate payment\n<br/>" .
     338                       json_encode( [
     339                                        'order_id'             => $_GET['order_id'],
     340                                        'tab_id'                => $_GET['tab_id'],
     341                                        'secretTransactionId' => $secretTransactionId,
     342                                        '$_SERVER'            => $_SERVER
     343                                    ] );
    340344                wp_mail( $this->user_email, 'Order transaction Id is empty, can\'t validate payment', $msg );
    341345                echo "VALIDATION ERROR #1.5 לא הצלחנו לבצע אישור לסליקה, אבל יתכן והיא עברה, אנא צרו קשר עם בעל החנות";
  • ezcount/trunk/readme.txt

    r2329330 r2338153  
    44Tags        : Invoicing and clearing for Woocommerce, by EasyCount.
    55Tested up to: 4.9.8
    6 Version     : 1.8.1
     6Version     : 1.8.2
    77Stable tag: trunk
    88Requires PHP: 5.4
Note: See TracChangeset for help on using the changeset viewer.