Plugin Directory

Changeset 1098079


Ignore:
Timestamp:
02/24/2015 12:05:13 PM (11 years ago)
Author:
Total Web Solutions
Message:

Tag version 1.1.2

Location:
woocommerce-total-web-solutions-gateway
Files:
4 edited
3 copied

Legend:

Unmodified
Added
Removed
  • woocommerce-total-web-solutions-gateway/tags/1.1.2/gateway-totalweb.php

    r1098004 r1098079  
    4444       
    4545        // Logs cause issues in 2.3
    46         //if ($this->debug=='yes') $this->log = $woocommerce->logger();
     46        if ($this->debug=='yes_tws') $this->log = $woocommerce->logger();
    4747       
    4848        // Hooks
     
    187187        global $woocommerce;
    188188       
    189         if ($this->debug=='yes')
     189        if ($this->debug=='yes_tws')
    190190            $this->log->add( 'totalweb', 'Generating payment form for order #' . $order->id);
    191191       
     
    223223            "x_invoice_num"     => $order->id,
    224224            "x_fp_sequence"     => $order->order_key,
    225             "x_amount"          => $order->get_order_total(),
     225            "x_amount"          => $order->get_total(),
    226226            "x_currency_code"   => 'GBP',
    227227        );
     
    322322        $params['x_fp_hash']        = $fp_hash;
    323323       
    324         if ($this->debug=='yes')
     324        if ($this->debug=='yes_tws')
    325325            $this->log->add( 'totalweb', "Params: " . print_r($params,true));
    326326       
     
    407407                $this->notify_url = get_permalink(woocommerce_get_page_id('cart'));
    408408               
    409                 if ($this->debug=='yes') {
     409                if ($this->debug=='yes_tws') {
    410410                    $this->log->add( 'totalweb', "Relay response:" . print_r($_POST,true));
    411411                    $this->log->add( 'totalweb', "Login ID:" . $this->login_id . "; md5: " . $this->md5_hash);
     
    422422                            $order->add_order_note( __('Total Web Solutions payment completed', 'woocommerce') . ' (Transaction ID: ' . $response->transaction_id . ')' );
    423423                           
    424                             if ($this->debug=='yes')
     424                            if ($this->debug=='yes_tws')
    425425                                $this->log->add( 'totalweb', 'Total Web Solutions payment completed (Transaction ID: ' . $response->transaction_id . ')');
    426426                           
     
    430430                            $redirect = add_query_arg('key', $order->order_key, add_query_arg('order', $order_id, get_permalink(woocommerce_get_page_id('thanks'))));
    431431                        } else {
    432                             if ($this->debug=='yes')
     432                            if ($this->debug=='yes_tws')
    433433                                $this->log->add( 'totalweb', 'Empty Order ID');
    434434                           
     
    438438                    } else {
    439439
    440                         if ($this->debug=='yes')
     440                        if ($this->debug=='yes_tws')
    441441                            $this->log->add( 'totalweb', sprintf("Error %s: %s", $response->response_reason_code, $response->response_reason_text));
    442442                       
     
    449449
    450450                } else {
    451                     if ($this->debug=='yes')
     451                    if ($this->debug=='yes_tws')
    452452                        $this->log->add( 'totalweb', "MD5 Hash failed. Check to make sure your MD5 Setting matches the one in admin option");
    453453                   
  • woocommerce-total-web-solutions-gateway/tags/1.1.2/index.php

    r1098035 r1098079  
    44Plugin URI: http://payments.totalwebsolutions.com
    55Description: Intergrates to the Total Web Solutions Pay Page
    6 Version: 1.1.1
     6Version: 1.1.2
    77Author: <[email protected]>
    88Author URI: http://www.totalwebsolutions.com
  • woocommerce-total-web-solutions-gateway/tags/1.1.2/readme.txt

    r1098035 r1098079  
    55Requires at least: 3.3
    66Tested up to: 3.5.1
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • woocommerce-total-web-solutions-gateway/trunk/gateway-totalweb.php

    r1098004 r1098079  
    4444       
    4545        // Logs cause issues in 2.3
    46         //if ($this->debug=='yes') $this->log = $woocommerce->logger();
     46        if ($this->debug=='yes_tws') $this->log = $woocommerce->logger();
    4747       
    4848        // Hooks
     
    187187        global $woocommerce;
    188188       
    189         if ($this->debug=='yes')
     189        if ($this->debug=='yes_tws')
    190190            $this->log->add( 'totalweb', 'Generating payment form for order #' . $order->id);
    191191       
     
    223223            "x_invoice_num"     => $order->id,
    224224            "x_fp_sequence"     => $order->order_key,
    225             "x_amount"          => $order->get_order_total(),
     225            "x_amount"          => $order->get_total(),
    226226            "x_currency_code"   => 'GBP',
    227227        );
     
    322322        $params['x_fp_hash']        = $fp_hash;
    323323       
    324         if ($this->debug=='yes')
     324        if ($this->debug=='yes_tws')
    325325            $this->log->add( 'totalweb', "Params: " . print_r($params,true));
    326326       
     
    407407                $this->notify_url = get_permalink(woocommerce_get_page_id('cart'));
    408408               
    409                 if ($this->debug=='yes') {
     409                if ($this->debug=='yes_tws') {
    410410                    $this->log->add( 'totalweb', "Relay response:" . print_r($_POST,true));
    411411                    $this->log->add( 'totalweb', "Login ID:" . $this->login_id . "; md5: " . $this->md5_hash);
     
    422422                            $order->add_order_note( __('Total Web Solutions payment completed', 'woocommerce') . ' (Transaction ID: ' . $response->transaction_id . ')' );
    423423                           
    424                             if ($this->debug=='yes')
     424                            if ($this->debug=='yes_tws')
    425425                                $this->log->add( 'totalweb', 'Total Web Solutions payment completed (Transaction ID: ' . $response->transaction_id . ')');
    426426                           
     
    430430                            $redirect = add_query_arg('key', $order->order_key, add_query_arg('order', $order_id, get_permalink(woocommerce_get_page_id('thanks'))));
    431431                        } else {
    432                             if ($this->debug=='yes')
     432                            if ($this->debug=='yes_tws')
    433433                                $this->log->add( 'totalweb', 'Empty Order ID');
    434434                           
     
    438438                    } else {
    439439
    440                         if ($this->debug=='yes')
     440                        if ($this->debug=='yes_tws')
    441441                            $this->log->add( 'totalweb', sprintf("Error %s: %s", $response->response_reason_code, $response->response_reason_text));
    442442                       
     
    449449
    450450                } else {
    451                     if ($this->debug=='yes')
     451                    if ($this->debug=='yes_tws')
    452452                        $this->log->add( 'totalweb', "MD5 Hash failed. Check to make sure your MD5 Setting matches the one in admin option");
    453453                   
  • woocommerce-total-web-solutions-gateway/trunk/index.php

    r1098035 r1098079  
    44Plugin URI: http://payments.totalwebsolutions.com
    55Description: Intergrates to the Total Web Solutions Pay Page
    6 Version: 1.1.1
     6Version: 1.1.2
    77Author: <[email protected]>
    88Author URI: http://www.totalwebsolutions.com
  • woocommerce-total-web-solutions-gateway/trunk/readme.txt

    r1098035 r1098079  
    55Requires at least: 3.3
    66Tested up to: 3.5.1
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.